The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Probability Problem
Replies: 4   Last Post: Aug 22, 2000 6:18 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Aris bin Imad

Posts: 2
Registered: 12/7/04
Probability Problem
Posted: Aug 21, 2000 11:31 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everyone,

I am trying to write a loop in MATLAB where each iteration will produce
one of n numbers (eg. 1,2,3,...,n). The thing is, I would like these
numbers being produced based on its probability, ie. x1 probability of
producing 1, x2 probability of producing 2 and so on where x1+x2+...=1 and
the probabilities are distinct.

Anyone could give me a hint of how to do this?

Thank you.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.