Estimating & Plotting PDF & CDF of Random Variable X in MATLAB

AI Thread Summary
To estimate and plot the probability density function (PDF) and cumulative distribution function (CDF) of a random variable X in MATLAB, first load the samples using the command "load projectfile.mat samples." Next, use MATLAB functions to estimate the PDF and create a plot of the estimated PDF. Similarly, estimate the CDF and generate a plot for it as well. Participants in the discussion emphasize the importance of showing initial work to receive further assistance.
man*
Messages
1
Reaction score
0
halw
could anyone help me in writing this project in MATLAB ??


A random variable X is observed at certain experiment. 100,000 samples of this random
variable are stored in a vector called samples.
1. Use MATLAB to read the samples of this random variable. To read these samples
you should download the file projectfile.mat from the WebCT in your computer and
your first statement in the MATLAB file is going to be:
load projectfile.mat samples
….
Once you read the vector samples try to do the following:
2. Estimate the pdf of X and plot the estimated pdf.
3. Estimate the cdf of X and plot the estimated cdf.
 
Physics news on Phys.org
Thread moved from EE to Homework Help.

Welcome to the PF, man*. You need to show us your own work before we can offer tutorial help. How would you go about starting this problem?
 
Back
Top