Question

Statistics and probability in R D1 is a fair dice 1)build the pmf table in R...

Statistics and probability in R

D1 is a fair dice

1)build the pmf table in R

2)find the varience using formual E[D1- − µ]^2 and shortcut formula E[D^2 ] − [E(D)]^2 = E[D^2 ] − µ^2 in R

3)find the standard deviation in R

I'm looking for the R code to learn how to do it.

Homework Answers

Answer #1

The sample space for one throw of a 6 sided fair die is .

Each outcome is equally likely with probability .

1) The PMF table is

1 2 3 4 5 6

2) The varianc is defined as

Here,

The second moment is

The R code for finding variance and standard deviation is given below

D <- c(1,2,3,4,5,6)
p <- 1/6
ED <- sum (p*D)
ED2 <- sum (p*D^2)
VD1 <- sum (p*(D-ED)^2)
VD2 <- ED2 - ED^2
SD <- sqrt(VD1)
VD1
VD2
SD

The output is

> VD1
[1] 2.916667
> VD2
[1] 2.916667
> SD
[1] 1.707825

3) Testandard devbaition is .

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
Consider the probability experiment consisting of rolling two fair six-sided dice and adding up the result....
Consider the probability experiment consisting of rolling two fair six-sided dice and adding up the result. (Recall: “fair” means each side is equally likely.) (a) Identify the sample space. S = { } (b) Let W be the event that the dice roll resulted in the number 12. Then P(W) = (c) Classify the probability you found in the previous part (circle one): theoretical probability empirical probability subjective probability Explain your answer. (d) Describe W0 in words (without using the...
The pmf of the amount of memory X (GB) in a purchased flash drive is given...
The pmf of the amount of memory X (GB) in a purchased flash drive is given as the following. x 1 2 4 8 16 p(x)        0.05     0.15     0.30     0.45     0.05   (a) Compute E(X). (Enter your answer to two decimal places.) GB (b) Compute V(X) directly from the definition. (Enter your answer to four decimal places.) GB2 (c) Compute the standard deviation of X. (Round your answer to three decimal places.) GB (d) Compute V(X) using the shortcut formula. (Enter...
Find solutions for your homework home / study / math / statistics and probability / statistics...
Find solutions for your homework home / study / math / statistics and probability / statistics and probability questions and answers / Customers Arrive At A Movie Theater At The Advertised Movie Time Only To Find That They Have ... Question: Customers arrive at a movie theater at the advertised movie time only to find that they have to s... See this question in the app (1 bookmark) Customers arrive at a movie theater at the advertised movie time only...
Using R and the data in the table below, perform the regression of D on C...
Using R and the data in the table below, perform the regression of D on C (i.e., report the regression equation). Hint: The code to enter the vectors C and D into R is: C <- c(3, 6, 8, 9, 1, 3) D <- c(2, 7, 5, 4, 0, 4) C D 3 2 6 7 8 5 9 4 1 0 3 4 You must figure out how to obtain the regression equation from R. Enter the code below...
3. The probability distribution for the number of siblings (Y) for students in a statistics class...
3. The probability distribution for the number of siblings (Y) for students in a statistics class is given by y 0 1 2 3 4 p(y) 0.3 0.3 0.2 0.15 ? a. Find the missing probability. b. Find the mean of the distribution. c. Find the variance of the distribution. 4. A fair die is rolled 120 times. Let Y represent the number of times a three comes up. a. Find the P(Y =19). Do this one by hand using...
Refer to the table below: 3 Doors, Inc. Down Co. Expected return, E(R) 15 % 10...
Refer to the table below: 3 Doors, Inc. Down Co. Expected return, E(R) 15 % 10 % Standard deviation, σ 30 18 Correlation 0.39 Using the information provided on the two stocks in the table above, find the expected return and standard deviation on the minimum variance portfolio. (Do not round intermediate calculations. Enter your answers as a percent rounded to 2 decimal places.) Expected Return Standard Deviation
Refer to the table below: 3 Doors, Inc. Down Co. Expected return, E(R) 12 % 13...
Refer to the table below: 3 Doors, Inc. Down Co. Expected return, E(R) 12 % 13 % Standard deviation, σ 30 15 Correlation .36 Using the information provided on the two stocks in the table above, find the expected return and standard deviation on the minimum variance portfolio. (Do not round intermediate calculations. Enter your answers as a percent rounded to 2 decimal places.)
Refer to the table below: 3 Doors, Inc. Down Co. Expected return, E(R) 10 % 11...
Refer to the table below: 3 Doors, Inc. Down Co. Expected return, E(R) 10 % 11 % Standard deviation, σ 25 22 Correlation 0.20 Using the information provided on the two stocks in the table above, find the expected return and standard deviation on the minimum variance portfolio. (Do not round intermediate calculations. Enter your answers as a percent rounded to 2 decimal places.)
Use the programming language R to code the following project.. * Make sure you turn in...
Use the programming language R to code the following project.. * Make sure you turn in your code and answers from each question. (not the raw data). 1. Generate 1000 random samples of size 40 from the normal distribution with mean µ = 3 and standard deviation σ = 2. Compute 95% the confidence interval of 1000 samples and find the rate of confidence interval contains the true mean. What did you learn from this simulation study? 2. For each...
1 A fair coin is flipped 15 times. Each flip is independent. What is the probability...
1 A fair coin is flipped 15 times. Each flip is independent. What is the probability of getting more than ten heads? Let X = the number of heads in 15 flips of the fair coin. X takes on the values 0, 1, 2, 3, ..., 15. Since the coin is fair, p = 0.5 and q = 0.5. The number of trials is n = 15. State the probability question mathematically. 2 Approximately 70% of statistics students do their...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT