MathGroup Archive 2007

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

Search the Archive

Re: Probability Density Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74822] Re: [mg74790] Probability Density Function
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 6 Apr 2007 04:25:50 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Needs["Statistics`"];
Needs["Graphics`"];

mu=10;sigma=5/2;

f[x_]=PDF[NormalDistribution[mu,sigma],x];

FilledPlot[f[x]{UnitStep[x-8],1},
    {x,mu-3sigma,mu+3sigma},
    Fills->{White,LightBlue}];

FilledPlot[f[x]{(UnitStep[x-7.5]-UnitStep[x-11]),1},
    {x,mu-3sigma,mu+3sigma},
    Fills->{LightBlue,White}];


Bob Hanlon

---- Tony Harris <tdh1967 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
> 
> 



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