Use excel to create empirical cumulative distribution function (CDF) and then use the CDF to find probabilities

exlover

New Member
Joined
Oct 9, 2015
Messages
2
Hi Everyone,

I hope you can help me in this problem. I have a set of observed data and created an empirical cumulative distribution using excel. I want to use this CDF to find probabilities like P(x<X) or P(X1 < x < X2 ).

The way I created the CDF is arrange the data in ascending order and then create a column next to it with the probabilities. I dont know how to attach the file but here is a sample below.
I have 4121 records and the sample here is for 4 records. Once I have this calculation done, the curve is plotted using xy scatter plot for Data in the x-axis and Probability in the Y-axis. This is how I created the CDF.

My question now is in case I wanted to find the probability is below 2.5. P(x<=2.5) how can I find it ? or if i want to find P( 970 < x < 980 ) ?

I hope there is an easy way because I will have hundreds of probabilities that I have to find.


DistanceProbability
0.330.000242661/4121=0.00024266
1.20.0004853192/4121=0.000485319
2.080.0007279793/4121=0.000727979
2.710.0009706384/4121=0.000970638
.........
..........
1316.166714121/4121=1

<tbody>
</tbody>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,215,268
Messages
6,123,970
Members
449,137
Latest member
yeti1016

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top