Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2. Probability Theory [20 pts] Consider k-many fair coins flip where each coin has probability of = 0.5. Suppose you are flipping coins

image text in transcribed

Question 2. Probability Theory [20 pts] Consider k-many fair coins flip where each coin has probability of = 0.5. Suppose you are flipping coins N many times and you increase the number of flips (t) by intervals of 50 when N increases by one, see the table below. N t 1 50 2 100 3 150 200 10000 1. (10 pts) Implement a function, "coin flip prop", that calculates the probability of having heads (h) using NumPy.random.binomial(k,,t)=h, where k is the number of coins, is the probability of each coin, t is the number of total flips, and his head. To confirm the coin flip prop function applicability, show that the probability reaches 0.5 as N increases from 1 to 200 when k=1. Make a visualization. wwwwwwww 2. (5 pts) Numerically calculate the probability of having 2 heads (h = 2) when 5 coins (k =5) are flipped. 3. (5 pts) Run the coin flip prop function above for N = [1,...,200]. Report the average probability.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Algebra advanced algebra with financial applications

Authors: Robert K. Gerver

1st edition

978-1285444857, 128544485X, 978-0357229101, 035722910X, 978-0538449670

More Books

Students also viewed these Mathematics questions