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...
-
On January 1, you sold short one round lot (that is, 100 shares) of Lowes stock at $21 per share. On March 1, a dividend of $2 per share was paid. On April 1, you covered the short sale by buying the...
-
Determine (approximately) the internal moments at joints I and L. Also, what is the internal moment at joint H caused by member HG? 0.5 k/ft K 1.5 k/ft 1.5 k/ft F D. Taont - 20 ft- 40 ft 30 ft
-
The Bonferroni adjustment is made by multiplying the P-value by the number of___________________ . In Exercises 3 and 4, fill in each blank with the appropriate word or phrase.
-
Suppose that you are the owner/manager of a house-cleaning business. You have 30 employees who work in teams of three. Teams are dispatched to the homes of customers where they are directed by the...
-
Equivalent Units of Production and Related Costs The charges to Work in Process-Assembly Department for a period, together with information concerning production, are as follows. All direct materials...
-
Bonds 1. Municipal Bonds - Municipal bonds are haircut per Exhibit 1 based on both their time to maturity and scheduled maturity at date of issue. 2. Corporate Bonds - Corporate bonds are haircut...
-
Find the probability P(E or F) if E and F are mutually exclusive, P(E) = 0.25, and P(F) = 0:47. The probability P(E or F) is?
-
Consider the system shown in the figure with m = 26.00 kg, m 11.70 kg, R = 0.29 m, and the mass of the uniform pulley M= 5.00 kg. Object m is resting on the floor, and object m is 4.50 m above the...
-
Your program takes as input the dataset filename and the value of the two DB-Scan parameters (eps, MinPts). As output, it produces a CSV file that will contain the point coordinates and corresponding...
-
You graduated from Deakin Business School with a major in accounting and financial planning. On graduation you have been lucky to secure a job in an accounting practice that also offers financial...
-
105. Chromosome map for the first time was prepared by (1) A. Sturtevant (3) Watson (2) T.H. Morgan (4) Bridges
-
Suppose you declared and initialized two arrays: let names = ["John", "Paul", "Nick"]; let scores = [80, 68, 95]; Add any necessary statements, including the loop, to display the names and scores...
-
a) If an E. Coli bacteria has a length of L = 2.20m from tip to tip and has a cylindrical diameter d of 0.40 m (as shown), what are the surface area and volume of the bacteria if it is shaped as a...
-
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...
-
The cable is subjected to the uniform loading. Determine the equation \(y=f(x)\) which defines the cable shape \(A B\) and the maximum tension in the cable.. 50 ft 50 ft |- B 150 lb/ft 20 ft x
-
The beams \(A B\) and \(B C\) are supported by the cable that has a parabolic shape. Draw the shear and moment diagrams for members \(A B\) and \(B C\). The hanger at \(B\) is attached to member \(A...
-
The cable has a mass of \(0.5 \mathrm{~kg} / \mathrm{m}\) and is \(25 \mathrm{~m}\) long. Determine the vertical and horizontal components of force it exerts on the top of the tower. B 30 15 m
Study smarter with the SolutionInn App