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.
# find the value for x
m <- 0
sd <- 1
z <- -1.35
x <- z * sd + m
x
## [1] -1.35
# Finding the norm for x
pnorm(x, m, sd)
## [1] 0.08850799
# finding x when Z> 1.48
z <- 1.48
x2 <- z * sd + m
x2
## [1] 1.48
1-pnorm(x2, m, sd)
## [1] 0.06943662
normalPlot(m,sd, bounds = c(x2, 1e+06), tails = FALSE)
z <- c(-0.4,1.5)
x3 <- z * sd + m
x3
## [1] -0.4 1.5
pnorm(x3,m,sd)
## [1] 0.3445783 0.9331928
normalPlot(mean = 0, sd = 1, bounds = c(-0.4, 1.5), tails = FALSE)
z <- c(-2,2)
x4 <- z * sd + m
x4
## [1] -2 2
pnorm(x4,m,sd)
## [1] 0.02275013 0.97724987
normalPlot(mean = 0, sd = 1, bounds = c(-2,2), tails = FALSE)
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, Ages 30 - 34 N(μ = 4313, σ = 583)
Women, Ages 25 - 29 N(μ = 5261, σ = 807)
# Finding the z score for leo
#(Leo = 4948, mean = 4313, Standard deviation = 583)
Leo_x <- 4948
Leo_m <- 4313
Leo_sd <- 583
Leo_z <- (Leo_x - Leo_m)/(Leo_sd)
Leo_z
## [1] 1.089194
# Finding the z score for Mary
# (Mary = 5513, mean = 5261, standard deviation = 807)
Mary_x <- 5513
Mary_m <- 5261
Mary_sd <- 807
Mary_z <- (Mary_x - Mary_m)/(Mary_sd)
Mary_z
## [1] 0.3122677
This z scores shows that Leo was 1.089 times standard deviation away from the mean while Mary was 0.312 times standard deviation away from the mean. Out of these two, Mary was more closer to her age category mean.
Based on their Z scores, Mary was more close to her respective age category mean. Therefor she rank better in her respective group.
pnorm(Leo_z, lower.tail = FALSE)
## [1] 0.1380342
Answer: 13.8%
pnorm(Mary_z, lower.tail = FALSE)
## [1] 0.3774186
Answer: 37.7%
Z score will not change but part where we find the pnorm will change as finishing times are not nearly normal.
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} \]
# Use the DATA606::qqnormsim function
qqnormsim(heights)
# height mean
heights_mean <- mean(heights)
# height standard deviation
heights_SD <- sd(heights)
1-2*pnorm(heights_mean+heights_SD, heights_mean, heights_SD, lower.tail = FALSE)
## [1] 0.6826895
1-2*pnorm(heights_mean+2*heights_SD, heights_mean, heights_SD, lower.tail = FALSE)
## [1] 0.9544997
1-2*pnorm(heights_mean+3*heights_SD, heights_mean, heights_SD, lower.tail = FALSE)
## [1] 0.9973002
hist(heights, probability = TRUE, xlab = "Heights", ylim = c(0, 0.1))
x <- 30:90
y <- dnorm(x = x, mean = heights_mean, sd = heights_SD)
lines(x = x, y = y, col = "blue")
abline(v = heights_mean, col = "red")
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.
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.
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.
© 2019 GitHub, Inc.