# Discussion post 2: Exploration part 1: In class, we saw the “tossing of two dice” experiment…

Discussion post 2: Exploration part 1: In class, we saw the “tossing of two dice” experiment…
Discussion post 2: Exploration part 1: In class, we saw the “tossing of two dice” experiment simulated in R. The simulation recorded the frequency of an odd number on the first die, an odd number on the second and the frequency of an odd on both. The function ind that simulated the experiment was coded in an script file. The ind function has only one argument: the Size vector. It the example we saw, Size is a vector of length 4 where each entry represents the number of times the two dice are tossed. From the screenshot output below, Size = c(100, 500, 1000), that is, the dice were tossed 100 times, 500 times, and 1000 times. As can be seen under PROGRAM OUTPUT in the screenshot, the sample size has an effect on the relative frequencies. The Error indicates how close the Both Odd percentage is to the (Die1 Odd)*(Die2 Odd) given in column F1*F2 – which is actually how we calculate the probability of two independent events (by multiplying the probability of each). This simulation illustrates a comparison between relative frequency Both Odd from the simulated experiment and the multiplication law for the probability of independent events F1*F2. > Size – CC100,500,1000) > ind(Size) PROGRAM OUTPUT Diel Odd Diez Odd Both Odd F1 F2 Error N= 100 0.540 0.580 0.210 9.27001 – 60000 N 500 0.488 0.518 0.266 0.252784 0.013216 N-1080 0.583 0.476 0.233.239428 -0.006428 2. What is the value of simulating an experiment in R? May 11 2022 01:55 AM

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.