Docsity

Notes on physiology lab. mainly lab class., Study notes of Physiology

Toggle sidebar
bg1
STAT 3011 Week 5 Lab
R problem
Consider the data set heights collected by the famous statistician Karl Pearson in the late 1800s. Karl
Pearson organized the collection of data on over 1100 families in England in the period 1893 to 1898. This
particular data set gives the heights in inches of mothers and their daughters, with up to two daughters per
mother. All daughters are at least age 18, and all mothers are younger than 65.
The data set contain 1375 observations and for each row Mheight stands for the height for the mother
and Dheight give the height of her daughter. We can import the data using the following command.
install.packages("alr3")
#skip this line if the package is already installed.
library(alr3)
data(heights)
attach(heights)
(a) Do mothers’ heights follow a normal distribution? Use histogram and QQ-plot to assess normality of
mother’s height. How about daughter height?
(b) Let Ybe the height of an English mother younger than 65, and let Xbe the height of an English
daughter older than 18. From (a), it looks reasonable for us to assume both Yand Xare normally
distributed. However, we don’t know µand σof Xand Y. We will estimate them using the data set.
More specifically, we use sample mean ¯xas an estimate for µand sample standard deviation sas an
estimate for σ. Specify the distributions of Xand Yrespectively.
(c) Suppose there is an English mother with height 64.45 inches and her daughter’s height is 65.75 inches.
Who is relatively higher?
(d) What is the probability that an English mother is higher than 63 inches? Use both two method to
calculate the probability (Table A and pnorm()).
(e) What is the probability that an English daughter is shorter than 63? Use both two method to calculate
the probability (Table A and pnorm()).
(f) In order to be taller than 90% of the rest mothers, what’s the lowest height must an English mother
have? Use both two method to calculate the probability (Table A and pnorm()).
·1·

Partial preview of the text

Download Notes on physiology lab. mainly lab class. and more Study notes Physiology in PDF only on Docsity!

STAT 3011 Week 5 Lab

R problem

Consider the data set heights collected by the famous statistician Karl Pearson in the late 1800s. Karl Pearson organized the collection of data on over 1100 families in England in the period 1893 to 1898. This particular data set gives the heights in inches of mothers and their daughters, with up to two daughters per mother. All daughters are at least age 18, and all mothers are younger than 65. The data set contain 1375 observations and for each row Mheight stands for the height for the mother and Dheight give the height of her daughter. We can import the data using the following command.

install.packages("alr3") #skip this line if the package is already installed. library(alr3) data(heights) attach(heights)

(a) Do mothers’ heights follow a normal distribution? Use histogram and QQ-plot to assess normality of mother’s height. How about daughter height?

(b) Let Y be the height of an English mother younger than 65, and let X be the height of an English daughter older than 18. From (a), it looks reasonable for us to assume both Y and X are normally distributed. However, we don’t know μ and σ of X and Y. We will estimate them using the data set. More specifically, we use sample mean ¯x as an estimate for μ and sample standard deviation s as an estimate for σ. Specify the distributions of X and Y respectively.

(c) Suppose there is an English mother with height 64.45 inches and her daughter’s height is 65.75 inches. Who is relatively higher?

(d) What is the probability that an English mother is higher than 63 inches? Use both two method to calculate the probability (Table A and pnorm()).

(e) What is the probability that an English daughter is shorter than 63? Use both two method to calculate the probability (Table A and pnorm()).

(f) In order to be taller than 90% of the rest mothers, what’s the lowest height must an English mother have? Use both two method to calculate the probability (Table A and pnorm()).