Question

(g) Compute the variance in the outcome of throwing the above loaded dice. Write a program...

(g) Compute the variance in the outcome of throwing the above loaded dice.

Write a program that does the experiment in part (g) above 105 times, and plot the probability distribution of outcomes.

Homework Answers

Answer #1

part g)

Required R code:

set.seed(100)
dice = c(1,1,2,3,4,5)
n = 105
outcomes = sample( dice, n, TRUE )
m = mean(outcomes)
cat('mean is ', m)
v = mean( outcomes^2 ) - mean( outcomes )^2
cat('variance is ', v)
hist( outcomes )

OUTPUT :

mean is 2.752381

variance is 2.224399

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. A random experiment consists of throwing a pair of dice, say a red die and...
1. A random experiment consists of throwing a pair of dice, say a red die and a green die, simultaneously. They are standard 6-sided dice with one to six dots on different faces. Describe the sample space. 2. For the same experiment, let E be the event that the sum of the numbers of spots on the two dice is an odd number. Write E as a subset of the sample space, i.e., list the outcomes in E. 3. List...
1. Compute the mean and variance of the following probability distribution. (Round your answers to 2...
1. Compute the mean and variance of the following probability distribution. (Round your answers to 2 decimal places.) x P(x) 4 0.10 7 0.25 10 0.30 13 0.35 2. Given a binomial distribution with n = 6 and π⁢= .25. Determine the probabilities of the following events using the binomial formula. (Round your answers to 4 decimal places.) x = 2 x = 3 3. A probability distribution is a listing of all the outcomes of an experiment and the...
In an experiment, two fair dice are thrown. (a) If we denote an outcome as the...
In an experiment, two fair dice are thrown. (a) If we denote an outcome as the ordered pair (number of dots on the first die, number of dots on the second die), write down the sample space for the experiment. (So a roll of “1 dot” on the first die and a roll of “3 dots” on the second die would be the ordered pair (1, 3) in the sample space S.) You can think of the first die as...
• Compute the sampling distribution when you add the outcome of rolling two dice. o What...
• Compute the sampling distribution when you add the outcome of rolling two dice. o What is the probability that the sum will be higher than or equal to 9? o What is the probability that the sum will be between 4 and 6? o What is the probability that the sum will be higher than 9 given that one die is a 6? • A friend of yours rolls two dice and claims that the addition of those two...
I need this coded in R: I have a program that simulates a fair dice. The...
I need this coded in R: I have a program that simulates a fair dice. The program rolls a fair coin 100 times and counts the number of 1's. The simulation is repeated 10^5 times and stored the outcomes in x and a histogram is plotted. I need to now draw a bell curve showing normal/gaussian distribution over the histogram. Code I have: dice <- function(n) { sample(c(1:6),n,replace = TRUE) } x<-dice(100) x<-numeric(10^5) for(n in 1:10^5){ x[n]<-sum(dice(100)==1) } hist(x, main="100...
Using R, simulate tossing 4 coins as above, and compute the random variable X(the outcome of...
Using R, simulate tossing 4 coins as above, and compute the random variable X(the outcome of tossing a fair coin 4 times & X = num of heads - num of tails.). Estimate the probability mass function you computed by simulating 1000 times and averaging.
A gambler complained about the dice. They seemed to be loaded! The dice were taken off...
A gambler complained about the dice. They seemed to be loaded! The dice were taken off the table and tested one at a time. One die was rolled 300 times and the following frequencies were recorded. Outcome   1   2   3   4   5   6 Observed frequency O   60   44   59   34   46   57 Do these data indicate that the die is unbalanced? Use a 1% level of significance. Hint: If the die is balanced, all outcomes should have the same expected...
I dont understand question 1 part A to D and please write clear. 1) Suppose you...
I dont understand question 1 part A to D and please write clear. 1) Suppose you play a die rolling game in which a fair 6-sided die is rolled once. If the outcome of the roll (the number of dots on the side facing upward) is at least five, you win $10, otherwise you lose $5.50. Let ? be the profit of the game or the amount of money won or lost per roll. Negative profit corresponds to lost money....
Problem 1: Relations among Useful Discrete Probability Distributions. A Bernoulli experiment consists of only one trial...
Problem 1: Relations among Useful Discrete Probability Distributions. A Bernoulli experiment consists of only one trial with two outcomes (success/failure) with probability of success p. The Bernoulli distribution is P (X = k) = pkq1-k, k=0,1 The sum of n independent Bernoulli trials forms a binomial experiment with parameters n and p. The binomial probability distribution provides a simple, easy-to-compute approximation with reasonable accuracy to hypergeometric distribution with parameters N, M and n when n/N is less than or equal...
In this assignment you will write a program that compares the relative strengths of two earthquakes,...
In this assignment you will write a program that compares the relative strengths of two earthquakes, given their magnitudes using the moment magnitude scale. Earthquakes The amount of energy released during an earthquake -- corresponding to the amount of shaking -- is measured using the "moment magnitude scale". We can compare the relative strength of two earthquakes given the magnitudes m1 and m2 using this formula: f=10^1.5(m1−m2) If m1>m2, the resulting value f tells us how many times stronger m1...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT