Generate an Exponential(1) random variable. (Matlab)
Added by John D.
Step 1
1) Define the random variable as an exponential random variable. Show more…
Show all steps
Close
Your feedback will help us improve your experience
Samriddhi Singh and 69 other Intro Stats / AP Statistics 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
(MATLAB) Generate a Binomial(50, 0.2) random variable.
Samriddhi S.
Using R, generate an Exponential(1) random variable by first generating a Uniform(0,1) random variable.
T. L.
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!
Sri K.
Recommended Textbooks
Elementary Statistics a Step by Step Approach
The Practice of Statistics for AP
Introductory Statistics
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD