Suppose that an event repeatedly occurs over time at a constant rate but at random (Poisson...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose that an event repeatedly occurs over time at a constant rate but at random (Poisson process). For example, let's observe the arrival of buses at a bus stop. On average we see a bus every 10 minutes. However, the time interval between the arrivals of two buses is exactly 10 minutes. We may see the buses, for example, at 0 min, 13.1 min, 19.7 min, 33.3 min, 40.2 min, ... We divide a time period of concern into n pieces. In each piece of time interval, the probability for occurrence of an event is p = [0, 1]. Then, the probability that this event occurs k times in the whole time period is Pr(k, n, p): This is called binomial distribution. Do the following operations by SymPy. n! k! (n - k)! pk (1 - p)n-k. 1. Define the symbols n and k standing for two nonnegative integers. Define the symbol p standing for a nonnegative real number. 2. Define the expression for Pr (k, n, p) and print out this expression by pprint(). 3. Substitute n = 20 and p = 0.5 into the expression of Pr(k, n, p). Then, the new expression is only a function of k, i.e., Pr(k) 4. Convert the SymPy expression Pr(k) to a python function called binomial_prob_k_func() by sympy.lambdify . Note that the expression Pr(k) may contain the operation sympy.factorial() which is not supported by NumPy but is supported by SciPy. So, we cannot use sympy.lambdify( ..., "numpy"); instead, we must use sympy.lambdify( ..., "scipy"). 5. Try three sets of parameters: n = 20 and p = 0.4, n = 20 and p = 0.7, n = 40 and p = 0.5. Similar to Question 3, for each set of parameters, substitute n and p to the expression of Pr(k, n, p). Then, similar to Question 4, for each set of parameters, define the python function binomial_prob_k_func(). Finally, for each set of parameters, plot this python function, i.e., Pr(k). Activate Windows Suppose that an event repeatedly occurs over time at a constant rate but at random (Poisson process). For example, let's observe the arrival of buses at a bus stop. On average we see a bus every 10 minutes. However, the time interval between the arrivals of two buses is exactly 10 minutes. We may see the buses, for example, at 0 min, 13.1 min, 19.7 min, 33.3 min, 40.2 min, ... We divide a time period of concern into n pieces. In each piece of time interval, the probability for occurrence of an event is p = [0, 1]. Then, the probability that this event occurs k times in the whole time period is Pr(k, n, p): This is called binomial distribution. Do the following operations by SymPy. n! k! (n - k)! pk (1 - p)n-k. 1. Define the symbols n and k standing for two nonnegative integers. Define the symbol p standing for a nonnegative real number. 2. Define the expression for Pr (k, n, p) and print out this expression by pprint(). 3. Substitute n = 20 and p = 0.5 into the expression of Pr(k, n, p). Then, the new expression is only a function of k, i.e., Pr(k) 4. Convert the SymPy expression Pr(k) to a python function called binomial_prob_k_func() by sympy.lambdify . Note that the expression Pr(k) may contain the operation sympy.factorial() which is not supported by NumPy but is supported by SciPy. So, we cannot use sympy.lambdify( ..., "numpy"); instead, we must use sympy.lambdify( ..., "scipy"). 5. Try three sets of parameters: n = 20 and p = 0.4, n = 20 and p = 0.7, n = 40 and p = 0.5. Similar to Question 3, for each set of parameters, substitute n and p to the expression of Pr(k, n, p). Then, similar to Question 4, for each set of parameters, define the python function binomial_prob_k_func(). Finally, for each set of parameters, plot this python function, i.e., Pr(k). Activate Windows
Expert Answer:
Answer rating: 100% (QA)
The image contains a descriptive text regarding a scenario of using a binomial distribution to model the arrival times of buses at a bus stop akin to ... View the full answer
Related Book For
Principles Of Managerial Finance
ISBN: 978-0136119463
13th Edition
Authors: Lawrence J. Gitman, Chad J. Zutter
Posted Date:
Students also viewed these computer network questions
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Write a Fortran program that creates an integer array with values -123, -4, 5, 67, 890, and 12345. Prints out the array in several formatted ways. a. Print each element, on its own line, using a...
-
At 700 kPa and 120C enters an adiabatic nozzle steadily with a velocity of 20 m/s and leaves at 400 kPa and 30C. Determine (a) The exit velocity and (b) The ratio of the inlet to exit area A1/A2.
-
Why did practical holography have to await the advent of the laser?
-
1. Working in small groups, complete the Pay Raise Worksheet. 2. After the class reconvenes, group spokespersons present group findings. Pay Raise Worksheet April Knepper is the new supervisor of an...
-
Cara Ryder manages a ski school in a large resort and is trying to develop a schedule for Instructors. The instructors receive little salary and work just enough to earn room and board. They receive...
-
Scenario 17:Accountant 17 is the former manager of the audit dept. She says: when covid hit I decidedto retire. I was a cpa for 30 years but im no longer practicing, can I still call myself a cpa? Do...
-
Beverly and Ken Hair have been married for 3 years. Beverly works as an accountant at Cypress Corporation. Ken is a full-time student at Southwest Missouri State University (SMSU) and also works...
-
Draw a tetrahedral representation of (S)-pentan-2-ol (2-hydroxypentane). Assign R or S configuration to each chirality center in the following molecules: () Br (b) CH3 (c) CH3 H CH3 HaBr Br H H3C H H...
-
Wildcat SA has estimated sales (in millions) for the next four quarters as follows: Sales for the first quarter of the year after this one are projected at 250 million. Accounts receivable at the...
-
Assume A and B have the following characteristics: The covariance between the returns on the two equities is 0.001. (a) Suppose an investor holds a portfolio consisting of only A and B. Find the...
-
What is the balanced-budget multiplier? Explain why the balanced-budget multiplier is equal to one.
-
1. You are the financial analyst for Weir Group plc, the global engineering firm. The company is considering the development of a new slurry pump in its existing products. The pump is expected to...
-
In some extreme cases, an individuals labor supply curve may be downward sloping at higher hourly wage rates. That is, further increases in the workers wage lead them to work fewer hours. Why might...
-
a)Evaluate the five alternative production projects using traditional discounted cash flow analysis: What is the appropriate cost of capital for this case? Support your reasoning. Note that the...
-
Quality Chicken grows and processes chickens. Each chicken is disassembled into five main parts. Information pertaining to production in July 2012 is: Joint cost of production in July 2012 was $50. A...
-
What are the typical sources of long-term capital available to the firm?
-
Grey Products has fixed operating costs of $380,000, variable operating costs of $16 per unit, and a selling price of $63.50 per unit. a. Calculate the operating breakeven point in units. b....
-
Ken Allen, capital budgeting analyst for Bally Gears, Inc., has been asked to evaluate a proposal. The manager of the automotive division believes that replacing the robotics used on the heavy truck...
-
Lynn Goldsmith is a photographer known for her photographs of famous musicians. In 1981, Goldsmith had a photography session with the singer Prince. Three years later, Vanity Fair obtained a license...
-
Stone Brewing Co. is a San Diego brewer that has sold its beers for over two decades. Stone has maintained its trademark and brand from the beginning, registering the STONE mark in 1998. Stone has...
-
The Nielsen family formed their corporation, N. Robert Nielsen, Inc., to conduct farming operations. Morre, Grider & Co. is a certified public accounting firm that has provided accounting, tax, and...
Study smarter with the SolutionInn App