Plotting probability distributions
- To: mathgroup at yoda.physics.unc.edu
- Subject: Plotting probability distributions
- From: Colin Rose <colinr at extro.ucc.su.oz.au>
- Date: Mon, 26 Oct 92 17:44:45 EST
Sven Bohm asks: "How can I plot a propability distribution in mathematica? For example if I have LogNormalDistribution[1.16329, 0.649846] how do I get a plot with the frequency on the y axis?" The following should do it.... In[1]: <<Statistics`ContinuousDistributions` In[2]: f[y_] := PDF[LogNormalDistribution[mu, sig], y] F[y_] := CDF[LogNormalDistribution[mu, sig], y] In[3]: mu = 1.16329; sig = 0.649846; Plot[f[y], {y, 0.01, 10}, PlotLabel -> "Probability Density Function"] Plot[F[y], {y, 0.01, 10}, PlotLabel -> "Distribution Function"] Regards Colin Colin Rose Dept. of Economics University of Sydney colinr at extro.ucc.su.oz.au *************************