CPSC 633-600 Read-Only Bulletin Board

Last modified: 1/16/15, 01:56PM (Fri)

This page will have all relevant email transactions with the students regarding the AI course, so that everyone has equal information regarding the course material.

Newest transactions will be posted on the top. Regularly view this page to see what's going on between other students and the instructor.

All sensitive material such as your name, email address, etc. will be removed, and also any part of code that is not relevant to the discussion will not be uploaded here.


Article List

Date: 02/21/14 Title: Generating random events


Articles

Date: 02/21/14 Title: Generating random events
How to generate probabilistic events:

i. Given values x in X={a, b, c, ...} and probability p(x=a), p(x=b), etc.

ii. Choose from value
	x = ceil(rand*|X|)
    where |X| is the cardinality of the set X.

iii. Generate random number between 0 and 1.
	r = rand;

iv. if (r<p(X=x))
	accept choice x
     else 
	reject and repeat step ii--iv until value is accepted.

Search on "rejection method" or "accept-reject method" for more 
details.


$Id: board.php,v 1.4 2003/09/04 21:56:27 choe Exp choe $