Question

In: Statistics and Probability

5. Use either R or Excel for the following. Provide the formulas or code that you...

5. Use either R or Excel for the following. Provide the formulas or code that you are using. Let x1 be a random variable that is N(100, 225). Let x2 be a random variable that is U(50,150) and let x3 be a random variable that is U(500,1500).

Set Y = (X1)(X2)/ (X3)

a) Use R to create 500 random numbers of each type (X1, X2, X3 and Y).

b) Estimate P(0.1 < Y < 0.25)

c) Estimate E(Y) and the Standard deviation of Y based on the random numbers.

d) Based on the simulation, what is the maximum value of Y

e) Create a histogram for Y.

Solutions

Expert Solution

Attached is the R code marked in Bold

# To draw numbers from N(100,225)
n <- 500
x1 <- rnorm(n, mean = 100, sd = 225)
# To draw numbers from U(50,150)
x2 <- runif(n, min = 50, max = 150)
# To draw numbers from U(500,1500)
x3 <- runif(n, min = 500, max = 1500)
y <- (x1*x2)/x3
y_prob <- y[y>0.1 & y < 0.25]
# Probability (0.1<y<0.25)
p <- length(y_prob)/n
# E(y)
y_bar <- mean(y)
# Standard deviation of y
sd <- sd(y)
max(y)
# Histogram of y
hist(y,freq = FALSE)

print(y_bar)
print(sd)
print(max(y))   
print(p)

Ans

E(y) =10.90617

Standard deviation of y = 26.50636

P(0.1<y<0.25) = 0.002

Maximum of y =107.8512


Related Solutions

please use excel and provide the formulas The Times-Observer is a daily newspaper in Metro City....
please use excel and provide the formulas The Times-Observer is a daily newspaper in Metro City. Like many city newspapers, the TimesObserver is suffering through difficult financial times. The circulation manager is studying other papers in similar cities in the United States and Canada. She is particularly interested in what variables relate to the number of subscriptions to the paper. She is able to obtain the following sample information on 25 newspapers in similar cities. Ignore the data in the...
USING EXCEL FORMULAS SOLVE THE PROBLEM. MUST USE EXCEL CALCULATIONS AND FORMULAS.!!! Find the data for...
USING EXCEL FORMULAS SOLVE THE PROBLEM. MUST USE EXCEL CALCULATIONS AND FORMULAS.!!! Find the data for the problem in the first worksheet named LightbulbLife of the data table down below It gives the data on the lifetime in hours of a sample of 50 lightbulbs. The company manufacturing these bulbs wants to know whether it can claim that its lightbulbs typically last more than 1000 burning hours. So it did a study. Identify the null and the alternate hypotheses for...
Use R programming to resolve this; can you please provide details on the code? A) Create...
Use R programming to resolve this; can you please provide details on the code? A) Create a dataframe – comparativeGenomeSize with the following vectors: > organism<-c("Human","Mouse","Fruit Fly", "Roundworm","Yeast") > genomeSizeBP<-c(3000000000,3000000000,135600000,97000000,12100000) > estGeneCount<-c(30000,30000,13061,19099,6034) B) Print the organism and estGeneCount for Human and fruitfly.(1) C) Add a column to this data frame calculating base pairs per gene. To do this, write a function “genedensity” that takes as arguments the genomesizeBP and estimatedGeneCount information, and calculates from this the estimated bp per gene....
Use R.  Provide Solution and R Code within each problem. For this section use the dataset “PlantGrowth”,...
Use R.  Provide Solution and R Code within each problem. For this section use the dataset “PlantGrowth”, available in base R (you do not need to download any packages). a.Construct a 95% confidence interval for the true mean weight. b.Interpret the confidence interval in 1. in the context of the problem. c.Write down the null and alternative hypothesis to determine if the mean weight of the plants is less than 5. d.Conduct a statistical test to determine if the mean weight...
*please use excel and provide formulas   Super Markets Inc. is considering expanding into the Scottsdale, Arizona,...
*please use excel and provide formulas   Super Markets Inc. is considering expanding into the Scottsdale, Arizona, area. You as director of planning must present an analysis of the proposed expansion to the operating committee of the board of directors. As a part of your proposal, you need to include information on the amount people in the region spend per month for grocery items. You would also like to include information on the relationship between the amount spent for grocery items...
*please use excel and provide the formulas Acme Systems, Inc. produces a very large volume of...
*please use excel and provide the formulas Acme Systems, Inc. produces a very large volume of plastic rods on a regular basis. These rods require an extremely accurate diameter. Thus, the Quality Control manager wants to know if the production process is producing rods at a consistent diameter. 220 rods have been sampled each day for 10 days. Defects have been recorded. Develop a “p” control chart for the proportion of defects across the 10 days. Assume Z = 2.58....
Use the following dataset and assume all assumptions are met Provide all R code needed to...
Use the following dataset and assume all assumptions are met Provide all R code needed to conduct the tests Bat house color and species Lasiurus in brown: 45, 49, 53, 54, 46, 51, 50, 48, 52, 50 Myotis in brown: 40, 38, 35, 39, 39, 44, 42, 48, 41, 40 Lasiurus in tan: 53, 49, 51, 52, 59, 54, 53, 54, 58, 51 Myotis in tan: 62, 64, 59, 61, 65, 61, 58, 63, 56, 61 Provide the three hypotheses...
. You must use Excel (submit either a pdf, word or Excel file only). . You...
. You must use Excel (submit either a pdf, word or Excel file only). . You must identify the 5 steps (you must address each in detail). Problem: Use the given data to complete a t-test using Excel. Question: Is there a difference in group means between the number of words spelled correctly for two groups of fourth graders? Group Assignment Score 1 3 1 4 1 10 2 14 2 7 2 8 2 10 2 15 2 9...
1) (note: Please also provide the excel formulas used to solve it )  You work for a...
1) (note: Please also provide the excel formulas used to solve it )  You work for a soft-drink company in the quality control division. You are interested in the standard deviation of one of your production lines as a measure of consistency. The product is intended to have a mean of 12 ounces, and your team would like the standard deviation to be as low as possible. You gather a random sample of 18 containers. Estimate the population standard deviation at...
Use R.  Provide Solution and R Code within each problem. A study was conducted to determine the...
Use R.  Provide Solution and R Code within each problem. A study was conducted to determine the average weight of newborn babies. The distribution of the weight of newborn babies has a standard deviation of σ = 1.25lbs. A random sample of 100 newborn babies was taken and weights measured. The mean weight of the babies in the sample was 7.3 lbs. a. Construct a 95% confidence interval for the true mean weight of newborn babies. b. Interpret the confidence interval...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT