SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Auxiliary Chapter

NORMXPDF

Name:
    NORMXPDF (LET)
Type:
    Library Function
Purpose:
    Compute the mixture of two normal probability density functions.
Description:
    The normal mixture distribution has the following probability density function:

      f(x,u1,sd1,u2,sd2,p)=p*norpdf(u1,sd1) +
 (1-p)*norpdf(u2,sd2)

    where norpdf(u,s) is a normal probability density function with mean u and standard deviation s, p is a real number between 0 and 1 that defines the mixing proportions, and x is a real number.

Syntax:
    LET <y2> = NORMXPDF(<y1>,<u1>,<sd1>, <u2>,<sd2>,<pmix>)
                            <SUBSET/EXCEPT/FOR qualification>
    where <y1> is a number, parameter, or variable;
                <u1> is a number, parameter, or variable;
                <sd1> is a number, parameter, or variable;
                <u2> is a number, parameter, or variable;
                <sd2> is a number, parameter, or variable;
                <pmix> is a number, parameter, or variable in the range 0 to 1;
                <y2> is a variable or a parameter (depending on what <y1> is) where the computed normal mixture pdf value is stored;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.
Examples:
    LET A = NORMXPDF(3,0,1,10,20,0.2)
    LET A = NORMXPDF(3,U1,SD1,U2,SD2,P)
    LET Y = NORMXPDF(X,U1,SD1,U2,SD2,P)
Note:
    You can generate a probability plot for a normal mixture distribution as follows:

      LET U1 = <value>
      LET SD1 = <value>
      LET U2 = <value>
      LET SD2 = <value>
      LET P = <value>
      NORMAL MIXTURE PROBABILITY PLOT Y

    You can generate random numbers from a normal mixture distribution as follows:

      LET U1 = <value>
      LET SD1 = <value>
      LET U2 = <value>
      LET SD2 = <value>
      LET P = <value>
      LET Y = NORMAL MIXTURE RANDOM NUMBERS FOR I = 1 1 1000
Default:
    None
Synonyms:
    None
Related Commands:
    NORMXCDF = Compute the normal mixture cumulative distribution function.
    NORMXPPF = Compute the normal mixture percent point function.
    NORCDF = Compute the normal cumulative distribution function.
    NORPDF = Compute the normal probability density function.
    NORPPF = Compute the normal percent point function.
Reference:
    "Continuous Univariate Distributions: Volume 1", Johnson, Kotz, and Balakrishnan, John Wiley and Sons, 1994.
Applications:
    Distributional Modeling
Implementation Date:
    1998/5
Program:
    MULTIPLOT 2 2
    MULTIPLOT CORNER COORDINATES 5 5 95 95
    LET U1 = 0
    LET SD1 = 1
    LET U2 = 5
    LET SD2 = 3
    TITLE P = 0.2
    PLOT NORMXPDF(X,U1,SD1,U2,SD2,0.2) FOR X = -5 0.1 15
    TITLE P = 0.4
    PLOT NORMXPDF(X,U1,SD1,U2,SD2,0.4) FOR X = -5 0.1 15
    TITLE P = 0.6
    PLOT NORMXPDF(X,U1,SD1,U2,SD2,0.6) FOR X = -5 0.1 15
    TITLE P = 0.8
    PLOT NORMXPDF(X,U1,SD1,U2,SD2,0.8) FOR X = -5 0.1 15
    END OF MULTIPLOT

    plot generated by sample program

Date created: 6/5/2001
Last updated: 4/4/2003
Please email comments on this WWW page to alan.heckert@nist.gov.