MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Probability Density Function


On Apr 5, 1:19 am, "Tony Harris" <tdh1... at bellsouth.net> wrote:
> Hello,
>
> I have graphed a normal probability density function with a mean of 10 and a
> standard deviation of 2.5.  I named this function f[x]
>
> I wanted to know how to use the "FilledPlot" to show the area under the
> curve for (x<8) and (7.5<x<11).
>
> I have the probability for x<8 to be .212 and for 7.5<x<11 to be .497 by
> calculating the definite integral of the function f[x] for these two
> probabilities.
>
> I have the cacluation of the probabilities included but no idea on how to
> continue and display each of these in a graph.
>
> Thanks,
>
> T Harris

<< Graphics`FilledPlot`

f[x_,m_,s_] := Exp[-.5((x-m)/s)^2]/(s*Sqrt[2Pi])

FilledPlot[{f[x,10,2.5],f[x,10,2.5]*UnitStep[8-x]},{x,0,20},
Fills->{{{2,Axis},GrayLevel[.75]}}];

FilledPlot[{f[x,10,2.5],f[x,10,2.5]*UnitStep[(x-7.5)(11-x)]},{x,
0,20},
Fills->{{{2,Axis},GrayLevel[.75]}}];



  • Prev by Date: Re: Question
  • Next by Date: Re: Probability Density Function
  • Previous by thread: Re: Probability Density Function
  • Next by thread: Re: Probability Density Function