Quiz 2

433 words
2 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# Statistics I · Week 7 — Probability axioms Deep study for Quiz 2 week 7. Probability assigns numbers to outcomes between 0 and 1, governed by addition for disjoint events and normalization over the sample space.

Statistics I · Week 7 — Probability axioms

Deep study for Quiz 2 week 7. Probability assigns numbers to outcomes between 0 and 1, governed by addition for disjoint events and normalization over the sample space.

Week map

Sample space → event → probability scale → axioms → equally likely outcomes → complement rule → union of disjoint events.

Probability notation

  • SSsample space → set of all possible outcomes.
  • EEevent → subset of SS.
  • P(E)P(E) → probability of event EE → number in [0,1][0, 1].
  • P(E)=favorable outcomestotal outcomesP(E) = \dfrac{\text{favorable outcomes}}{\text{total outcomes}} when outcomes equally likely and finite.
Mini-example: fair die. S={1,2,3,4,5,6}S = \{1,2,3,4,5,6\}. Event “even” ={2,4,6}= \{2,4,6\}. P(even)=3/6=1/2P(\text{even}) = 3/6 = 1/2.

Axioms (finite setting)

  1. P(E)0P(E) \geq 0 for any event EE.
  2. P(S)=1P(S) = 1.
  3. If AA and BB disjoint: P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B).
Complement: P(Ac)=1P(A)P(A^c) = 1 - P(A) where AcA^c is “not AA.”
Mini-example: P(not even on die)=11/2=1/2P(\text{not even on die}) = 1 - 1/2 = 1/2.

General addition (not necessarily disjoint)

P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)
Subtract overlap once.

Pattern families

Easy — Equally likely counting

List SS, count favorable, divide. Use complement when “at least one” is easier.

Medium — Disjoint union

Add probabilities of mutually exclusive events. Verify they do not overlap.

Hard — Inclusion-exclusion light

Two events with overlap: add singles, subtract intersection. Translate word problem to AA, BB, ABA \cap B.

Worked mini-examples

Example 1 — Die.
P(roll 5)=1/6P(\text{roll } 5) = 1/6.
Example 2 — Complement.
Draw one card. P(not heart)=113/52=3/4P(\text{not heart}) = 1 - 13/52 = 3/4.
Example 3 — Disjoint sum.
Die: A={1,2}A = \{1,2\}, B={5,6}B = \{5,6\} disjoint. P(AB)=2/6+2/6=4/6P(A \cup B) = 2/6 + 2/6 = 4/6.
Example 4 — Inclusion-exclusion.
P(A)=0.4P(A)=0.4, P(B)=0.3P(B)=0.3, P(AB)=0.1P(A \cap B)=0.1. P(AB)=0.4+0.30.1=0.6P(A \cup B)=0.4+0.3-0.1=0.6.
Example 5 — Invalid probability check.
If P(A)=0.7P(A)=0.7 and P(B)=0.5P(B)=0.5 and they are disjoint, P(AB)=1.2P(A \cup B)=1.2 — impossible; they cannot be disjoint.

Traps

  • Probabilities outside [0,1][0,1] or sum of all outcomes not 1.
  • Adding P(A)+P(B)P(A)+P(B) when events overlap without subtracting intersection.
  • Assuming equally likely when outcomes are not (biased coin).
  • Complement of wrong event — define AcA^c clearly.
  • Confusing probability with odds.

Diagnostic (try yourself)

  1. Fair coin flipped once. What is P(heads)P(\text{heads})?
  2. Two disjoint events with P(A)=0.3P(A)=0.3, P(B)=0.45P(B)=0.45. Find P(AB)P(A \cup B).
  3. P(E)=0.82P(E) = 0.82. What is P(Ec)P(E^c)?
  4. Bag: 3 red, 5 blue balls, one draw. P(red)P(\text{red})?
  5. P(A)=0.5P(A)=0.5, P(B)=0.4P(B)=0.4, P(AB)=0.2P(A \cap B)=0.2. Find P(AB)P(A \cup B).
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.