← Library

Mathematics · Study note · Handwritten

Lesson 1: What is probability?

November 30, 2026 · 1 min readTranscribed from handwriting, checked by me
Download original PDF

Transcription

probability is used for everyday life!

  • LLM: Outputs the probability prediction.
  • Self-driving Car: outputs the most likely actions for driving

probability:

Definition #1: as frequency

P(E)⏟probabilityof an Event E≈Count(E)n\underbrace{P(E)}_{\substack{\text{probability} \\ \text{of an Event } E}} \approx \frac{\text{Count}(E)}{n}
  • Count(E)\text{Count}(E) ← How many times EE occurs
  • nn ← # of experiment runs
  • → why approximation instead of actual (≈\approx, NOT ==)
    • ↳ because it is NOT an actual probability, it is more like an estimation.
  • ✱ Approximation improves as nn increases.

A few key terms:

  • Experiment: A process with outcomes
    • e.i. Coin flip, Roll a 6-sided die, ChatGPT completes ‘The Capital of France is __’
  • Event, EE: A set of outcomes we care about
    • e.i. Flipping head, Roll 5 or 6

✱ Some experiments have equally likely outcomes.

  • Coin flip: {Head,Tails}\{\text{Head}, \text{Tails}\}
  • Roll of 6-sided die: {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}

If (and only if) all outcomes are equally likely:

P(E)=# outcomes in E# possible outcomesP(E) = \frac{\#\ \text{outcomes in } E}{\#\ \text{possible outcomes}}

However! Most experiments do NOT have equally likely outcomes!

How many runs are enough?

95% range=2⋅P(E)⋅(1−P(E))n95\%\ \text{range} = 2 \cdot \frac{\sqrt{P(E) \cdot (1 - P(E))}}{\sqrt{n}}

← 95% of the time, your estimate will land within this distance of the true probability.

✱ As n↑n \uparrow, range gets smaller → More accurate!

↳ Generalized form: 95% range≤1n95\%\ \text{range} \le \dfrac{1}{\sqrt{n}}


Definition #2: as Belief

  • how confident am I? how uncertain am I?

e.i. Let EE be the event that there is a motorcycle in front of me.

well, we can’t do experiments multiple times.

↳ how confident am I that there is a motorcycle?

Courses

Mathematics · probability

Constellation

Probability for AI