Two-dimensional statistics
Study of two-dimensional distributions, scatter plots, marginal statistical parameters, covariance, Pearson correlation and regression lines.
Two-dimensional distributions and scatter plots
They are those in which two variables of each element of the population are studied: for example weight and height, denoted as a pair of values .
Example: Let the following distribution of weight and height of a population of 10 basketball players:
Example: Let the following distribution of weight and height of a population of 10 basketball players:
They are those in which two variables of each element of the population are studied: for example weight and height, denoted as a pair of values .
Example: Let the following distribution of weight and height of a population of 10 basketball players:
Example: Let the following distribution of weight and height of a population of 10 basketball players:
| Height (x) | 186 | 189 | 190 | 192 | 193 | 193 | 198 | 201 | 203 | 205 |
| Weight (y) | 85 | 85 | 86 | 90 | 87 | 91 | 93 | 103 | 100 | 101 |
Scatter plot
It is the representation in the x-y plane of the points of the distribution. It gives an idea of the relationship between the two variables.Frequency table
| 186 | 85 | 1 | 186 | 85 | 34596 | 7225 | 15810 |
| 189 | 85 | 1 | 189 | 85 | 35721 | 7225 | 16065 |
| 190 | 86 | 1 | 190 | 86 | 36100 | 7396 | 16340 |
| 192 | 90 | 1 | 192 | 90 | 36864 | 8100 | 17280 |
| 193 | 87 | 1 | 193 | 87 | 37249 | 7569 | 16791 |
| 193 | 91 | 1 | 193 | 91 | 37249 | 8281 | 17563 |
| 198 | 93 | 1 | 198 | 93 | 39204 | 8649 | 18414 |
| 201 | 103 | 1 | 201 | 103 | 40401 | 10609 | 20703 |
| 203 | 100 | 1 | 203 | 100 | 41209 | 10000 | 20300 |
| 205 | 101 | 1 | 205 | 101 | 42025 | 10201 | 20705 |
| ∑ = 1950 | 921 | N=10 | 1950 | 921 | 380618 | 85255 | 179971 |
| 186 | 85 | 1 | 186 | 85 | 34596 | 7225 | 15810 |
| 189 | 85 | 1 | 189 | 85 | 35721 | 7225 | 16065 |
| 190 | 86 | 1 | 190 | 86 | 36100 | 7396 | 16340 |
| 192 | 90 | 1 | 192 | 90 | 36864 | 8100 | 17280 |
| 193 | 87 | 1 | 193 | 87 | 37249 | 7569 | 16791 |
| 193 | 91 | 1 | 193 | 91 | 37249 | 8281 | 17563 |
| 198 | 93 | 1 | 198 | 93 | 39204 | 8649 | 18414 |
| 201 | 103 | 1 | 201 | 103 | 40401 | 10609 | 20703 |
| 203 | 100 | 1 | 203 | 100 | 41209 | 10000 | 20300 |
| 205 | 101 | 1 | 205 | 101 | 42025 | 10201 | 20705 |
| ∑ = 1950 | 921 | N=10 | 1950 | 921 | 380618 | 85255 | 179971 |
Being the number of times each data point is repeated. In the example all data points are unique.
Correlation and Pearson's coefficient
Correlation
Indicates the dependence of one variable on the other.
Indicates the dependence of one variable on the other.
- Strong: the two variables are highly related. In the scatter plot, the points are aligned.
- Weak: there is no appreciable relationship between the variables. The scatter plot is dispersed.
- Direct: when one variable increases, the other also does. The slope of the correlation line is positive.
- Inverse: as one variable increases, the other decreases. The slope of the correlation line is negative.
Correlation
Indicates the dependence of one variable on the other.
Indicates the dependence of one variable on the other.
- Strong: the two variables are highly related. In the scatter plot, the points are aligned.
- Weak: there is no appreciable relationship between the variables. The scatter plot is dispersed.
- Direct: when one variable increases, the other also does. The slope of the correlation line is positive.
- Inverse: as one variable increases, the other decreases. The slope of the correlation line is negative.
Pearson's correlation coefficient, r
Measures numerically the value of the correlation between the two variables. It takes a value between [-1, 1]. See the formula box to calculate it.
Measures numerically the value of the correlation between the two variables. It takes a value between [-1, 1]. See the formula box to calculate it.
- If functional (perfect) correlation.
- If is close to strong correlation.
- If is close to weak correlation.
Statistical parameters
Marginal means:
Marginal means:
In our example ,
The point is called the centroid
The point is called the centroid
Marginal variances:
In our example ,
Marginal standard deviations: positive square root of the marginal variances:
Covariance
Correlation coefficient:
- If , the correlation is direct.
- If , the correlation is inverse.
Regression lines
It is the line that best fits the scatter plot, passing through the centroid . There are two regression lines: y on x, and x on y:
It is the line that best fits the scatter plot, passing through the centroid . There are two regression lines: y on x, and x on y:
Y on X:
X on Y: