What does a streak length of 1 mean, i.e. how many hits and misses are in a streak of 1? What about a streak length of 0?
Streak of length 1 - has a Hit followed by miss
Streak of length 0 - has miss followed by miss
sample function so that it reflects a shooting percentage of 45%? Make this adjustment, then run a simulation to sample 133 shots. Assign the output of this simulation to a new object called sim_basket.set.seed(53979)
outcomes <- c("H", "M")
sim_basket <- sample(outcomes, size = 133, prob=c(0.45, 0.55), replace = TRUE)sim_basket
H M
58 75
calc_streak, compute the streak lengths of sim_basket, and save the results in a data frame called sim_streak.Describe the distribution of streak lengths. What is the typical streak length for this simulated independent shooter with a 45% shooting percentage? How long is the player’s longest streak of baskets in 133 shots? Make sure to include a plot in your answer.
The distribution is right skewed and unimodal
paste("Typical streak length is ", median(sim_streak$length))
paste("Longest streak of baskets is ", max(sim_streak$length))What was his typical streak length? 0
How long was his longest streak of baskets? 5
The distribution are somewhat similar here because the shots are independent of each other. The probability of making the shot doesn’t change between the two simulations.
Kobe bryant’s distribution of streak length and Simulated shooter distribution of streak length are similar. So, there is no enough evidence to conclude that hot hand model fits Kobe’s shooting pattern.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.