Question: use python to write Exercise 7 - Functions (Plot) The aim is to fill two vector arrays xv and yv with x and f(x) values,

 use python to write Exercise 7 - Functions (Plot) The aim

use python to write

Exercise 7 - Functions (Plot) The aim is to fill two vector arrays xv and yv with x and f(x) values, respectively, where the probability density function for Pareto is: b f(x,b) = for x>1 and b>0. xb+1 Pareto takes b as a shape parameter for b. Let the xv values be uniformly spaced in xv = [1,5] with 100 grid points. Write a loop to fill in the values for xu and yu = f(xv, b), for b = 1, b = 2 and b = 3. So at the end you should have a vector xv with the X-values and a vector yu with the function values f(x, b) for any given b. Plot yu against xu using the plot command (you should have three lines in a single figure - one for each b)

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!