Index Ai Academy
Glossary · Foundation · Foundation math

Marginal distribution

Also written: marginals, marginal distributions

The chances for one variable on its own, found from a table of two variables by adding up each row or each column.

The marginals are each variable on its own: sum each row for weather (40 sunny, 60 rainy) and each column for rentals (45 high, 55 low). If weather and rentals were independent, P(sunny and high) would equal P(sunny) × P(high) = 0.4 × 0.45 = 0.18. It's actually 0.30, so they're not independent: sun goes with high rentals.

Try it now

Then set y values to 9, 5, 4, 2 and press Use these numbers: the points move into the − quarters (one sits on a dashed line), and the covariance turns negative.

Learn it properly

Two variables at once: covariance and correlation · Joint tables and marginals, covariance, correlation, the covariance matrix, and features that carry the same information. About 45 minutes.

Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write