# Probably Plots

• Mar 13th 2010, 03:33 AM
bubblygirl90
Probably Plots
If I have a set of data how can I construct a probability plot to see whether the exponential distribution is a good fit for the data?
(Worried)(Worried)(Worried)
• Mar 13th 2010, 08:49 AM
Focus
Quote:

Originally Posted by bubblygirl90
If I have a set of data how can I construct a probability plot to see whether the exponential distribution is a good fit for the data?
(Worried)(Worried)(Worried)

You can plot an empirical distribution function and see how much it looks like the cdf of an exponential. I suggest using R, it had a build in function to do this (here is the reference)
• Mar 14th 2010, 06:46 AM
bubblygirl90
Thanks for the advice but how do I do this in R? Ive just downloaded it but can't seem to figure it out
• Mar 14th 2010, 11:43 AM
Focus
Quote:

Originally Posted by bubblygirl90
Thanks for the advice but how do I do this in R? Ive just downloaded it but can't seem to figure it out

The function is called ecdf. It takes a vector as an input and that should be your data. You can check out the documentation and in particular, 5.1 and 7 refer to how to use vectors and input data and 12.1.1 shows how to plot things.

R is not that easy at first sight but I think it is worthwhile to learn if you want to do statistics. If you use an other piece of software to plot things (or pen and paper) let me know and I can be a bit more helpful.

You could also use for example Pearson's chi square test to determine how well your data fit an exponential (which again R has built in).