Question: Write a Python program which calculates the Wiebull distribution as it varies with either the scale or shape parameter; i.e. if varying in scale, use

 Write a Python program which calculates the Wiebull distribution as it

Write a Python program which calculates the Wiebull distribution as it varies with either the scale or shape parameter; i.e. if varying in scale, use a fixed value for the shape parameter and vice versa. Your script should also plot the distribution as shown in the figure at the end.

Wiebull Distribution The Wiebull distribution can be used in analysing failure rates, wind speed distributions, and many other engineering phenomena. It is given by the equation : -{im. e-x/)* for x > 0 f(x;k, 1) = 0 for x so where the shape factor, k>0, and the scale factor, 1 >0, characterise the distribution profile. An example distribution is shown in the figure at the end of this assessment description. Write a Python program which calculates the Wiebull distribution as it varies with either the scale or shape parameter; i.e. if varying in scale, use a fixed value for the shape parameter and vice versa. Your script should also plot the distribution as shown in the figure at the end. Your program should Ask for the minimum, maximum and increment values for X. Test to make sure these are within the correct limits, i.e. that: Xmin 20, Xmax > Xmin, Xine min, and that inc 0): 0 Maximum x value (> min value) : 6 Step increment for the x axis! . 1 Do you wish to plot curves which vary in : Shape parameter (k) or scale parameter (lambda) Please select Ik Please enter value for scale parameter (lambda) : 1.5 Please enter the min. value, max. value and increment for the shape parameter (k)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!