1. Plot a Q-function and cdf of a standard normal distribution together by using MATLAB Hint: use a function qfunc and erf functions provided by MATLAB
Added by Brittany H.
Close
Step 1
First, we need to define the range of values for the x-axis. Since the standard normal distribution has a mean of 0 and a standard deviation of 1, we can choose a range of -4 to 4 to cover most of the distribution. Show more…
Show all steps
Your feedback will help us improve your experience
Gopal Sharma and 65 other Physics 102 Electricity and Magnetism educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
5. Consider a continuous random variable with Cauchy distribution fX(x) = 1 / (π(x^2 + 1)) a. Find the CDF b. Find the mode c. Plot in MATLAB the PDF and the CDF of X. d. Show that the variance diverges.
Sri K.
Q2) A random variable X has a cumulative distribution function (CDF): For x < 0, F(x) = 0 For x >= 0, F(x) = 1 - 1/4 e^-2x a) Plot the CDF and identify the type of random variable. b) Find P(X < 1), P(X ≤ -1), P(-1 < X < -0.75), P(-0.5 < X < 0), P(-0.5 < X < 0.5), P(|X - 0.5| < 0.5).
Suman K.
A Zipf(n, α = 1) random variable X has the PMF Px(x) = { cn/x, x = 1,2, ..., n; 0, otherwise Where the constant value cn is set so that X is a valid PMF. 1. Write a Matlab script that accepts n as an argument and returns the PMF Px(x) (note that this answer will be a vector with the length n). 2. Plot the PMF for a Zipf(n = 100, α = 1) random variable. Make sure to label your axes! 3. Use the cumsum() function in Matlab to plot the CDF for a Zipf(n = 100, α = 1) random variable. Make sure to label your axes!
Recommended Textbooks
University Physics with Modern Physics
Physics: Principles with Applications
Fundamentals of Physics
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD