Re: Probability Density Function

*To*: mathgroup at smc.vnet.net*Subject*: [mg74816] Re: Probability Density Function*From*: dh <dh at metrohm.ch>*Date*: Fri, 6 Apr 2007 04:22:46 -0400 (EDT)*References*: <ev2beo$kl0$1@smc.vnet.net>

Hi Tony, here is a simple approach consisting of creating the different pieces and showing them together: << Graphics`FilledPlot` fun[x_]:=Exp[-x^2]; g1=FilledPlot[fun[x],{x,-1,1}]; g2=Plot[fun[x],{x,-3,3}]; Show[g1,g2] and fun[x_]:=Exp[-x^2]; g1=FilledPlot[fun[x],{x,-3,-1}]; g2=FilledPlot[fun[x],{x,1,3}]; g3=Plot[fun[x],{x,-3,3}]; Show[g1,g2,g3] Daniel Tony Harris 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 > >