














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















we can measure empirical probabilities we can compute theoretical probabilities based upon a uniform distribution assumption (all elements equi-probable) we can simulate experiments in Perl based upon uniform distribution assumptions using rand (which generates a uniform distribution). So far, Bayes' theorem Saturday, October 30, 2010 4:09 PM Docsity.com
Aside: E. T. Jaynes Sunday, October 31, 2010 3:32 PM Docsity.com
An interesting idea from Jaynes A → B, A proves B (MP) A → B, ¬B proves ¬A (MT) We know modus ponendo ponens and modus tollendo tollens. A → B, B makes A more plausible. A → B, ¬A makes B less plausible. Jaynes generalizes these: p(A^B)=p(A)p(B|A)=p(B)p(A|B) And he points out that the multiplicative law: leads to: p(B|A) = [p(B)/p(A)]p(A|B) Plausibility increases as p(A) decreases. Plausibility increases as p(B) increases. where p(B|A) measures how likely it is that A → B Jaynes on logic and probability Sunday, October 31, 2010 3:38 PM Docsity.com
Sunday, October 31, 2010 4:07 PM Docsity.com
Saturday, October 30, 2010 4:18 PM Docsity.com
Saturday, October 30, 2010 4:12 PM Docsity.com
p(F)=probability of selecting the first box = 1/ p(F)=probability of selecting the second box = 1/ p(E|F)=probability of red, from the first box=3/ p(E|F)=probability of red, from the second box=1/ 3/5 * 1/ p(F|E) = ---------------------------- = 3/ 3/51/2 + 1/51/ So p(F)=1/2 but p(F|E)=3/4, because there are many more red balls in first box than in the second box. The fact that we know that E is true changes the probability of F = p(F|E). Bayes' Theorem Saturday, October 30, 2010 5:06 PM Docsity.com
Saturday, October 30, 2010 6:11 PM Docsity.com
Suppose we want to detect spam in a message. By looking at 10000 spam messages, we determine that "Rolex" occurs in 30% of them. By looking at 10000 non-spam messages, we determine that "Rolex" occurs in 5% of these. Roughly 3/4 of all email messages are spam! We know that the term "Rolex" sometimes indicates spam. What is the probability that a message is spam, given that it contains "Rolex"? E = message contains "Rolex". F = message is spam. p(E) = (10000.30 + 10000.05)/20000=0. p(F) = 3/4 = 0. p(E|F) =. p(E|F) =. p(E|F)p(F) p(F|E)= -------------------------------- p(E|F)p(F) + p(E|F)p(F) .3. = ------------------------------ .3.75 + .05*. = .225/.2375 = 0. Example: Bayesian Learning Saturday, October 30, 2010 5:28 PM Docsity.com
Saturday, October 30, 2010 5:38 PM Docsity.com
Sunday, October 31, 2010 4:09 PM Docsity.com
Stateless and stateful models Sunday, October 31, 2010 4:11 PM Docsity.com
Sunday, October 31, 2010 4:21 PM Docsity.com
Example of a Markov transition matrix: Let bull=state 0 Let bear=state 1 Let recession=state 2 bull bear recession bull 0.9 0.075 0. bear 0.15 0.8 0. recession 0.25 0.25 0. rows sum to 1 and describe one state. columns describe options Notes: Example of a Markov matrix Sunday, October 31, 2010 4:24 PM Docsity.com