b. Find two lines of regression from the following data

Age of Husband (x) | 25 | 22 | 28 | 26 | 35 | 20 | 22 | 40 | 20 | 18 |

Age of wife (y) | 18 | 15 | 20 | 17 | 22 | 14 | 16 | 21 | 15 | 14 |

Estimate (i) the age of husband when the age of wife is 19 and (ii) the age of wife when

the age of the husband is 30

Steps :

- assume mean
- dx=x-(assumed mean of x) , dy= y â€“ (assumed mean of y )
- prepare an table and calculate summations of

x , y , dx , dy , dx^2 , dy^2 , dxdy - Now calculate mean of x and y

x mean = Î£x/n and y mean = Î£y/n - Now find regression coefficients bxy , byx

- Calculate regression lines

y on x

y â€“ ymean= byx(x- xmean)

x on y

x- xmean = bxy(y-ymean) - Now solve the question by putting in the equation

Steps :

- assume mean
- dx=x-(assumed mean of x) , dy= y – (assumed mean of y )
- prepare an table and calculate summations of

x , y , dx , dy , dx^2 , dy^2 , dxdy - Now calculate mean of x and y

x mean = Î£x/n and y mean = Î£y/n - Now find regression coefficients bxy , byx

- Calculate regression lines

y on x

y – ymean= byx(x- xmean)

x on y

x- xmean = bxy(y-ymean) - Now solve the question by putting in the equation

Solution of the above question :

To find the two lines of regression from the given data, we need to follow the steps you have mentioned.

Given data:

Age of Husband (x): 25, 22, 28, 26, 35, 20, 22, 40, 20, 18

Age of Wife (y): 18, 15, 20, 17, 22, 14, 16, 21, 15, 14

Step 1: Assume the mean values of x and y.

Let’s assume the mean values as xÌ„ = 26 and È³ = 17.

Step 2: Prepare a table and calculate the summations of x, y, dx, dy, dx^2, dy^2, and dxdy.

x | y | dx = x – xÌ„ | dy = y – È³ | dx^2 | dy^2 | dxdy |
---|---|---|---|---|---|---|

25 | 18 | -1 | 1 | 1 | 1 | -1 |

22 | 15 | -4 | -2 | 16 | 4 | 8 |

28 | 20 | 2 | 3 | 4 | 9 | 6 |

26 | 17 | 0 | 0 | 0 | 0 | 0 |

35 | 22 | 9 | 5 | 81 | 25 | 45 |

20 | 14 | -6 | -3 | 36 | 9 | 18 |

22 | 16 | -4 | -1 | 16 | 1 | 4 |

40 | 21 | 14 | 4 | 196 | 16 | 56 |

20 | 15 | -6 | -2 | 36 | 4 | 12 |

18 | 14 | -8 | -3 | 64 | 9 | 24 |

Î£x = 256, Î£y = 172, Î£dx = -4, Î£dy = 2, Î£dx^2 = 450, Î£dy^2 = 78, Î£dxdy = 172

calculate mean of x and y x=25.6 and y=17.2

Step 3: Calculate the regression coefficients bxy and byx.

bxy = (nÎ£(dxdy) – Î£dx Î£dy) / (nÎ£(dy^2) – (Î£dy)^2)

= (10 Ã— 172 – 4 Ã— 2) / (10 Ã— 78 – 4)

= 2.227

byx = (nÎ£(dxdy) – Î£dx Î£dy) / (nÎ£(dx^2) – (Î£dx)^2)

= (10 Ã— 172 – 4 Ã— 2) / (10 Ã— 450 – 16)

= 0.385

Step 4: Calculate the regression lines y on x and x on y.

y – È³ = byx(x – xÌ„)

y – 17.2 = 0.385(x – 25.6)

y = 0.385x + 7.344

x – xÌ„ = bxy(y – È³)

x – 25.6 = 2.227(y – 17.2)

x = 2.227y – 12.704

Step 5: Solve the given questions using the regression equations.

(i) To find the age of the husband when the age of the wife is 19:

Substitute y = 19 in the second equation (x on y):

x = 2.227(19)-12.704

x = 29.601

Therefore, when the age of the wife is 19, the estimated age of the husband is approximately 30 years.

(ii) To find the age of the wife when the age of the husband is 30:

Substitute x = 30 in the first equation (y on x):

y = 0.385(30)+7.344 = 18.894

Therefore, when the age of the husband is 30, the estimated age of the wife is approximately 19 years.

[…] b. Find two lines of regression from the following data: (10) […]