Đại học Kinh tế Quốc dân – National Economics UniversityMICRO4ASIA
🏆 Arena
Sign inSign up
MICRO4ASIAThe six micro-credentials

Courses are delivered on the Limio learning platform. Limio

← Mathematical Foundations for Data Science

You are viewing a public preview

Sign in to save your progress, do assignments, join discussions and get feedback.

Sign in
Part III — Probability and Statistics

Topic 10 · Probability Foundations

Print / Save as PDF
Lecture video — Topic 10: Probability Foundations

How probability and statistics connect a model to data, sample spaces and events, probability rules, conditional probability, independence, the law of total probability and Bayes' rule with a diagnostic-test example.

Flashcards · Probability Foundations

9 words
WordMeaningExample
  • Sample space

    The set S of all possible outcomes of an experiment.

    One die roll: S = {1, 2, 3, 4, 5, 6}.

  • Event

    A subset of the sample space; it occurs when the outcome belongs to it.

    Exactly one head in two tosses is {HT, TH}.

  • Complement

    Aᶜ = S \ A, the event that A does not occur; P(Aᶜ) = 1 − P(A).

  • Addition rule

    P(A ∪ B) = P(A) + P(B) − P(A ∩ B).

    0.4 + 0.5 − 0.2 = 0.7.

  • Conditional probability

    P(A | B) = P(A ∩ B) / P(B), defined when P(B) > 0.

    P(A ∩ B) = 0.12 and P(B) = 0.30 give 0.40.

  • Independent events

    P(A ∩ B) = P(A)P(B), equivalently P(A | B) = P(A).

    Two fair coins: first heads and second heads.

  • Mutually exclusive events

    A ∩ B is empty. With positive probabilities they are never independent.

  • Law of total probability

    P(A) = Σ P(A | Bi)P(Bi) over a partition B1, …, Bk.

    0.10(0.60) + 0.30(0.40) = 0.18.

  • Bayes' rule

    P(Bj | A) = P(A | Bj)P(Bj) / Σ P(A | Bi)P(Bi): it reverses a conditional using the base rates.

    1% prevalence, 90% sensitivity, 10% false positives give P(D | +) = 1/12.

Practice in Python

Work through Section 1 of Lab 3 (Probability and Statistics, MFDS_Lab3_Probability_Statistics.ipynb), attached to the Part III materials lesson at the start of this part.