Probability Densities
Probability for quantities that vary continuously, described by a density whose area over an interval is the chance of landing there.
Needs a step first: 16
A height or a waiting time can take any value, so the chance of any one exact value is zero. Instead a density with total area gives , and the distribution function is its integral. Expectations become integrals too: . The uniform, exponential and normal densities, the central limit theorem, entropy for continuous variables and generative models all work in this setting.
Where it shows up: A generative image model learns a density over pictures, and its training loss compares densities using cross-entropy.
How to hold it: In your head
See a density as probability per unit length, so probability is the area under it, and see why a density can exceed while a probability cannot.
What knowing it looks like
- Find the constant that makes a function a density, and compute probabilities as integrals.
- Find the mean, variance and median of a continuous distribution.
- Explain why a density can be larger than while a probability cannot.
Test yourself
has density for and elsewhere. Find , , and the median of .
Show the worked answer
Needs a step first: 16
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "Probability Densities" (Undergraduate I tier): Probability for quantities that vary continuously, described by a density whose area over an interval is the chance of landing there. I already know: Binomial, Poisson and Normal Distributions, Techniques of Integration. Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away. Finish by testing me with this: $X$ has density $f(x)=kx$ for $0\le x\le2$ and $0$ elsewhere. Find $k$, $P(X>1)$, $E[X]$ and the median of $X$. Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.
Needs first
- Binomial, Poisson and Normal DistributionsThree shapes chance takes again and again: counts of successes, counts of rare events, and measurements clustered around an average.Core · Probability & Statistics
- Techniques of IntegrationThe methods for finding antiderivatives that are not obvious: substitution, integration by parts and partial fractions.Core · Functions & Calculus
Leads to
- The Central Limit TheoremAdd up many independent random quantities and the total is close to normal, whatever each one's own distribution looks like.Undergraduate I · Probability & Statistics
- Joint Distributions and CovarianceHow two or more random quantities behave together, and covariance, which measures whether they tend to rise and fall together.Undergraduate I · Probability & Statistics
- Maximum LikelihoodEstimating a model's parameters by choosing the values that make the observed data most probable.Undergraduate II · Probability & Statistics
- Bayesian InferenceTreating an unknown parameter as uncertain: give it a prior distribution and update it with data by Bayes' theorem.Undergraduate II · Probability & Statistics
- Cross-Entropy and KL DivergenceCross-entropy measures how many bits a model needs to describe data really drawn from ; KL divergence is the excess over the minimum.Undergraduate II · Optimisation & Information
On the way to
Recommended
- MIT 6.1200J Mathematics for Computer ScienceMIT OpenCourseWare · CourseMIT's 2024 course on proofs, number theory, graphs, counting and discrete probability, with lecture videos, notes and problem sets.
- Mathematics for Machine LearningDeisenroth, Faisal and Ong (Cambridge University Press) · BookA free book that gathers exactly the linear algebra, vector calculus, probability and optimisation machine learning uses, then applies them to regression, PCA and classification.
- Seeing TheoryBrown University · InteractiveA visual introduction to probability and statistics in which you flip coins, draw samples and fit lines in the browser; complete and ad-free, with a Chinese version.
- Harvard Stat 110: ProbabilityJoe Blitzstein, Harvard University · CourseJoe Blitzstein's Harvard probability course: lecture videos, about 250 practice problems with solutions and a free online textbook, strong on intuition and story proofs.
- Information Theory, Inference, and Learning AlgorithmsDavid MacKay · BookMacKay's book connecting entropy, coding, Bayesian inference and neural networks, free to read online and still the one recommended for information theory with intuition.
- 宋浩老师官方宋浩(山东财经大学) · Videos · 中文Full university courses in calculus, linear algebra and probability by a Shandong University of Finance and Economics lecturer, clear and good-humoured; a new calculus series came out in October 2026.