$$ \newcommand{\defeq}{\stackrel{\small\bullet}{=}} \newcommand{\ra}{\rangle} \newcommand{\la}{\langle} \newcommand{\norm}[1]{\left\|#1\right\|} \newcommand{\abs}[1]{\left\lvert#1\right\rvert} \newcommand{\Abs}[1]{\Bigl\lvert#1\Bigr\rvert} \newcommand{\pr}{{\mathbb P}} \newcommand{\qr}{{\mathbb Q}} \newcommand{\xv}{{\boldsymbol{x}}} \newcommand{\av}{{\boldsymbol{a}}} \newcommand{\bv}{{\boldsymbol{b}}} \newcommand{\cv}{{\boldsymbol{c}}} \newcommand{\dv}{{\boldsymbol{d}}} \newcommand{\ev}{{\boldsymbol{e}}} \newcommand{\fv}{{\boldsymbol{f}}} \newcommand{\gv}{{\boldsymbol{g}}} \newcommand{\hv}{{\boldsymbol{h}}} \newcommand{\nv}{{\boldsymbol{n}}} \newcommand{\sv}{{\boldsymbol{s}}} \newcommand{\tv}{{\boldsymbol{t}}} \newcommand{\uv}{{\boldsymbol{u}}} \newcommand{\vv}{{\boldsymbol{v}}} \newcommand{\wv}{{\boldsymbol{w}}} \newcommand{\zerov}{{\mathbf{0}}} \newcommand{\onev}{{\mathbf{0}}} \newcommand{\phiv}{{\boldsymbol{\phi}}} \newcommand{\cc}{{\check{C}}} \newcommand{\xv}{{\boldsymbol{x}}} \newcommand{\Xv}{{\boldsymbol{X}\!}} \newcommand{\yv}{{\boldsymbol{y}}} \newcommand{\Yv}{{\boldsymbol{Y}}} \newcommand{\zv}{{\boldsymbol{z}}} \newcommand{\Zv}{{\boldsymbol{Z}}} \newcommand{\Iv}{{\boldsymbol{I}}} \newcommand{\Jv}{{\boldsymbol{J}}} \newcommand{\Cv}{{\boldsymbol{C}}} \newcommand{\Ev}{{\boldsymbol{E}}} \newcommand{\Fv}{{\boldsymbol{F}}} \newcommand{\Gv}{{\boldsymbol{G}}} \newcommand{\Hv}{{\boldsymbol{H}}} \newcommand{\alphav}{{\boldsymbol{\alpha}}} \newcommand{\epsilonv}{{\boldsymbol{\epsilon}}} \newcommand{\betav}{{\boldsymbol{\beta}}} \newcommand{\deltav}{{\boldsymbol{\delta}}} \newcommand{\gammav}{{\boldsymbol{\gamma}}} \newcommand{\etav}{{\boldsymbol{\eta}}} \newcommand{\piv}{{\boldsymbol{\pi}}} \newcommand{\thetav}{{\boldsymbol{\theta}}} \newcommand{\tauv}{{\boldsymbol{\tau}}} \newcommand{\muv}{{\boldsymbol{\mu}}} \newcommand{\phiinv}{\Phi^{-1}} \newcommand{\Fiinv}{F^{-1}} \newcommand{\giinv}{g^{-1}} \newcommand{\fhat}{\hat{f}} \newcommand{\ghat}{\hat{g}} \newcommand{\ftheta}{f_\theta} \newcommand{\fthetav}{f_{\thetav}} \newcommand{\gtheta}{g_\theta} \newcommand{\gthetav}{g_{\thetav}} \newcommand{\ztheta}{Z_\theta} \newcommand{\xtheta}{\Xv_\theta} \newcommand{\ytheta}{\Yv_\theta} \newcommand{\p}{\partial} \newcommand{\f}{\frac} \newcommand{\cf}{\cfrac} \newcommand{\e}{\epsilon} \newcommand{\indep}{\perp\kern-5pt \perp} \newcommand{\inner}[1]{\langle#1\rangle} \newcommand{\pa}[1]{\left(#1\right)} \newcommand{\pb}[1]{\left\{#1\right\}} \newcommand{\pc}[1]{\left[#1\right]} \newcommand{\pA}[1]{\Big(#1\Big)} \newcommand{\pB}[1]{\Big\{#1\Big\}} \newcommand{\pC}[1]{\Big[#1\Big]} \newcommand{\ty}[1]{\texttt{#1}} \newcommand{\borel}[1]{\mathscr{B}\pa{#1}} \newcommand{\scr}{\mathcal} \newcommand{\scrb}{\mathscr} \newcommand{\argmin}{\mathop{\text{arg}\ \!\text{min}}} \newcommand{\arginf}{\mathop{\text{arg}\ \!\text{inf}}} \newcommand{\argmax}{\mathop{\text{arg}\ \!\text{max}}} \newcommand{\argsup}{\mathop{\text{arg}\ \!\text{sup}}} \newcommand{\bigo}[1]{\mathcal{O}_{p}\!\left(#1\right)} \newcommand{\f}{\frac} \newcommand{\e}{\epsilon} \newcommand{\inv}{^{-1}} \newcommand{\phiinv}{\Phi^{-1}} \newcommand{\Fiinv}{F^{-1}} \newcommand{\giinv}{g^{-1}} \newcommand{\fhat}{\hat{f}} \newcommand{\ghat}{\hat{g}} \newcommand{\ftheta}{f_\theta} \newcommand{\fthetav}{f_{\thetav}} \newcommand{\gtheta}{g_\theta} \newcommand{\gthetav}{g_{\thetav}} \newcommand{\ztheta}{Z_\theta} \newcommand{\xtheta}{\Xv_\theta} \newcommand{\ytheta}{\Yv_\theta} \newcommand{\absdet}[1]{\abs{\det\pa{#1}}} \newcommand{\jac}[1]{\Jv_{#1}} \newcommand{\absdetjx}[1]{\abs{\det\pa{\Jv_{#1}}}} \newcommand{\absdetj}[1]{\norm{\Jv_{#1}}} \newcommand{\sint}{sin(\theta)} \newcommand{\cost}{cos(\theta)} \newcommand{\sor}[1]{S\mathcal{O}(#1)} \newcommand{\ort}[1]{\mathcal{O}(#1)} \newcommand{\A}{{\mathcal A}} \newcommand{\C}{{\mathbb C}} \newcommand{\E}{{\mathbb E}} \newcommand{\F}{{\mathcal{F}}} \newcommand{\N}{{\mathbb N}} \newcommand{\R}{{\mathbb R}} \newcommand{\Q}{{\mathbb Q}} \newcommand{\Z}{{\mathbb Z}} \newcommand{\X}{{\mathbb{X}}} \newcommand{\Y}{{\mathbb{Y}}} \newcommand{\G}{{\mathcal{G}}} \newcommand{\M}{{\mathcal{M}}} \newcommand{\betaequivalent}{\beta\text{-equivalent}} \newcommand{\betaequivalence}{\beta\text{-equivalence}} \newcommand{\Mb}{{\boldsymbol{\mathsf{M}}}} \newcommand{\Br}{{\mathbf{\mathsf{Bar}}}} \newcommand{\dgm}{{\mathfrak{Dgm}}} \newcommand{\Db}{{\mathbf{\mathsf{D}}}} \newcommand{\Img}{{\mathbf{\mathsf{Img}}}} \newcommand{\mmd}{{\mathbf{\mathsf{MMD}}}} \newcommand{\Xn}{{\mathbb{X}_n}} \newcommand{\Xm}{{\mathbb{X}_m}} \newcommand{\Yn}{{\mathbb{Y}_n}} \newcommand{\Ym}{Y_1, Y_2, \cdots, Y_m} \newcommand{\Xb}{{\mathbb{X}}} \newcommand{\Yb}{{\mathbb{Y}}} \newcommand{\s}{{{\sigma}}} \newcommand{\fnsbar}{{\bar{f}^n_\s}} \newcommand{\fns}{{f^n_\s}} \newcommand{\fs}{{f_\s}} \newcommand{\fsbar}{{\bar{f}_\s}} \newcommand{\barfn}{{{f}^n_\sigma}} \newcommand{\barfnm}{{{f}^{n+m}_\sigma}} \newcommand{\barfo}{{{f}_\sigma}} \newcommand{\fn}{{f^n_{\rho,\sigma}}} \newcommand{\fnm}{{f^{n+m}_{\rho,\sigma}}} \newcommand{\fo}{{f_{\rho,\sigma}}} \newcommand{\K}{{{K_{\sigma}}}} \newcommand{\barpn}{{\bar{p}^n_\sigma}} \newcommand{\barpo}{{\bar{p}_\sigma}} \newcommand{\pn}{{p^n_\sigma}} \newcommand{\po}{{p_\sigma}} \newcommand{\J}{{\mathcal{J}}} \newcommand{\B}{{\mathcal{B}}} \newcommand{\pt}{{\tilde{\mathbb{P}}}} \newcommand{\Winf}{{W_{\infty}}} \newcommand{\winf}{{W_{\infty}}} \newcommand{\HH}{{{\scr{H}_{\sigma}}}} \newcommand{\D}{{{\scr{D}_{\sigma}}}} \newcommand{\Ts}{{T_{\sigma}}} \newcommand{\Phis}{{\Phi_{\sigma}}} \newcommand{\nus}{{\nu_{\sigma}}} \newcommand{\Qs}{{\mathcal{Q}_{\sigma}}} \newcommand{\ws}{{w_{\sigma}}} \newcommand{\vs}{{v_{\sigma}}} \newcommand{\ds}{{\delta_{\sigma}}} \newcommand{\fp}{{f_{\pr}}} \newcommand{\prs}{{\widetilde{\pr}_{\sigma}}} \newcommand{\qrs}{{\widetilde{\qr}_{\sigma}}} \newcommand{\Inner}[1]{\Bigl\langle#1\Bigr\rangle} \newcommand{\innerh}[1]{\langle#1\rangle_{\HH}} \newcommand{\Innerh}[1]{\Bigl\langle#1\Bigr\rangle_{\HH}} \newcommand{\normh}[1]{\norm{#1}_{\HH}} \newcommand{\norminf}[1]{\norm{#1}_{\infty}} \newcommand{\gdelta}{{\G_{\delta}}} \newcommand{\supgdelta}{{\sup\limits_{g\in\gdelta}\abs{\Delta_n(g)}}} \newcommand{\id}{\text{id}} \newcommand{\supp}{\text{supp}} \newcommand{\cech}{\v{C}ech} \newcommand{\Zz}{{\scr{Z}}} \newcommand{\psis}{\psi_\s} \newcommand{\phigox}{\Phis(\xv)-g} \newcommand{\phigoy}{\Phis(\yv)-g} \newcommand{\fox}{{f^{\epsilon,{\xv}}_{\rho,\sigma}}} \newcommand{\prx}{{\pr^{\epsilon}_{\xv}}} \newcommand{\pro}{{\pr_0}} \newcommand{\dotfo}{\dot{f}_{\!\!\rho,\s}} \newcommand{\phifo}{{\Phis(\yv)-\fo}} \newcommand{\phifox}{{\Phis(\xv)-\fo}} \newcommand{\kinf}{{\norm{\K}_{\infty}}} \newcommand{\half}{{{\f{1}{2}}}} \newcommand{\Jx}{\J_{\epsilon,{\xv}}} \newcommand{\dpy}{\text{differential privacy}} \newcommand{\edpy}{$\epsilon$--\text{differential privacy}} \newcommand{\eedpy}{$\epsilon$--edge \text{differential privacy}} \newcommand{\dpe}{\text{differentially private}} \newcommand{\edpe}{$\epsilon$--\text{differentially private}} \newcommand{\eedpe}{$\epsilon$--edge \text{differentially private}} \newcommand{\er}{Erdős-Rényi} \newcommand{\krein}{Kreĭn} % \newcommand{\grdpg}{\mathsf{gRDPG}} % \newcommand{\rdpg}{\mathsf{RDPG}} % \newcommand{\eflip}{{\textsf{edgeFlip}}} % \newcommand{\grdpg}{\text{gRDPG}} % \newcommand{\rdpg}{\text{RDPG}} \newcommand{\grdpg}{\mathsf{gRDPG}} \newcommand{\rdpg}{\mathsf{RDPG}} \newcommand{\eflip}{{\text{edgeFlip}}} \newcommand{\I}{{\mathbb I}} \renewcommand{\pa}[1]{\left(#1\right)} \renewcommand{\pb}[1]{\left\{#1\right\}} \renewcommand{\pc}[1]{\left[#1\right]} \renewcommand{\V}{\mathbb{V}} \renewcommand{\W}{\mathbb{W}} %%%%%%%%%%%%%%%%%%%%%%%%%%% \providecommand{\fd}{\frac 1d} % \renewcommand{\fpp}{{\frac 1p}} \providecommand{\pfac}{\f{p}{p-1}} \providecommand{\ipfac}{\f{p-1}{p}} \providecommand{\dbq}{\Delta b_{n,m,Q}\qty(\qty{\xvo})} \providecommand{\db}{\Delta b_{n,m}\qty(\qty{\xvo})} \providecommand{\bbv}{{{\mathbb{V}}}} \providecommand{\bbw}{{{\mathbb{W}}}} \providecommand{\md}{\textsf{MoM Dist}} \providecommand{\bF}{{\mathbf{F}}} \providecommand{\sub}{{\text{Sub}}} \providecommand{\samp}{\text{$\pa{\scr{S}}$}} \providecommand{\tp}{{2^{\f{p-1}{p}}}} %%%%%%%%%%%%%%%%%%%%%%%%%% \providecommand{\Xmn}{{\mathbb{X}_{n+m}}} \newcommand{\Dnmq}{\D[n+m, Q]} \newcommand{\Dnmh}{\D[n+m, \H]} \newcommand{\Dn}{\D[n]} \providecommand{\xvo}{\xv_0} \providecommand{\bn}[1][\null]{b^{#1}_{n}\pa{\pb{\xvo}}} \providecommand{\bnm}[1][\null]{b^{#1}_{n+m}\pa{\pb{\xvo}}} \providecommand{\bnq}[1][\null]{b^{#1}_{n,Q}\pa{\pb{\xvo}}} \providecommand{\bnmq}[1][\null]{b^{#1}_{n+m,Q}\pa{\pb{\xvo}}}\providecommand{\prq}{\pr_q} \providecommand{\dxvo}{{\delta_{\xvo}}} \providecommand{\sq}{S_q} \providecommand{\Sq}{\abs{S_q}} \providecommand{\no}{{n_o}} \providecommand{\mmdn}{\mmd\pa{\pr_n, \delta_{\xvo}}} \newcommand{\rqt}{\xi_{q}(t; n, Q)} \providecommand{\nq}{\f{n}{Q}} \providecommand{\Ot}{\Omega(t, n/Q)} \providecommand{\ut}[1]{U^{#1}} \providecommand{\vt}[1]{V^{#1}} \providecommand{\wt}[1]{W^{#1}} \providecommand{\but}[1]{\mathbb{U}^{#1}} \providecommand{\bvt}[1]{\mathbb{V}^{#1}} \providecommand{\bwt}[1]{\mathbb{W}^{#1}} \providecommand{\ball}[1]{B_{f\!, \rho}\pa{#1}} \newcommand*{\medcap}{\mathbin{\scalebox{0.75}{{\bigcap}}}}% \newcommand*{\medcup}{\mathbin{\scalebox{0.75}{{\bigcup}}}}% \providecommand{\dsf}{\mathsf{d}} \newcommand{\Dnh}{{\mathsf{D}_{n,\scr{H}}}} \newcommand{\Dph}{{\mathsf{D}_{\pr,\scr{H}}}} \newcommand{\D}[1][1={ },usedefault]{{\mathsf{D}_{#1}}} \newcommand{\Dnq}{{\mathsf{D}_{n, Q}}} \newcommand{\dnq}{{\mathsf{d}_{n, Q}}} \newcommand{\dn}{{\mathsf{d}_{n}}} \newcommand{\dnm}{{\mathsf{d}_{n-m}}} \newcommand{\dmn}{{\mathsf{d}_{n+m}}} \newcommand{\dx}{{\mathsf{d}_{\mathbb{X}}}} \providecommand{\med}{\text{median}} \providecommand{\median}{\text{median}} \providecommand{\Xnm}{{\mathbb{X}^*_{n-m}}} $$

Week-2

Math 183 • Statistical Methods • Spring 2026

Siddharth Vishwanath

Learning objectives

$$ % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%% % %%%%%%%%%%%%%%%%%%%%%%%%%% % %

% % \providecommand{}{p_{0}} \providecommand{}{p_{1}} \providecommand{}{p_{2}} \providecommand{}{p_{12}} \providecommand{1n}{p_{1n}} % % % % $$

  • Randomness
  • Sample spaces and Events
  • Elements of set theory
  • Probability
  • Random variables

Example

Example

You’ve decided to drive to campus today, and you’re just about on time for your lecture at 8:00am. You’re on the home stretch, and made it all the way to the Osler Parking Structure. What happens next?

Example

Example

Example

You’ve decided to drive to campus today, and you’re just about on time for your lecture at 8:00am. You’re on the home stretch, and made it all the way to the Osler Parking Structure. What happens next?

  • The there are free spots available 🎉
  • The parking lot is jammed up the wazoo 🤕
  • The parking lot is closed for construction 🤯

  • These are examples of events

  • The event you actually observe on the given day is (sort of) random

Some Definitions

Random phenomenon

A random phenomenon is a situation in which we know what outcomes could possibly occur, but we don’t know for sure which particular outcome will happen

Trials & Outcomes

Each occasion upon which we observe a random phenomenon is called a trial. A particular observation which we record from a trial is called the trial’s outcome.

Events & Sample Space

An event is a combination of outcomes we might observe from a random phenomenon. We call the collection of all possible events the sample space.

Example

Coin toss

You toss a coin with two sides H and T. What is the random phenomenon? What is the trial here? What is the sample space?

When you toss the coin, it lands with T facing up. What is the outcome? What event have you just observed?

Example

Deck of Cards

You shuffle a full deck of cards, and draw a card from the deck. What is the random phenomenon? What is the trial here? What is the sample space?

The card you draw is the Queen of hearts. What is the outcome of your trial? What event have you just observed?

Probability

Probability

The probability of an event quantifies the likelihood of observing the event as the outcome of a trial among the universe of all possible events in the sample space.

Types of Probability

Empirical Probability:

The probability of an event based on repeatedly observing the outcome of an event

Subjective Probability:

The probability guesstimate you have about the possibility of an outcome for an event

Theoretical Probability:

The probability of an event based on an actual mathematical model \[\mathbb{P}(A) = \frac{\# \text{outcomes in }A}{\# \text{all possible outcomes}}\]

Three rules for working with probability

  1. Make a picture
  2. Make a picture
  3. Make a picture

Bonus rule

  1. Make a picture

The event \(A \subset S\)

images courtesy: Probability Tree, Siegel & Wagner

\[ {\mathbb P}(A) = \frac{\# \text{outcomes in }A}{\# \text{all possible outcomes}} = \frac{\text{size of } A}{\text{size of } S} \]

Revision of Set Theory

Given an event \(A\), the event “not A” is given by

\[ A^c = S \setminus A \]

Example

Let \(A = \left\{♠, ♣\right\}\) be the event that a card randomly drawn is a club or a spade. What is the complement of this event?

Revision of Set Theory

Given two events \(A\) and \(B\)

  • the event “A AND B” is given by \[A \cap B\]

Example

Flip a coin four times. Let \(A\) be the event that the first two tosses are H. Let \(B\) be the event that the every even coin toss is a H. What is the event \(A\) AND \(B\)?

Revision of Set Theory

Given two events \(A\) and \(B\)

  • the event “A OR B” is given by \[A \cup B\]

Example

Flip a coin four times. Let \(A\) be the event that the first two tosses are H. Let \(B\) be the event that the every even coin toss is a H. What is the event \(A\) OR \(B\)?

Independence

Consider the following two events

\[ A = \left\{\text{Mr. Beast uploads a new video on YouTube}\right\}\\ B = \left\{\text{Selena Gomez DMs you on Instagram}\right\} \] If \(B\) actually happens, how does it affect the probability of \(A\)?

Independent Events

Two events \(A, B\) are said to be independent if and only if \[ {\mathbb P}(A \cap B) = {\mathbb P}(A) \times {\mathbb P}(B) \]

  • Informally, two events are independent if and only if the outcome of one event doesn’t affect the probability of the other.

Axioms of Probability

  1. The probability of an event is between \(0\) and \(1\), i.e., for any event \(A \subset S\) \[ 0 \le {\mathbb P}(A) \le 1 \]

  1. The set of all possible outcomes of a trial must have probability \(1\), i.e., \[ {\mathbb P}(S) = 1 \]

  1. The probability of an event \(A\) not occurring is \[ {\mathbb P}(A^c) = 1 - {\mathbb P}(A) \]

  1. For two disjoint events \(A\) and \(B\) (i.e., \(A \cap B = \varnothing\)), the probability of \(A\) or \(B\) is their sum, i.e., \[ {\mathbb P}(A \cup B) = {\mathbb P}(A) + {\mathbb P}(B) \hspace{2em} \Leftrightarrow \hspace{2em} A \cap B = \varnothing \]

  1. When the events \(A\) and \(B\) are not disjoint (i.e., \(A \cap B \neq \varnothing\)), the probability of \(A\) or \(B\) is \[ {\mathbb P}(A \cup B) = {\mathbb P}(A) + {\mathbb P}(B) - {\mathbb P}(A \cap B) \]

  1. When the events \(A\) and \(B\) are independent, the probability of \(A\) and \(B\) is \[ {\mathbb P}(A \cap B) = {\mathbb P}(A) \times {\mathbb P}(B) \]

Rule 5: Inclusion-Exclusion Principle

Inclusion Exclusion Principle

\[ \begin{aligned} {\mathbb P}(A \cup B \cup C) &= {\mathbb P}(A) + {\mathbb P}(B) + {\mathbb P}(C) \\ &- {\mathbb P}(A \cap B) - {\mathbb P}(A \cap C) - {\mathbb P}(B \cap C) \\ &+ {\mathbb P}(A \cap B \cap C) \end{aligned} \]

Be Careful

  1. Beware of probabilities that don’t add up to 1.
    • The sum of the probabilities for all possible outcomes must total 1
    • If the sum is less than \(1\), make sure have accounted for all possible events
    • If the sum is greater than \(1\), you may be assuming some events are disjoint when they are not
  2. Don’t add probabilities of events if they’re not disjoint.
    • Remember the inclusion-exclusion principle
  3. Don’t multiply probabilities of events if they’re not independent.
  4. Don’t confuse disjoint and independent.

Examples

Getting to School

Your first class on M/W/F is a 8:00AM lecture at Pepper Canyon Hall. You like to cut things fine, and consistently leave home to catch the 7:40AM blue line trolley from Nobel Dr to get to class. There’s a 20% chance the trolley is late on any given day.

  1. What is the probability that you’re late to class on any given day?
  2. What is the probability that the first time you’re late this week is a Friday?
  3. What is the probability that you’re late every day this coming week?
  4. What is the probability that you’re late at least once this coming week?

The Enchanted Portal

While playing Dungeons & Dragons, your party encounters an enchanted portal. To unlock this portal and proceed to the treasure room, a specific combination of numbers from three dice must be rolled. These aren’t ordinary dice; they are a D4 (a four-sided die), a D6 (a six-sided die), and a D8 (an eight-sided die).

The Enchantment’s Conditions: (i) D4 must show a prime number, (ii) D6 should not show an even number, and (iii) D8 must show a number greater than 5.

  1. Formulate the events based on the conditions given.
  2. Calculate the probability of each event occurring.
  3. Are the events independent?
  4. What is the probability that all three conditions are satisfied simultaneously?
  5. What is the probability that at least one of the conditions is satisfied?

Cell phone survey

A 2010 study conducted by the National Center for Health Statistics found that 25% of U.S. households had no landline service. This raises concerns about the accuracy of certain surveys, as they depend on random-digit dialing to households via landlines.

We are going to pick five U.S. households at random:

  1. What is the probability that all five of them have a landline?
  2. What is the probability that at least one of them does not have a landline?
  3. What is the probability that at least one of them does have a landline?

Social media survey

Instragram No Instagram
TikTok 150 50
No TikTok 700

A survey on \(1000\) UCSD undergrads resulted in the above table.

For a randomly selected undergrad:

  1. What is the probability that they use Instagram?
  2. What is the probability that they use TikTok?
  3. What is the probability that they use both Instagram and TikTok?
  4. What is the probability that they use either Instagram or TikTok?
  5. What is the probability that they use Instagram or TikTok, but not both?
  6. What is the probability that they don’t use Instagram or TikTok?
  7. Are the events that they use Instagram and TikTok independent?

Traffic

  • \({\mathbb P}(\text{traffic jam}) = 0.20\)
  • \({\mathbb P}(\text{traffic jam}) = 0.50\)
  • \({\mathbb P}(\text{traffic jam}) = 0.75\)
  • \({\mathbb P}(\text{traffic jam}) = 0.10\)

What is the probability of encountering a traffic jam from start to finish?

Law of Total Probability

Law of Total Probability

Let \(A\) and \(B\) be two events. Then \[ {\mathbb P}(A) = {\mathbb P}(A \cap B) + {\mathbb P}(A \cap B^c) \]

Traffic

  • \({\mathbb P}(\text{traffic jam}) = 0.20\)
  • \({\mathbb P}(\text{traffic jam}) = 0.50\)
  • \({\mathbb P}(\text{traffic jam}) = 0.75\)
  • \({\mathbb P}(\text{traffic jam}) = 0.10\)

\[ \begin{aligned} {\mathbb P}(\text{traffic jam}) &= {\mathbb P}(\text{traffic jam} \cap \text{R}_1) + {\mathbb P}(\text{traffic jam} \cap \text{R}_1^c) \end{aligned} \]

\[ {\mathbb P}(\text{traffic jam}) = {\mathbb P}\left(\{\color{red}{\text{red}} \cup \color{gold}{\text{yellow}}\} \cap \{\text{R}_1\}\right) + {\mathbb P}\left(\{\color{blue}{\text{blue}} \cup \color{purple}{\text{purple}}\} \cap \{\text{R}_1\}^c\right) \]

Conditional Probability

Conditional Probability

Conditioning on the event \(A\) means that we operate under the assumption that \(A\) happens, meaning, the sample space reduces to everything under \(A\).

  • \(B | A\) is the event that \(B\) happens when we know that \(A\) has already occurred.

\[{\mathbb P}(B| A) = \frac{{\mathbb P}(A \cap B)}{{\mathbb P}(A)}\]

  • Rearranging, we also get the general expression \[{\mathbb P}(A \cap B) = {\mathbb P}(B | A) \times {\mathbb P}(A)\]

Alternate definition for Independence

\(A\) and \(B\) are independent if and only if \({\mathbb P}(B | A) = {\mathbb P}(B)\)

Blindfolded Rolling Dice

You roll two dice blindfolded. I have a look at the outcome and tell you that their sum is a prime number.

  1. What is the probability that both dice landed on the same number?
  2. What is the probability that both dice landed on an even number?
  3. What is the probability that both dice landed on an odd number?
  4. What is the probability that one of them is a “3”?

Traffic

  • \({\mathbb P}(\text{traffic jam}) = 0.20\)
  • \({\mathbb P}(\text{traffic jam}) = 0.50\)
  • \({\mathbb P}(\text{traffic jam}) = 0.75\)
  • \({\mathbb P}(\text{traffic jam}) = 0.10\)

\[ \begin{aligned} {\mathbb P}\left(\{\color{red}{\text{red}} \cup \color{gold}{\text{yellow}}\} \cap \text{R}_1\right) &= {\mathbb P}\left(\{\color{red}{\text{red}} \cup \color{gold}{\text{yellow}}\} \;\vert\; \text{R}_1\right) \times {\mathbb P}(\text{R}_1)\\ &= (\color{red}{0.2} + \color{gold}{0.5} - \color{red}{0.2} \times \color{gold}{0.5}) \times 0.5\\ \\ {\mathbb P}\left(\{\color{blue}{\text{blue}} \cup \color{purple}{\text{purple}}\} \cap \text{R}_1^c\right) &= {\mathbb P}\left(\{\color{blue}{\text{blue}} \cup \color{purple}{\text{purple}}\} \;\vert\; \text{R}_1^c\right) \times {\mathbb P}(\text{R}_1^c)\\ &= ( \color{blue}{0.75} + \color{purple}{0.1} - \color{blue}{0.75} \times \color{purple}{0.1}) \times 0.5 \end{aligned} \]

Conditional Probability Rules

Let \(A\) and \(B\) be two events

Law of Total Probability

\[ {\mathbb P}(B) = {\mathbb P}(B | A) \times {\mathbb P}(A) + {\mathbb P}(B | A^c) \times {\mathbb P}(A^c) \]

Bayes’ Theorem

\[ {\mathbb P}(A | B) = \frac{{\mathbb P}(B | A) \times {\mathbb P}(A)}{{\mathbb P}(B)} \]

Visualizing Conditional Probabilities

Example

💉✅ 💉❌
COVID 🤒 500 1200
No COVID 🙂 4500 4800

What is the probability of getting COVID conditioned on the event that you got the vaccine?

  • \(A =\) {🤒}, \(B =\) {💉✅}. \(\ \ \ \ \ \ A | B = A \textbf{ given } B =\) {🤒 after 💉✅}.

\[ \begin{aligned} {\mathbb P}(A | B) &= \frac{\#\left\{🤒 \text{ AND } 💉✅\right\}}{\#\left\{🤒 \text{ AND } 💉✅\right\} + \#\left\{🙂 \text{ AND } 💉✅\right\}}\\ \\ &= \frac{500}{500 + 4500} \end{aligned} \]

Independence vs. Disjoint

Food for thought

We know that \(A\) and \(B\) are two independent events. Does it imply that \(A\) and \(B\) are disjoint, i.e., \(A \cap B = \varnothing\)?

Examples

Example

Marbles

A box contains \(8\) white marbles and \(3\) red marbles. We pick draw two marbles at random from the box (without replacing them). What is the probability that the second marble selected is red, given that the first marble selected is white?

Netflicks streaming

A study by Netflicks revealed that at 80% of the students at UCSD stream Netflicks to watch movies and TV. The study further revealed that only 20% of the students who watch Netflicks actually pay for it themselves.

We are going to pick a student at random.

  1. Formulate the two events mentioned in this scenario.
  2. In mathematical terms, define the event where the student watches Netflicks but doesn’t pay for it.
  3. What is the probability of this event?

The mystery of the dead plant

You have a plant (🪴) which needs watering on a regular basis. Without water the plant will die with probability \(0.7\), and with water it will die with probability \(0.1\).

You travel out of town and and ask your (absent minded) friend to water the plant. Your friend, being absent minded, sometimes forgets instructions they are given with probability \(0.2\).

The mystery of the dead plant

You have a plant (🪴) which needs watering on a regular basis. Without water the plant will die with probability \(0.7\), and with water it will die with probability \(0.1\).

You travel out of town and and ask your (absent minded) friend to water the plant. Your friend, being absent minded, sometimes forgets instructions they are given with probability \(0.2\).

a. What is the probability that the plant will die?

b. You come back from your trip and find that the plant is dead. What is the probability that your friend forgot to water the plant?

Highway Safety

A recent Maryland highway safety study found that in 77% of all accidents the driver was wearing a seatbelt. Accident reports indicated that 92% of those drivers escaped serious injury (defined as hospitalization or death), but only 63% of the nonbelted drivers were so fortunate.

What’s the probability that a driver who was seriously injured wasn’t wearing a seatbelt?

COVID-19

A recent study found that 80% of the people who tested positive for COVID-19 had a fever. The study also found that 95% of the people who tested negative for COVID-19 did not have a fever.

a. What is the probability that a person has COVID-19 given that they have a fever?

b. What is the probability that a person has COVID-19 given that they do not have a fever?