Directions: Follow along with the slides and answer the questions in red font in your journal.
meanof random shuffles also produces differences that are normally distributed.
titanicdata and calculate the
ageof people in the data but
survivalstatus 500 times.
Assignthis data the name
mutateto add a new variable to the data set. This new variable should have the name
diffand should be the
ageof those who survived minus those who died.
Assignthese values the name
diffvariable looks approximately normally distributed.
diffvariable appears normally distributed, we can use a normal model to estimate the probability of seeing differences that are more extreme than our actual data.
pnorm(____, mean = diff_mean, sd = ____)
1 - pnorm(____, mean = diff_mean, sd = ____)
meanheight is 67 inches and the
standard deviationis 3 inches.
draws <- rnorm(____, mean = ____, sd = ____)
histogram(draws, fit = ____)
pnormto calculate probabilities based on a specified quantity.
qnorm(____, mean = ____, sd = ____)
titanicdata, answer the following statistical question: