VintageGold / Data690_MathML

A place to ask questions and collaborate with peers
MIT License
1 stars 2 forks source link

Python Simulation 2 #7

Open xinxueHEAI opened 3 years ago

xinxueHEAI commented 3 years ago

@pmathur2 @ssoni1 @Shayros @Readknn @tkelly9

Here is a statistical problem, and please use both probability and simulation to solve it.

"In an NBA playoff series, team A plays against team B. Against B, team A has winning probability of 0.6. any team that reaches 4 wins in a game of 7 will win the series. "

Question: 1) What is the probability that team B wins the series? 2) What is the probability that team B wins the series at game 7? 3) What is the probability that team A wins the series at game 4?

HINT: to simulate a Binomial(or Bernoulli) distribution, use numpy.random.binomial()

pmathur2 commented 3 years ago

Hello @ssoni1 @Shayros @Readknn @tkelly9

It has been a few years since I took stat so I am a bit rusty. But let me know if you all agree with these results. It is definitely possible I made a mistake somewhere. If you all agree, perhaps some of you can work on the python simulation portion?

image

xinxueHEAI commented 3 years ago

@pmathur2 thanks. I didn't check the computation part, but the logic is good. Can anybody replicate it and confirm the calculation is right using numpy simulation?