report 4.2.docx - Megan McLoughlin Math 2228 Lab Report 4.2 Using calc streak compute the streak lengths of sim basket 1 Describe the distribution of

# report 4.2.docx - Megan McLoughlin Math 2228 Lab Report 4.2...

• Lab Report
• 2

This preview shows page 1 - 2 out of 2 pages.

Megan McLoughlin Math 2228 10/21/2019 Lab Report 4.2 Using calc streak, compute the streak lengths of sim basket. 1. 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? > outcomes <- c("H", "M") > sim_basket <- resample(outcomes, size = 133, prob = c(0.45, 0.55)) >sim_streak <- calc_streak(sim_basket) The distribution of streak lengths is skewed to the right. They typical streak length for the simulated independent shooter with a 45% shooting percentage is between 0 and 1. The player’s longest streak of baskets in 133 shots is 7. 2. 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?

#### You've reached the end of your free preview.

Unformatted text preview: Exactly the same? Somewhat similar? Totally different? Explain your reasoning. If we ran the stimulation for a second time I would expect the streak distribution to be slightly different then the distribution from question one. This is because we didn’t set a seed value and we are just sampling at random. 3. 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. > barplot(table(kobe_streak)) > barplot(table(sim_streak)) The distribution of the streak lengths of Kobe Bryannt compared to the streak lengths of the simulated shooter are quite similar. This means that the hot hand model fits with Kobe’s shooting pattern....
View Full Document

• Spring '18

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern