Area under the curve, Part I. (4.1, p. 142) What percent of a standard normal distribution \(N(\mu=0, \sigma=1)\) is found in each region? Be sure to draw a graph.
\(Z\quad =\quad\frac{x-\mu}{ \sigma}\)
pnorm(-1.35, mean = 0, sd= 1)
## [1] 0.08850799
normalPlot(mean = 0, sd = 1, bounds = c(-1.35, Inf), tails = TRUE)
(b) \(Z > 1.48\)
1 - pnorm(1.48,mean = 0, sd = 1)
## [1] 0.06943662
normalPlot(mean = 0, sd = 1, bounds = c(1.48, Inf))
normalPlot(mean = 0, sd = 1, bounds = c(-0.4, 1.5), tails = FALSE)
## [1] 0.02275013
## [1] 0.9772499
Triathlon times, Part I (4.4, p. 142) In triathlons, it is common for racers to be placed into age and gender groups. Friends Leo and Mary both completed the Hermosa Beach Triathlon, where Leo competed in the Men, Ages 30 - 34 group while Mary competed in the Women, Ages 25 - 29 group. Leo completed the race in 1:22:28 (4948 seconds), while Mary completed the race in 1:31:53 (5513 seconds). Obviously Leo finished faster, but they are curious about how they did within their respective groups. Can you help them? Here is some information on the performance of their groups:
Remember: a better performance corresponds to a faster finish.
Men 30-34: \(N(\mu = 4313, \sigma = 583)\) Women 25-29: \(N(\mu = 5261, \sigma = 807)\)
z_Leo <- (4948-4313)/583
z_Leo
## [1] 1.089194
z_Mary<- (5513-5261)/807
z_Mary
## [1] 0.3122677
1- pnorm(4948, mean = 4313, sd = 583)
## [1] 0.1380342
1- pnorm(5513, mean = 5261, sd = 807)
## [1] 0.3774186
Heights of female college students Below are heights of 25 female college students.
\[ \stackrel{1}{54}, \stackrel{2}{55}, \stackrel{3}{56}, \stackrel{4}{56}, \stackrel{5}{57}, \stackrel{6}{58}, \stackrel{7}{58}, \stackrel{8}{59}, \stackrel{9}{60}, \stackrel{10}{60}, \stackrel{11}{60}, \stackrel{12}{61}, \stackrel{13}{61}, \stackrel{14}{62}, \stackrel{15}{62}, \stackrel{16}{63}, \stackrel{17}{63}, \stackrel{18}{63}, \stackrel{19}{64}, \stackrel{20}{65}, \stackrel{21}{65}, \stackrel{22}{67}, \stackrel{23}{67}, \stackrel{24}{69}, \stackrel{25}{73} \]
library(openintro)
heights <- c(54, 55, 56, 56, 57, 58, 58, 59, 60, 60, 60, 61,
61, 62, 62, 63, 63, 63, 64, 65, 65, 67, 67, 69, 73)
meanheight<- mean(heights)
sdheight<- sd(heights)
summary(heights)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 54.00 58.00 61.00 61.52 64.00 73.00
# defining one standard Dev from the mean
pnorm(meanheight + sdheight, mean = meanheight, sd= sdheight)-
pnorm(meanheight - sdheight, mean = meanheight, sd= sdheight)
## [1] 0.6826895
# defining two Standard Dev's from mean
pnorm(meanheight + (2*sdheight), mean = meanheight, sd= sdheight)-
pnorm(meanheight - (2*sdheight), mean = meanheight, sd= sdheight)
## [1] 0.9544997
# defining three Standard Dev's from mean
pnorm(meanheight + (3*sdheight), mean = meanheight, sd= sdheight)-
pnorm(meanheight - (3*sdheight), mean = meanheight, sd= sdheight)
## [1] 0.9973002
# Use the DATA606::qqnormsim function
qqnormsim(heights)
* I think we can conclude Height follows a normal distribution. The QQ plots match the plot generated above; mostly on the line with a few outliers.
Defective rate. (4.14, p. 148) A machine that produces a special type of transistor (a component of computers) has a 2% defective rate. The production is considered a random process where each transistor is independent of the others.
\(P(X)\quad =\quad { (1-p) }^{ n-1 }p={ (1-0.02) }^{ n-1 }x(0.02)\)
\(P(X=10)\quad =\quad { (1-0.02) }^{ 9 }x(0.02)\approx 0.0167\)
dgeom(9, 0.02)
## [1] 0.01667496
\(P(no\quad defects\quad in\quad 100)\quad =\quad { (1-0.02) }^{ 100 }\approx 0.1326\)
(1-0.02)^100
## [1] 0.1326196
\(\mu =\frac { 1 }{ p } =\frac { 1 }{ 0.02 } =50\)
\(\sigma =\sqrt { \frac { p }{ { (1-p) }^{ 2 } } } =\quad \sqrt { \frac { 0.02 }{ { (1-0.02) }^{ 2 } } } \approx 0.1443\)
\(\sigma =\sqrt { \frac { p }{ { (1-p) }^{ 2 } } } =\quad \sqrt { \frac { 0.05 }{ { (1-0.05) }^{ 2 } } } \approx 0.2354\)
Male children. While it is often assumed that the probabilities of having a boy or a girl are the same, the actual probability of having a boy is slightly higher at 0.51. Suppose a couple plans to have 3 kids.
dbinom(2,3,.51)
## [1] 0.382347
\(P=(BBG)+(BGB)+(GBB)=.51x.51x.48+.51x.48x.51+.48x.51x.51=.374544\)
P1<- (.51 * .51 * .49)
P3<- P1+P1+P1
P3
## [1] 0.382347
dbinom(3,8,.51)
## [1] 0.2098355
Serving in volleyball. (4.30, p. 162) A not-so-skilled volleyball player has a 15% chance of making the serve, which involves hitting the ball so it passes over the net on a trajectory such that it will land in the opposing team’s court. Suppose that her serves are independent of each other.
n=10 k=3 p=.15
n <- 10
k <- 3
p <- .15
factorial(n-1) / (factorial(k-1) * (factorial(n - k))) * p^k * (1-p)^(n-k)
## [1] 0.03895012