Loading
From a joint probability table P(X = x, Y = y): the marginal distributions, expectations, , the correlation ρ, and a check for independence.
X takes 0, 1, 2 and Y takes 0, 1 with joint probabilities (rows X = 0, 1, 2): 1/8, 1/8; 1/4, 1/4; 1/8, 1/8. Find the marginals, E[X], E[Y], the covariance and the correlation. Are X and Y independent?
The calculator below opens on this example.
Adding the wrong way for a marginal.
E[XY] = E[X]E[Y] assumed.
Concluding independence from Cov = 0.
A table that does not add to 1.
Fractions like 1/8 are fine; the probabilities must add up to 1.
Add this calculator to a new note, next to your own working. It stays live: change the numbers there any time.