Docsity

bivariate descriptive statistics, Summaries of Mathematics

Partial preview of the text

Download bivariate descriptive statistics and more Summaries Mathematics in PDF only on Docsity!

Biostatistics Course

2nd year preparatory classes

ESSAIA

KARA.Fadila

October 22, 2025

Chapter 2: bivariate descriptive statistics

Joint frequencies: To study the relation between two variables X and Y , we have to study the joint distribution of the two-dimensional variable (X , Y ), whose values are pairs (xi , yj ) where the first element is a value of X and the second a value of Y. Joint sample frequencies: Given a sample of values and a two-dimensional variable (X , Y ), for every value of the variable (xi , yj ) is defined:

Absolute frequency nij : Is the number of times that the pair appears in the sample. Relative frequency fij : Is the proportion of times that the pair appears in the sample.

fij = nij n

Joint frequency distribution: The values of the two-dimensional variable with their frequencies is known as joint frequency distribution, and is represented in a joint frequency table.

X \ Y y 1 y 2 ... yj ... yp x 1 n 11 n 12 ... n 1 j ... n 1 p x 2 n 21 n 22 ... n 2 j ... n 2 p

... .... .... xi ni 1 ni 2 ... nij ... nip ... .... .... xk nk 1 nk 2 ... nkj ... nkp

Example : The Exam score received by 30 students in statistics and mathematics is represented by the following joint frequency table:

Stat \ Math 10 11 12 13 9 0 0 1 2 10 3 4 0 1 11 2 3 2 0 12 1 1 1 4 13 0 1 1 3

Bivariate Graphs:

  1. qualitativ variable: The distribution of employees by gender and level of education.

Figure: distribution of employees by gender and level of education

Marginal frequency distributions: The frequency distributions of each variable of the two-dimensional variable are known as marginal frequency distributions. We can get the marginal frequency distributions from the joint frequency table by adding frequencies by rows and columns.

X \ Y y 1 y 2 ... yj ... yq nx x 1 n 11 n 12 ... n 1 j ... n 1 q nx 1 x 2 n 21 n 22 ... n 2 j ... n 2 q nx 2

... .... ..... xi ni 1 ni 2 ... nij ... niq nxi ... .... ..... xp np 1 np 2 ... npj ... npq nxp ny ny 1 ny 2 ... nyj ... nyq n

Example: The marginal frequency distributions for the previous sample of exam score received by 30 students in statistics and mathematics are Stat \ Math 10 11 12 13 nx 9 0 0 1 2 3 10 3 4 0 1 8 11 2 3 2 0 7 12 1 1 1 4 7 13 0 1 1 3 5 ny 6 9 5 10 n = 30 and the corresponding statistics are

x =

V (x) =

− ( 11 , 1 )^2

σ(x) =

V (x) =

11 1.^556 =^1.^247

Mean point :

  • The point G with coordinates (x; y ) is called the mean point of the point cloud associated with the double statistical series.
  • The point (x; y ) is also called the center of gravity of the point cloud.

The shape of the point cloud in a scatter plot gives information about the type of relation between the variables. de point.png

(^14) Figure: point cloud

Covariance :

  • Covariance measures the linear relation between two variables.
  • Covariance studies the direction of the relationship between two variables X and Y. It is defined by:

Cov (x, y ) =

n

∑^ k

i= 1

∑^ p

j= 1

nij (xi − x)(yj − y )

It can also be calculated using the formula

Cov (x, y ) =

n

∑^ k

i= 1

∑^ p

j= 1

nij xi yj − x · y

  • If Cov (x, y ) > 0 there exists an increasing linear relation (positive correlation).
  • If Cov (x, y ) < 0 there exists a decreasing linear relation (negative correlation).
  • If Cov (x, y ) = 0 there is no linear relation.

we get that the covariance is equal to

Cov (x, y ) =

n

∑^ k

i= 1

∑^ p

j= 1

nij xi yj − x · y

[ 9 · 0 · 10 + 9 · 0 · 11 + 9 · 1 · 12 + 9 · 2 · 13

+ 13 · 0 · 10 + 13 · 1 · 11 + 13 · 1 · 12 + 13 · 3 · 13 ]

Cov (x, y ) > 0, This means that there is a increasing linear relation (positive correlation) between the marks in statistics and mathematics.

Correlation coefficient: The correlation coefficient measures the strength and direction of a linear relationship between two numeric variables. The coefficient of correlation between two variables X and Y is given by

r = Cov (x, y ) σ(x)σ(y )

  • The correlation coefficient does not depend on the units of measurement of X and Y.