Conge 精进

AI 笔记 Week 06 Probability

2017-10-12
本文 1440 字,阅读全文约需 5 分钟

Week 6 Announcement

This week you should watch Lesson 5, Probability, and read Chapter 13 in AIMA (Russell & Norvig). Assignment 3:  Bayes Nets Sampling

Challenge question

chanllenge question

Solution

Solution

  • P(x) is the probability of the disease without other constraints
  • P(Y) is calculated P(Y ~X)P(~X) + P(Y X)P(X)

Intro To Probability And Bayes Nets

Bayes network example

  • in the above example, we have random variables represents events which are connected by arrows to describe the relationships.
  • the arrows indicate that the child nodes are influenced by their parents, and the influence can be a deterministic or probabilistic way.
  • Bayes net is a compact representation of the distribution of the large probability distribution of all the variables.
  • With Bayes net, we can specify the distribution, observe certain variables and compute probabilities of unobserved variables.

outline

outline

Probability / Coin Flip

Probability

  • P(T) = 1 - P(H)
  • since H and T are independent events, P(H,H,H) = P(H) x P(H) x P(H)

Probability 2

  • remember, P(H) and P(T) are independent

Summary

Complementary and independence

Dependence

Dependence

quiz: Weather

quiz

  • complementary rule applies for the first 2 quiz questions.

quiz

  • dependence rule applies to the calculation of P(D2 = Sunny) and P(D3 = Sunny)
  • P(D2 = Sunny) = P(D2 = Sunny D1 = Sunny) x P(D1 = Sunny) + P(D2 = Sunny D1 = Rainy) x P(D1 = Rainy)
  • Simillarly, * P(D3 = Sunny) = P(D3 = Sunny D2 = Sunny) x P(D2 = Sunny) + P(D3 = Sunny D2 = Rainy) x P(D2 = Rainy)

Quiz: Cancer

joint probability

  • joint probability of a and b is P(a, b) = P(a) x P(b)

  • P(C +) = P( +,C) /(P(+,C) + P(-,C))
  • this is the Bayes rule!

Bayes Rule

Bayes Rule

  • Prior
  • Posterior
  • Likelihood
  • Marginal likelihood (Total probability)
20171006 初稿
原文地址 https://conge.livingwithfcs.org/2017/10/12/AI-bi-ji-Week-06-Probability/
Paypal
请我喝咖啡

Comments

Content