a) Calculate the relative frequency h (N) of getting head as function of the random trials...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a) Calculate the relative frequency h (N) of getting head as function of the random trials N-10,100,1000, and 10000 b) Plot the relative frequency of getting head as function of 'N for the for values estimate under a). Use circles as symbols and denote the x-axis by N and the y-axis by h_tail (N). c) Calculate the probabilities for sufficiently large N of getting tail via Part - 1-Phead Problem 2: (Random Experiment 2- Rolling dice) Consider a fair die having six sides with numbers 1, 2, 3, 4, 5, and 6. A fair die means that all six possible outcomes are equally likely. The probability of rolling a 1 is 1/6, the probability of rolling a 2 is 1/6 and so on for 3, 4, 5, and 6. To test this, we would like to determine the probability of a dice roll. a) Generate a random sequence having N-1000 values. Calculate the relative frequencies for rolling a / via h/(N)-N/N, the relative frequencies for rolling a 2 via h₂(N)-N₂/N as well as hi(N)-Ny/N, ha(N)=N/N. hs(N)=N/N, and he(N)-No/N Example python script for tossing a choin: from random import randrange, seed N=10 seed(42) n_list- for i in range(N): x=randrange (2) n_list.append(x) count 0 a) Calculate the relative frequency h (N) of getting head as function of the random trials N-10,100,1000, and 10000 b) Plot the relative frequency of getting head as function of 'N for the for values estimate under a). Use circles as symbols and denote the x-axis by N and the y-axis by h_tail (N). c) Calculate the probabilities for sufficiently large N of getting tail via Part - 1-Phead Problem 2: (Random Experiment 2- Rolling dice) Consider a fair die having six sides with numbers 1, 2, 3, 4, 5, and 6. A fair die means that all six possible outcomes are equally likely. The probability of rolling a 1 is 1/6, the probability of rolling a 2 is 1/6 and so on for 3, 4, 5, and 6. To test this, we would like to determine the probability of a dice roll. a) Generate a random sequence having N-1000 values. Calculate the relative frequencies for rolling a / via h/(N)-N/N, the relative frequencies for rolling a 2 via h₂(N)-N₂/N as well as hi(N)-Ny/N, ha(N)=N/N. hs(N)=N/N, and he(N)-No/N Example python script for tossing a choin: from random import randrange, seed N=10 seed(42) n_list- for i in range(N): x=randrange (2) n_list.append(x) count 0
Expert Answer:
Answer rating: 100% (QA)
To calculate the relative frequency of getting heads in a series of random trials you can use the following steps Step 1 Initialize the variables make... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
answer wuestion 1 and 2 please In a freshman physics class, objects in free fall are often treated as though air resistance is Select one: Oa. is increasing in value. Ob. ignored and assumed to be...
-
Great Guard, which used a standard cost accounting system, manufactured 180,000 boat fenders during the year, using 1,490,000 feet of extruded vinyl purchased at $1.45 per foot. Production required...
-
Please share 2 or 3 experiences in your life when you either benefited from the oversupply (think sales and discounts) of a product or when you had to pay more for a product because it was in high...
-
The following information is available for Marigold's Hot Dogs: Actual production Budgeted production Standard direct labor hours Actual direct labor hours Standard variable overhead rate Actual...
-
Do programmed decisions and the use of performance programs always evolve from what were originally nonprogrammed decisions? Why or why not?
-
Hastings, Corp. issued 6%, five-year bonds payable with a maturity value of $5,000 at a price of $5,460 when the market rate was 4% on January 1, 2014. Journalize the following transactions for...
-
What are some of the requirements for audit committees under the Sarbanes-Oxley Act?
-
Transactions for Mehta Company for the month of May are presented below. Prepare journal entries for each of these transactions. (You may omit explanations.) May 1 B.D. Mehta invests $4,000 cash in...
-
1. Assume the total cost of a college education will be $342,000when your child enters college in 15 years. You presently have$70,000 to invest. What annual rate of interest must you earn onyour in 2...
-
Packaging Corporation of America produces containerboard and white papers. WestRock Co. manufactures paper products and corrugated products. Financial statement data for these two companies follow:...
-
develop a BPMN diagram outlining the correct process of designing test cases, executing tests, recording results and establishing remedial actions to correct errors, bugs and faults. here is the...
-
What is the signature of the Fourier transform? A DOF system with a cubic nonlinearity has a linear natural frequency of \(120 \mathrm{rad} / \mathrm{s}\). The system is forced by harmonic...
-
A continuous system is also referred to as a distributed parameter system. Indicate whether the statement presented is true or false. If true, state why. If false, rewrite the statement to make it...
-
Explain why a superharmonic resonance occurs. A DOF system with a cubic nonlinearity has a linear natural frequency of \(120 \mathrm{rad} / \mathrm{s}\). The system is forced by harmonic excitations...
-
Mode shapes corresponding to distinct natural frequencies of a continuous system are orthogonal with respect to the potential-energy scalar product. Indicate whether the statement presented is true...
-
The Rayleigh-Ritz method can be used to approximate natural frequencies and forced responses of continuous systems. Indicate whether the statement presented is true or false. If true, state why. If...
-
Aliya often watches TV each morning but only rarely makes her bed. According to the Premack principle, which of these activities could be used to reinforce the occurrence of the other activity. Give...
-
Represent each of the following combination of units in the correct SI form using an appropriate prefix: (a) m/ms, (b) k m, (c) k s /mg, and (d) k m N.
-
The following table contains information on the amount of time that each of 12 students spends each day (on average) on social networks (Facebook, Twitter, etc.) and the Internet for social or...
-
An economist is studying the relationship between the incomes of fathers and their sons or daughters. Let x be the annual income of a 30-year-old person and let y be the annual income of that persons...
-
Refer to the data table in Exercise 3.11. Calculate the mean and median for the data on personal exemptions for these states. In Exercise 11 Standard Deduction in dollars) 3250 2000 2190 5450 5700...
-
Consider the following network (in technical terms, a directed graph or "digraph"). Each circle, here marked with one of the letters A to P, represents a node of the network. Some of these nodes...
-
Consider the game Chomp from Exercise 1.5 of size \(2 \times 4\), in a game sum with a Nim heap of size 4. What are the winning moves of the starting player I, if any? 00
-
Consider the following variant of Nim called Split-Nim, which is played with heaps of tokens as in Nim. Like in Nim, a player can remove some tokens from one of the heaps, or else split a heap into...
Study smarter with the SolutionInn App