jmp-l
[Top] [All Lists]

Re: How to plot a normal curve by "Normal Density" function in JSL?

To: <jmp-l@lists.biostat.wustl.edu>
Subject: Re: How to plot a normal curve by "Normal Density" function in JSL?
From: "Magie, Stephen" <Stephen.Magie@netapp.com>
Date: Tue, 10 Feb 2009 12:51:16 -0800
In-reply-to: <25e89e790902101209m4730bcads567a93c4a5446f4d@mail.gmail.com>
References: <25e89e790902101209m4730bcads567a93c4a5446f4d@mail.gmail.com>
Thread-index: AcmLu5B7e3Wdd/qvRCm3N5BUArO0twAAKNTA
Thread-topic: [jmp-l] How to plot a normal curve by "Normal Density" function in JSL?

Fred,

 

Go to:  Help/Indexes/JSL Operators/Normal Density

 

That will show you the following example:

 

New Window( "Example: Normal Density",

      y =

      Graph Box(

            Y Scale( 0, 0.45 ),

            X Scale( -4, 4 ),

            XName( "q" ),

            Pen Color( "red" );

            Y Function(

                  Normal Density( q ),

                  q

            );

      )

);

 

Running the example will show you the “standard” normal density function (standard è mean=0; standard deviation=1).  To generate the normal density curve for a given mean “m” and standard deviation “sd” use:

 

(Normal Density((q-m)/sd)

 

For example, given m=100 and sd=5 the above example will be:

 

New Window( "Example: Normal Density",

      y =

      Graph Box(

            Y Scale( 0, 0.45 ),

            X Scale( 80, 120 ),

            XName( "q" ),

            Pen Color( "red" );

            Y Function(

                  Normal Density( (q-100)/5 ),

                  q

            );

      )

);

 

Note the necessity of adjusting the x-axis scale with: X Scale(80,120).

 

Also, the Normal Density function is discussed in Appendix C (Formula Functions Reference) of the Users Guide under the section Probability Fuctions/Normal Density.

 

Regards,

Steve Magie

 

 

From: Fred Zhang [mailto:ieaggie2009@gmail.com]
Sent: Tuesday, February 10, 2009 12:10 PM
To: jmp-l@lists.biostat.wustl.edu
Subject: [jmp-l] How to plot a normal curve by "Normal Density" function in JSL?

 

Hi, I want to plot a nornal curve given a set of data by also pre-define the sigma and mean values.

How to use the function "Normal Density()"?
What's the arguments?

I could not find the details in JMP Help, which seems sucks in looking
some JSL functions.

Anyone can help me out?

Fred

<Prev in Thread] Current Thread [Next in Thread>