Computer Science › Foundations of Computer Science

Probability & Statistics

0 of 20
  1. Axioms of Probability

    The three axioms (non-negativity, normalization, additivity) that any function must satisfy to count as a probability measure — and the rules (like unions and complements) that follow from them.

    Read →6 sections11 min
  2. Discrete Random Variables and PMFs

    A function mapping outcomes to numbers, and the probability mass function (PMF) that describes exactly how likely each of its possible values is.

    Read →6 sections12 min
  3. Expectation and Variance

    The long-run average value a random variable produces (expectation), and how spread out its values typically are around that average (variance).

    Read →6 sections13 min
  4. Descriptive Statistics: Mean, Median, and Spread

    Summarizing a real dataset you've actually collected — sample mean, median, and sample variance — and how these mirror, but are not identical to, the expectation and variance of a random variable.

    Read →6 sections13 min
  5. The Law of Large Numbers

    Why the average of many independent samples converges to the true expectation as the sample count grows — the mathematical reason "averaging out noise" actually works.

    Read →6 sections12 min
  6. The Bernoulli and Binomial Distributions

    A single yes/no trial (Bernoulli), and the count of successes across many independent repetitions of it (Binomial) — whose formula leans directly on the combinations already covered in discrete math.

    Read →6 sections13 min
  7. The Poisson Distribution

    The distribution of the number of independent events occurring in a fixed interval, derived as the limit of the Binomial distribution as the number of trials grows and success probability shrinks.

    Read →6 sections13 min
  8. Joint Distributions and Independence of Random Variables

    Describing two or more random variables together with a single joint PMF, and what it means for random variables — not just events — to be independent of one another.

    Read →6 sections13 min
  9. Continuous Random Variables and PDFs

    A random variable that can take any value in a continuous range, described by a probability density function (PDF) whose height is not itself a probability — only the area under it is.

    Read →6 sections15 min
  10. The Normal (Gaussian) Distribution

    The bell-shaped distribution that shows up constantly in nature and statistics — and the reason it shows up so often is exactly the Central Limit Theorem covered next.

    Read →6 sections11 min
  11. The Central Limit Theorem

    Why the sum (or average) of many independent random variables tends toward a Normal distribution, regardless of the shape of the individual variables being summed.

    Read →6 sections13 min
  12. Sampling and Sampling Distributions

    Why a statistic computed from a random sample is itself a random variable with its own distribution — and how the Central Limit Theorem predicts that distribution's shape.

    Read →6 sections13 min
  13. Point Estimation and the Sample Mean

    Using a single number computed from data to estimate an unknown quantity about the population it came from, and what makes an estimator (like the sample mean) a good one.

    Read →6 sections14 min
  14. Confidence Intervals

    A range of plausible values for an unknown quantity, built from a sample, that would contain the true value a specified percentage of the time if the sampling were repeated.

    Read →6 sections13 min
  15. Hypothesis Testing and p-Values

    Formally testing a claim about data by asking how surprising the observed result would be if a specific "null" hypothesis were true — and what a p-value does and doesn't tell you.

    Read →6 sections14 min
  16. The Uniform Distribution

    A continuous distribution where every value in an interval is equally likely — the simplest possible PDF, and a natural first example of integrating a density to get a probability.

    Read →6 sections12 min
  17. Conditional Probability and Independence

    How the probability of an event updates once another event is known to have occurred, and the special case — independence — where knowing one event tells you nothing about the other.

    Read →6 sections11 min
  18. Bayes' Theorem

    Reversing a conditional probability — going from P(evidence | cause) to P(cause | evidence) — the single most consequential formula in this discipline for spam filters, diagnostics, and machine learning alike.

    Read →6 sections11 min
  19. Bayesian vs. Frequentist Inference

    Two different philosophies for reasoning under uncertainty from data — updating a prior belief with Bayes' theorem versus treating the unknown quantity as fixed and the data as random — and when each is the more natural fit.

    Read →6 sections13 min

Probability & Statistics

Part of the Computer Science curriculum.

Sort
1

Sample Spaces and Events

The set of every possible outcome of an experiment (the sample space), and an event as a subset of it — the vocabulary every probability statement is built from.

2

Axioms of Probability

The three axioms (non-negativity, normalization, additivity) that any function must satisfy to count as a probability measure — and the rules (like unions and complements) that follow from them.

3

Discrete Random Variables and PMFs

A function mapping outcomes to numbers, and the probability mass function (PMF) that describes exactly how likely each of its possible values is.

4

Expectation and Variance

The long-run average value a random variable produces (expectation), and how spread out its values typically are around that average (variance).

5

Descriptive Statistics: Mean, Median, and Spread

Summarizing a real dataset you've actually collected — sample mean, median, and sample variance — and how these mirror, but are not identical to, the expectation and variance of a random variable.

6

The Law of Large Numbers

Why the average of many independent samples converges to the true expectation as the sample count grows — the mathematical reason "averaging out noise" actually works.

7

The Bernoulli and Binomial Distributions

A single yes/no trial (Bernoulli), and the count of successes across many independent repetitions of it (Binomial) — whose formula leans directly on the combinations already covered in discrete math.

8

The Poisson Distribution

The distribution of the number of independent events occurring in a fixed interval, derived as the limit of the Binomial distribution as the number of trials grows and success probability shrinks.

9

Joint Distributions and Independence of Random Variables

Describing two or more random variables together with a single joint PMF, and what it means for random variables — not just events — to be independent of one another.

10

Continuous Random Variables and PDFs

A random variable that can take any value in a continuous range, described by a probability density function (PDF) whose height is not itself a probability — only the area under it is.

11

The Normal (Gaussian) Distribution

The bell-shaped distribution that shows up constantly in nature and statistics — and the reason it shows up so often is exactly the Central Limit Theorem covered next.

12

The Central Limit Theorem

Why the sum (or average) of many independent random variables tends toward a Normal distribution, regardless of the shape of the individual variables being summed.

13

Sampling and Sampling Distributions

Why a statistic computed from a random sample is itself a random variable with its own distribution — and how the Central Limit Theorem predicts that distribution's shape.

14

Point Estimation and the Sample Mean

Using a single number computed from data to estimate an unknown quantity about the population it came from, and what makes an estimator (like the sample mean) a good one.

15

Confidence Intervals

A range of plausible values for an unknown quantity, built from a sample, that would contain the true value a specified percentage of the time if the sampling were repeated.

16

Hypothesis Testing and p-Values

Formally testing a claim about data by asking how surprising the observed result would be if a specific "null" hypothesis were true — and what a p-value does and doesn't tell you.

17

The Uniform Distribution

A continuous distribution where every value in an interval is equally likely — the simplest possible PDF, and a natural first example of integrating a density to get a probability.

18

Conditional Probability and Independence

How the probability of an event updates once another event is known to have occurred, and the special case — independence — where knowing one event tells you nothing about the other.

19

Bayes' Theorem

Reversing a conditional probability — going from P(evidence | cause) to P(cause | evidence) — the single most consequential formula in this discipline for spam filters, diagnostics, and machine learning alike.

20

Bayesian vs. Frequentist Inference

Two different philosophies for reasoning under uncertainty from data — updating a prior belief with Bayes' theorem versus treating the unknown quantity as fixed and the data as random — and when each is the more natural fit.