Question

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.

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 .

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...

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 (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 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
%
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

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...

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
%
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.)

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...

Suppose you roll two twenty-five-sided dice. Let X1, X2 the
outcomes of the rolls of these two fair dice which can be viewed as
a random sample of size 2 from a uniform distribution on
integers.
a) What is population from which these random samples are drawn?
Find the mean (µ) and variance of this population (σ 2 )? Show your
calculations and results.
b) List all possible samples and calculate the value of the
sample mean ¯(X) and variance...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 2 minutes ago

asked 14 minutes ago

asked 29 minutes ago

asked 29 minutes ago

asked 41 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 2 hours ago

asked 2 hours ago

asked 2 hours ago