Question

In: Statistics and Probability

Suppose that you have programmed your computer to do the following: (i) Draw 50 X values...

Suppose that you have programmed your computer to do the following:

(i) Draw 50 X values from a uniform distribution between 10 and 20. (i.e. uniform on [10,20])

(ii) Count the number of X values greater than 18 and call this number G

(iii) Divide G by 50 and call this number H

(iv) Repeat steps i to iii to obtain 10,000 H values

(v) Calculate the average H value and the variance of H Values

Answer the following questions:

1. What number should the average H value be, approximately?

2. What does the variance of H values estimate, intuitively?

3. How would average and variance of H values change if the procedure were repeated 100,000 times, instead of 10,000?

4. How would average and variance of H values change if 100 X values were drawn in step i, instead of 50?

Solutions

Expert Solution

Required R software code is given as follows, But please notice that your result may change as the random sample generated using R changes each time.

R-code


#(i).To generate 50 X values fron U[10,20]
X=runif(50,10,20)
X

#(ii). To Count the number of X values greater than 18
G=X[which(X>18)]
G
length(G) # Values are greater than 18

#(iii) We Divide G by 50
H=G/50
H

#(iv) WERepeat steps i to iii to obtain 10,000 H values
H=c()
for(i in 1:10000)
{
X[i]=runif(50,10,20)
G[i]=X[which(X>18)]
H[i]=G/50
}
H
length(H)

#(v) To Calculate the average H value and the variance of H Values
Average_H=mean(H)
Average_H

Variance_H=var(H)
Variance_H


Answers from my random sample

1. The average H value be 0.3 approximately
2. The variance of H values estimate the variation in H values which is zero intuitively
3. There will be no change in average and variance of H values change if the procedure were repeated 100,000 times, instead of 10,000
4. The average of H values and variance will still remain inchanged


Related Solutions

Suppose you have the following set of hexadecimal values: $20, $25, $40, $50, $12. Write a...
Suppose you have the following set of hexadecimal values: $20, $25, $40, $50, $12. Write a segment of program to find the minimum and maximum values of the set. Answer must be written in assembly.
Suppose we have the following values on the number of customers (X) and the average profits...
Suppose we have the following values on the number of customers (X) and the average profits (Y) for fifteen stores: Store                   Customers (X)          Average Profits (Y) A                               161                              157 B                               99                              93 C                               135                              136 D                               120                              123 E                                164                              153 F                                221                              241 G                               179                              201 H                               204                              206 I                                 214                              229 J                                 101                              135 K                               231                              224 L                                206                              195 M                               248                              242 N      ...
Suppose we have the following values on the number of customers (X) and the average profits...
Suppose we have the following values on the number of customers (X) and the average profits (Y) for fifteen stores: Store                   Customers (X)            Average Profits (Y) A                               161                              157 B                               99                              93 C                               135                              136 D                               120                              123 E                                164                              153 F                                221                              241 G                               179                              201 H                               204                              206 I                                 214                              229 J                                101                              135 K                               231     ...
Please answer All, I do not have computer to solve. Thank you ! 1. You have...
Please answer All, I do not have computer to solve. Thank you ! 1. You have chosen biology as your college major because you would like to be a medical doctor. However, you find that the probability of being accepted to medical school is about 20 percent. If you are accepted to medical school, then your starting salary when you graduate will be $320,000 per year. However, if you are not accepted, then you would choose to work in a...
Do you have bad breath? A machine is programmed to fill bottles with 1.65 liters of...
Do you have bad breath? A machine is programmed to fill bottles with 1.65 liters of mouthwash in each bottle. Scope is testing that machine for its accuracy. In a sample of 29 bottles of mouthwash, the mean and standard deviation are calculated as 1.77 liters and 0.25 liters, respectively. Use Table 2. a. Select the null and the alternative hypotheses to determine if the machine is working improperly, that is, it is either underfilling or overfilling the bottles of...
Suppose you have $16 and your utility function is U(x,y) = xy. What do prices have...
Suppose you have $16 and your utility function is U(x,y) = xy. What do prices have to be for your optimal consumption bundle to be x = 2 and y = 1? Show your work.
Suppose that we have a single input variable X and all possible values of X is...
Suppose that we have a single input variable X and all possible values of X is {0, 1, 2}. Also, suppose that we have two groups for outcomes (i.e., Y = 1, 2). It is known that the X|Y = 1 has Binomial(2, 0.7) and X|Y = 2 has the discrete uniform. In addition, P(Y = 1) = 0.3. (1) Predict Y for X = 0, 1, 2, respectively, using the Bayes classifier. (2) Compute the overall Bayes error rate.
For the following sample sizes of 100, 50, and 20 I got the following data values....
For the following sample sizes of 100, 50, and 20 I got the following data values. I was asked the proportion of x students on a assingment with a vairiety of test scores. It asked for the proportion of students getting higher than a 69 and 90. The population mean : 83.516 Sample of 100 mean = 81.91 Sample of 50 = 81.74 Sample of 20 = 84.05 for above 69 i got the following proportions Population proportion = .886...
Although the following questions ask you to draw diagrams, you do not have to submit these....
Although the following questions ask you to draw diagrams, you do not have to submit these. You do, however, need to know how to draw them. Suppose Apple has a monopoly on a new product, the iFraud. The market is characterized by:             Short Run Marginal Cost of Supply:             MC = 100 + 2Q             Short Run Average Total Cost:                      AC = 100 + Q + 150,000/Q             Marginal Willingness to Pay:                         P = 1600 – 4Q A....
A computer-controlled racecar is programmed to execute the following motion along the ground for 6.0 seconds....
A computer-controlled racecar is programmed to execute the following motion along the ground for 6.0 seconds. Let’s say the car begins at the origin of our coordinate system. Its initial velocity is ~v0 = (15:0 m/s)^i and its acceleration is constant: ~a = (?6:0 m/s2)^i + (?2:0 m/s2)^j (a) Make a table, and calculate the car’s position vector, ~r at the end of each second, through t = 6:0 seconds. Use these data to plot the trajectory of the particle...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT