cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

What is the format for parameters for the Random Normal Mixture?

Suppose I want mean1 = 20, Mean2 = 40,  SD1 = 10, SD2 = 10, Probability1 = 0.8, Probability2 = 0.2.  How do I put these numbers in vectors for the "meanvec", "sdvec" and "probvec"?

2 REPLIES 2
ms
Super User (Alumni) ms
Super User (Alumni)

Re: What is the format for parameters for the Random Normal Mixture?

Random Normal Mixture([20, 40], [10, 10], [.8, .2])

Or if you want to use variables for the vectors

M= matrix(evallist({mean1 = 20, Mean2 = 40,  SD1 = 10, SD2 = 10, Probability1 = 0.8, Probability2 = 0.2}));


//Example

dt = New Table("Test",

    add rows(500),

    New Column("RNM", Formula(Random Normal Mixture(M[1 :: 2], M[3 :: 4], M[5 :: 6])))

);

dt << Distribution(Continuous Distribution(Column(:RNM)));

Re: What is the format for parameters for the Random Normal Mixture?

Thanks.  That works!

Recommended Articles