Describe the distribution of Kobe’s streak lengths from the 2009 NBA finals. What was his typical streak length? How long was his longest streak of baskets? Make sure to include the accompanying plot in your answer.
Answer: The distribution of Kobe’s streak lengths from 2009 appear to be right-skewed. His typical streak length was 0, and his longest streak of baskets was 4.
In your simulation of flipping the unfair coin 100 times, how many flips came up heads? Include the code for sampling the unfair coin in your response. Since the markdown file will run the code, and generate a new sample each time you Knit it, you should also “set a seed” before you sample. Read more about setting a seed below.
Answer: In my simulation of flipping the unfair coin 100 times, 16 flips came up as heads. Code has been included above.
Simulating the Independent Shooter
Exercise 4
What change needs to be made to the 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.
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.
Answer: The distribution of streak lengths appears to be right-skewed. The typical streak length is 0 while the longest streak is around 9.
Exercise 7
If you were to run the simulation of the independent shooter a second time, how would you expect its streak distribution to compare to the distribution from the question above? Exactly the same? Somewhat similar? Totally different? Explain your reasoning.
Answer: I think the streak distribution pattern will remain the same (i.e: right-skewed) for both but the exact results could be slightly different everytime we run the simulation.
Exercise 8
How does Kobe Bryant’s distribution of streak lengths compare to the distribution of streak lengths for the simulated shooter? Using this comparison, do you have evidence that the hot hand model fits Kobe’s shooting patterns? Explain.
Answer: Kobe Bryant’s longest shooting streak is 4, while the simulated shooter’s longest streak is about 9. Both distributions are right-skewed, showing shorter streaks are more common. This difference in the longest streaks suggests that Kobe’s shooting patterns do not fit the hot hand model, as the simulated shooter, who is modeled by random chance, has longer streaks.