(MATLAB) Generate a Binomial(50, 0.2) random variable.
Added by Darnell C.
Step 1
In MATLAB, create a new random variable binomial(50, 0.2) by entering the following command: >> binomial(50, 0.2) Show more…
Show all steps
Your feedback will help us improve your experience
Samriddhi Singh and 71 other Probability 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.
Recommended Videos
Generate an Exponential(1) random variable. (Matlab)
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
Probability with Applications in Engineering, Science, and Technology
Probability and Statistics for Engineers and Scientists
Applied Statistics and Probability for Engineers
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD