Question

In: Statistics and Probability

This problem is to be done in R. Consider two populations A = {3, 5, 7,...

This problem is to be done in R.

Consider two populations A = {3, 5, 7, 9, 10, 16} and B = {8, 10, 11, 15, 18, 25, 28}.

a) Using R, draw random samples (without replacement) of size 3 from each population, and simulate the sampling distribution of the sum of their maximum. Describe the distribution.

b) Use your simulation to estimate the probability that the sum of the maximums is less than 20.

c) Draw random samples of size 3 from each population, and find the maximum of the union of these two sets. Simulate the sampling distribution of the maximum of this union. Compare the distribution to part (a). In R, max(union(a, b)) returns the maximum of the union of sets a and b.

d) Use simulation to find the probability that the maximum of the union is less than 20.

Solutions

Expert Solution


Related Solutions

Consider two populations A = f3; 5; 7; 9; 10; 16g and B = f8; 10;...
Consider two populations A = f3; 5; 7; 9; 10; 16g and B = f8; 10; 11; 15; 18; 25; 28g. a) Using R, draw random samples (without replacement) of size 3 from each population, and simulate the sampling distribution of the sum of their maximum. Describe the distribution. b) Use your simulation to estimate the probability that the sum of the maximums is less than 20. c) Draw random samples of size 3 from each population, and find the...
3. Consider the following data for two variables, x and y.x   2 3 4 5 7...
3. Consider the following data for two variables, x and y. x   2 3 4 5 7 7 7 8 9 y 4 5 4 6 4 6 9 5 11 a. Does there appear to be a linear relationship between x and y? Explain.(f-test, to do f-test for the overall significance) b. Develop the estimated regression equation relating x and y. c. Plot the standardized residuals versus yˆ for the estimated regression equation developed in part (b). Do the model...
3. Consider the following data for two variables, x and y. x   2 3 4 5 7...
3. Consider the following data for two variables, x and y. x   2 3 4 5 7 7 7 8 9 y 4 5 4 6 4 6 9 5 11 a. Does there appear to be a linear relationship between x and y? Explain. b. Develop the estimated regression equation relating x and y. c. Plot the standardized residuals versus yˆ for the estimated regression equation developed in part (b). Do the model assumptions appear to be satisfied? Explain. d....
R work (must be done in R) Before opening the dataset needed for this problem, you’ll...
R work (must be done in R) Before opening the dataset needed for this problem, you’ll need to call the “car” package. Run the following line of code: > library(car)  Now you can import the “ Cowles” dataset and use it to answer the question below. Name the data frame with your EID: > my_eid <- Cowles Remember to include any code you use along with your answers in your submission! 3. Cowles and Davis (1987) collected data on...
#9.       Consider again the data labelled problem 8. The population standard deviations of the two populations...
#9.       Consider again the data labelled problem 8. The population standard deviations of the two populations are known to be respectively 18 and 15. You have to test the hypothesis that the mean of population 1 exceeds that of population 2 by more than 2 units, i.e. μ1-μ2>2. Test the hypothesis using α=3%. You will write ALL the steps involved in the hypothesis test as demonstrated in the lecture class: identify the test-statistic, give the value of sample statistics and...
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
Consider the data. xi 1 2 3 4 5 yi 3 7 5 10 13 (a)...
Consider the data. xi 1 2 3 4 5 yi 3 7 5 10 13 (a) Compute the mean square error using equation s2 = MSE = SSE n − 2  . (Round your answer to two decimal places.) (b) Compute the standard error of the estimate using equation s = MSE = SSE n − 2  . (Round your answer to three decimal places.) (c) Compute the estimated standard deviation of b1 using equation sb1 = s Σ(xi −...
4) Let ? = {2, 3, 5, 7}, ? = {3, 5, 7}, ? = {1,...
4) Let ? = {2, 3, 5, 7}, ? = {3, 5, 7}, ? = {1, 7}. Answer the following questions, giving reasons for your answers. a) Is ? ⊆ ?? b)Is ? ⊆ ?? c) Is ? ⊂ ?? d) Is ? ⊆ ?? e) Is ? ⊆ ?? 5) Let ? = {1, 3, 4} and ? = {2, 3, 6}. Use set-roster notation to write each of the following sets, and indicate the number of elements in...
Chapter 12 Problem 3 (Excel functions needed) Consider the project contained in Problem 7 in Chapter...
Chapter 12 Problem 3 (Excel functions needed) Consider the project contained in Problem 7 in Chapter 11 (California Health Center). a. Perform a sensitivity analysis to see how NPV is affected by changes in the number of procedures per day, average collection amount, and salvage value. Remember supplies vary with number of procedures. b. Conduct a scenario analysis. Suppose that the hospital's staff concluded that the three most uncertain variables were number of procedures per day, average collection amount, and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT