Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Manipulating Normally Distributed Variable' topicStudent Support Forum > General > "Manipulating Normally Distributed Variable"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
09/21/12 4:15pm

Is this what you're looking for?

Manipulate[V = PDF[NormalDistribution[\[Mu], \[Sigma]], \[Lambda]];
Plot[V, { \[Lambda], -35, 35}, Filling -> Axis,
PlotStyle -> {Dashed, Thick},
Filling -> Axis], {{\[Mu], 0, "Mean"}, -10, 10,
Appearance -> "Labeled"}, {{\[Sigma], 1, "Standard Deviation"}, 1,
15, Appearance -> "Labeled"}]

The definition of V has got to be inside the Manipulate, unless you do something like this (beware the use of global variables, though):

Clear[V, \[Mu], \[Sigma]];
V = PDF[NormalDistribution[\[Mu], \[Sigma]], \[Lambda]]; Manipulate[
Plot[V, { \[Lambda], -35, 35}, Filling -> Axis,
PlotStyle -> {Dashed, Thick},
Filling -> Axis], {{\[Mu], 0, "Mean"}, -10, 10,
Appearance -> "Labeled"}, {{\[Sigma], 1, "Standard Deviation"}, 1,
15, Appearance -> "Labeled"}, TrackedSymbols :> {\[Mu], \[Sigma]},
LocalizeVariables -> False]

URL: ,

Subject (listing for 'Manipulating Normally Distributed Variable')
Author Date Posted
Manipulating Normally Distributed Variable Ulrik 09/18/12 07:34am
Re: Manipulating Normally Distributed Variable Michael 09/21/12 4:15pm
< Previous CommentHelp | Reply To Comment | Reply To Topic