basic probability
play

Basic Probability Robert Platt Northeastern University Some images - PowerPoint PPT Presentation

Basic Probability Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA Definition Probability theory is nothing but common sense reduced to calculation. ~Pierre Laplace What is


  1. Basic Probability Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA

  2. Definition ● Probability theory is nothing but common sense reduced to calculation. ~Pierre Laplace ● What is probability? What does it mean when we say “the probability that a coin will land head is 0.5”

  3. Frequentist Vs Bayesian

  4. Random variables What is a random variable? Suppose that the variable a denotes the outcome of a role of a single six-sided die: a is a random variable this is the domain of a Another example: Suppose b denotes whether it is raining or clear outside:

  5. Probability distribution A probability distribution associates each with a probability of occurrence. A probability table is one way to encode the distribution: All probability distributions must satisfy the following: 1. 2.

  6. Writing probabilities For example: But, sometimes we will abbreviate this as:

  7. Joint probability distributions Given random variables: The joint distribution is a probability assignment to all combinations: or: As with single-variate distributions, joint distributions must satisfy: 1. 2.

  8. Joint probability distributions Joint distributions are typically written in table form:

  9. Marginalization Given P(T,W), calculate P(T) or P(W)...

  10. Marginalization X P +x X Y P -x +x +y 0.2 +x -y 0.3 -x +y 0.4 Y P -x -y 0.1 +y -y Slide: Berkeley CS188 course notes (downloaded Summer 2015)

  11. Conditional Probabilities Probability that it is sunny given that it is hot.

  12. Conditional Probabilities Calculate the conditional probability using the product rule: Product rule Slide: Berkeley CS188 course notes (downloaded Summer 2015)

  13. Conditional Probabilities  P(+x | +y) ? X Y P +x +y 0.2 +x -y 0.3  P(-x | +y) ? -x +y 0.4 -x -y 0.1  P(-y | +x) ? Slide: Berkeley CS188 course notes (downloaded Summer 2015)

  14. Conditional distribution Given P(T,W), calculate P(T|w) or P(W|t)...

  15. Conditional distribution Given P(T,W), calculate P(T|w) or P(W|t)...

  16. Conditional distribution Given P(T,W), calculate P(T|w) or P(W|t)...

  17. Conditional distribution Given P(T,W), calculate P(T|w) or P(W|t)...

  18. Normalization Given P(T,W), calculate P(T|w) or P(W|t)... Can we avoid explicitly computing this?

  19. Normalization Select corresponding elts Scale the numbers so from the joint distribution that they sum to 1.

  20. Normalization Select corresponding elts Scale the numbers so from the joint distribution that they sum to 1. The only purpose of this denominator is to make the distribution sum to one. – we achieve the same thing by scaling.

  21. Normalization P(X | Y=-y) ? X Y P +x +y 0.2 ? ? +x -y 0.3 -x +y 0.4 -x -y 0.1

  22. Bayes Rule

  23. Bayes Rule It's easy to derive from the product rule: Solve for this

  24. Using Bayes Rule

  25. Using Bayes Rule But harder to estimate this It's often easier to estimate this

  26. Bayes Rule Example Suppose you have a stiff neck... Suppose you have a stiff neck... Suppose there is a 70% chance of meningitis if you have a stiff neck: stiff neck meningitis What are the chances that you have meningitis?

  27. Bayes Rule Example Suppose you have a stiff neck... Suppose you have a stiff neck... Suppose there is a 70% chance of meningitis if you have a stiff neck: stiff neck meningitis What are the chances that you have meningitis? We need a little more information...

  28. Bayes Rule Example Prior probability of stiff neck Prior probability of meningitis

  29. Bayes Rule Example Prior probability of stiff neck Prior probability of meningitis

  30. Bayes Rule Example  Given: D W P wet sun 0.1 R P dry sun 0.9 sun 0.8 wet rain 0.7 rain 0.2 dry rain 0.3  What is P(W | dry) ? Slide: Berkeley CS188 course notes (downloaded Summer 2015)

Recommend


More recommend