The scientific method has four elements: Observe, Theorize, Predict, Test. For example, observations and careful thought...
Fantastic news! We've Found the answer you've been seeking!
Transcribed Image Text:
The scientific method has four elements: Observe, Theorize, Predict, Test. For example, observations and careful thought lead to the theory of dice sums presented in Sec- tion 1. In this project we will derive predictions from that theory and test them by means of a simulation. Follow the instructions, and present your results in a one-page technical report. (a) Using the theory presented at the end of Section 1, give a table of expected frequencies of all possible sums, in the experiment of tossing a pair of dice 10,000 times. Round all expected frequencies to the nearest integer. (b) Use R to carry out a simulation of 10000 tosses of two dice. Give the observed frequencies of all sums. Display these frequencies by adding an additional line to the table of expected frequencies from part (a). To do the simulation, activate R and do the following. 1. Set the random number seed to 26 * Y +K where Y denotes the last digit of the current year and K is the position in the alphabet of the first letter of your last name. If your last name begins with C, and the year is 2023, then your random number seed is 81, and so you would enter the command set.seed (81). 2. Create a variable, say ac, and set it equal to NULL by the command ac <- NULL. 3. Run a program like the one-line program for (i in 1:10000) {w <- sample (1:6,2,replace-TRUE); ac <- c(ac,sum (w))} The scientific method has four elements: Observe, Theorize, Predict, Test. For example, observations and careful thought lead to the theory of dice sums presented in Sec- tion 1. In this project we will derive predictions from that theory and test them by means of a simulation. Follow the instructions, and present your results in a one-page technical report. (a) Using the theory presented at the end of Section 1, give a table of expected frequencies of all possible sums, in the experiment of tossing a pair of dice 10,000 times. Round all expected frequencies to the nearest integer. (b) Use R to carry out a simulation of 10000 tosses of two dice. Give the observed frequencies of all sums. Display these frequencies by adding an additional line to the table of expected frequencies from part (a). To do the simulation, activate R and do the following. 1. Set the random number seed to 26 * Y +K where Y denotes the last digit of the current year and K is the position in the alphabet of the first letter of your last name. If your last name begins with C, and the year is 2023, then your random number seed is 81, and so you would enter the command set.seed (81). 2. Create a variable, say ac, and set it equal to NULL by the command ac <- NULL. 3. Run a program like the one-line program for (i in 1:10000) {w <- sample (1:6,2,replace-TRUE); ac <- c(ac,sum (w))}
Expert Answer:
Answer rating: 100% (QA)
R CODE rmlist ls PART a N 10000 E roundmatrixcseq212cseq16 seq51136N nro... View the full answer
Posted Date:
Students also viewed these accounting questions
-
In part 1 of this lab, we will be investigating the motion of a cart as it slides down an inclined plane. Let D be the distance from the raised end to the ground and h be the vertical distance from...
-
An experiment involves tossing a pair of dice, 1 green and 1 red, and recording the numbers that come up. If x equals the outcome on the green die and y the outcome on the red die, describe the...
-
Carry out a simulation experiment using a statistical computer package or other software to study the sampling distribution of when the population distribution is Weibull with = 2 and = 5, as in...
-
In Exercises find the derivative of the algebraic function. f(x) = (2x + 5x)(x 3)(x + 2)
-
Create a boxplot for the data in Exercise 5.1. In Exercise 5.1 The data follow: 54 52 51 50 36 55 44 46 57 44 43 52 38 46 55 34 44 39 43 36 55 57 36 46 49 46 49 47
-
Explain how the choice of the type of responsibility center cost, revenue, profit, or investment affects behavior.
-
There are about \(10^{11}\) stars in the Galaxy with mass comparable to the Sun. Determine total mass \(M_{S}\) in the stars and the fraction of the Galaxy mass in the form of interstellar medium...
-
The personnel department at LastCall Enterprises handles many administrative tasks for the two divisions that make up LastCall: LaidBack and StressedOut. LaidBack division manages the companys...
-
6. Consider two G.P.'s. 2, 22, 23, and 4, 4, 4, of 60 and n terms respectively. If the 225 n geometric mean of all the 60 + n terms is (2), then k(n-k) is equal to: (a) 560 (b) 1540 (c) 1330 (d) 2600
-
In addition to a Gantt chart, youve drawn Brian a PERT diagram so that you can communicate the necessity to keep an eye on the critical path. Consult Figure which was derived from the data from...
-
Question 15 Cost Account Planned Value Earned Value Actual Cost 1.2.1 1.3.1 $275 $550 $300 $500 $375 $500
-
Jane has been making coffee all week for her coworkers, but accidentally used decaffeinated coffee. Jill has been drinking and claims to feel the benefit from caffeine. Linda has not been drinking...
-
Kathy receives her real estate license. Within a month of receiving her license, she gets a new job offer she can't refuse. She decides to continue to hold a license but not practice or do any real...
-
(a) Jenny short-sold one unit of Stock A today and plan to close her position in one year. Stock A has a current price of 150. The price of Stock A after one year is equally likely to be 100, 120,...
-
On March 1 5 , Smith listed his home for three months with an agency, to be exclusively handled by Broker Brown. On March 2 5 , Smith filed for and received bankruptcy. On April 1 , Broker Brown...
-
Alex is currently working in a directory containing only one file, Afile1. What is displayed after the following commands are entered in bash shell? [user@pluto user]$ MYVAR=Is [user@pluto user]$...
-
Do public and private companies follow the same set of accounting rules? Explain.
-
Why do most computer systems use memory-mapped I/O?
-
Write a simple loop that lets you exercise the cache. By changing the number of statements in the loop body, you can vary the cache hit rate of the loop as it executes. If your microprocessor fetches...
-
Draw a timing diagram for a burst write operation that writes four locations.
Study smarter with the SolutionInn App