Question

In: Statistics and Probability

Show the R inputs and the answers to the questions if asked please # Q1. Generate...

Show the R inputs and the answers to the questions if asked please

# Q1. Generate 10 random numbers from a uniform distribution on [0,10]. Use R to find the maximum and minimum values.


# Q2. Generate 10 random normal numbers with mean 5 and standard deviation 5 (normal(5,5)). How many are less than 0 (Use R)?


# Q3. Generate 100 random normal numbers with mean 100 and standard deviation 10. How many are 2 standard deviations from the mean (smaller than 80 or bigger than 120)?


# Q4. As part of a professional skills program, a 4-H club tests its members for typing proficiency. Dr. Katz wants to test his studentsâ mean typing speed against a nominal speed of 40 words per minute with confidence interval of 95%. Speed recorded by different students is (35, 50, 55, 60, 65, 60, 70, 55, 45, 55, 60, 45, 65, 55, 50, 60). For each of the following, answer the question, and show the output from the analyses you used to answer the question.
# a. What was the mean typing speed?
# b. Create a histogram and answer if the data distribution is reasonably normal?
# c. Was the mean typing speed significantly different from the nominal rate of 40 words per minute?
# d. What do you conclude practically? Include a description of the difference from the mean. If they are different, which is higher?


# Q5. As part of a professional skills program, a 4-H club tests its members for typing proficiency. Dr. Katz and Laura want to compare their studentsâ.. mean typing speed between their classes.
# katz_students (35, 50, 55, 60, 65, 60, 70, 55, 45, 55, 60, 65, 55, 50, 60, 70)
# lauras_students (55, 60, 75, 65, 60, 70, 75, 70, 70, 65, 72, 73, 65, 80, 50, 55)
# a. What was the mean typing speed for each class?
# b. Create histograms to answer this question: Are the data distributions for each sample reasonably normal?
# c. Was the mean typing speed significantly different between the classes?
# d. What do you conclude practically? Include a description of the difference between the means of the data. If they are different, which is higher?


# Q6. Based on test scores, can we see if there is a difference between the scores in pretest compared to the posttest? The data is
# prestest: 3 0 5 2 5 5 5 4 4 5
# postest: 2 1 4 1 4 3 3 2 3 5
# a. What was the mean score for each grader?
# b. Are the data distributions for each sample reasonably normal?
# c. Was the mean score different between the graders?
# d. Plot a histogram of differences between pretest and posttest scores.
# e. What do you conclude practically? Include a description of the difference between the means of the data. If they are different, which is higher?

Solutions

Expert Solution

Solution4:

Rcode


speed <- c(35, 50, 55, 60, 65, 60, 70, 55, 45, 55, 60, 45, 65, 55, 50, 60)
mean(speed)
hist(speed)
qqnorm(speed)
qqline(speed)
shapiro.test(speed)
t.test(speed,mu=40)

Solution4a:

a. What was the mean typing speed?

mean typing speed=55.3125

# b. Create a histogram and answer if the data distribution is reasonably normal?

The distribution is normal as we observe symmertical shape from histogrm

Also from QQ plot(pints are most on the straight line)and shapiro test it confirms normal distribution.

c. Was the mean typing speed significantly different from the nominal rate of 40 words per minute?

we conduct t test

H0: mu=40

Ha: mu not = 40

Output:

One Sample t-test

data: speed
t = 6.925, df = 15, p-value = 4.853e-06
alternative hypothesis: true mean is not equal to 40
95 percent confidence interval:
50.59948 60.02552
sample estimates:
mean of x
55.3125

t= 6.925

p= 4.853e-06

p<0.05

Reject H0

Accept Ha.

Conlcusion:

there is sufficient statistical evidence at 5% level of significance to conclude that

he mean typing speed significantly different from the nominal rate of 40 words per minute.

What do you conclude practically? Include a description of the difference from the mean. If they are different,

there is sufficient statistical evidence at 5% level of significance to conclude that

he mean typing speed significantly different from the nominal rate of 40 words per minute.

sample mean=xbar=55.3125 is higher than 40.


Related Solutions

Please I need clear and typed answers to these two questions: Q1)Explain the two types of...
Please I need clear and typed answers to these two questions: Q1)Explain the two types of file compression? Then determine the best compression strategy suited for: a- Photograph of sailboat on ocean. b- Journal article explaining nanotechnology. Q2)What are the advantages and disadvantages of Description-Based Encoding and Command-Based Encoding?
Please I need all answers about questions in TLC LAB. (Q1) In our lab, what is...
Please I need all answers about questions in TLC LAB. (Q1) In our lab, what is the mobile phase and what is stationary phase? Discuss the polarity of each. (Q2) Do your results suggest that the chemical characteristics of these pigments might differ according to their color? Explain. (Q3) Which of your pigment molecules was the most non-polar? Polar? (Q4) What is the relationship between Rf values and polarity for this experiment? Is this always true? (Q5) Why should you...
Please prepare accounting entries or answer the questions asked for the following independent situations (SHOW ALL...
Please prepare accounting entries or answer the questions asked for the following independent situations (SHOW ALL WORK): Diamond Company owns 40% of the stock of Silver Company. On January 1, 2019, Silver reports total income of $4,000,000. On June 1, 2019, Silver pays total dividends to its shareholders of $1,000,000. Prepare the necessary accounting entries for Diamond. May Company purchased a bond issued by August Company on September 1, 2019 for $1,000,000. The bond is properly classified as Trading. On...
Knowing the questions that you will be asked is very important as well as the answers...
Knowing the questions that you will be asked is very important as well as the answers in the preparation for an interview. You are required to come up with 5 questions that the interviewer is likely to ask and 5 answers.
In R/ R Studio, what code would I enter to find the answers to these questions?...
In R/ R Studio, what code would I enter to find the answers to these questions? What is the code to find the descriptive/ summary statistics of all variables in a data set and how do i find the mean values? What is the code to measure the skewness measure of delta time for all of all the values in the data set? What is the code to draw a histogram and q-q plot of the natural log of a...
Use the R script to answer the following questions: (write down your answers in the R...
Use the R script to answer the following questions: (write down your answers in the R script with ##) (1). Import FarmSize.csv to Rstudio. Use the correct function to build a linear regression model predicting the average size of a farm by the number of farms; Give the model a name (e.g. FarmSize_Model). Call the model name to inspect the intercept and slope of the regression model. Verify the answers in your manual calculation. (2). Use the correct function to...
Use the R script to answer the following questions: (write down your answers in the R...
Use the R script to answer the following questions: (write down your answers in the R script with ##) (1). Import FarmSize.csv to Rstudio. Use the correct function to build a linear regression model predicting the average size of a farm by the number of farms; Give the model a name (e.g. FarmSize_Model). Call the model name to inspect the intercept and slope of the regression model. Verify the answers in your manual calculation. (2). Use the correct function to...
Using the R script, answer the following questions. Please show all works for full credit. 1....
Using the R script, answer the following questions. Please show all works for full credit. 1. Suppose you invest $150,000 into your mutual fund account on January 1st, 2019. a) [5 points] What would the account balance be at the end of June, 2019 if the account carries a rate of return of 2% every month? b) [5 points] If you earn a 4% return in July and a 5% return in August, 2019, what would the account balance be...
PLEASE SHOW THE CALCULATOR INPUTS for the below work: Woods Company is considering the purchase of...
PLEASE SHOW THE CALCULATOR INPUTS for the below work: Woods Company is considering the purchase of some equipment. The initial investment will be $100,000. The estimated useful life of the equipment will be 5 years, at which point it will have a zero terminal salvage value. The annual savings in cash operating costs will equal $19,000, and the company has a minimum desired rate of return of 12%. Use straight-line depreciation and ignore income taxes. Compute: a. Net Present Value...
Please show r-code used to get answers state sat takers income years public expend rank Iowa...
Please show r-code used to get answers state sat takers income years public expend rank Iowa 1088 3 326 16.79 87.8 25.60 89.7 SouthDakota 1075 2 264 16.07 86.2 19.95 90.6 NorthDakota 1068 3 317 16.57 88.3 20.62 89.8 Kansas 1045 5 338 16.30 83.9 27.14 86.3 Nebraska 1045 5 293 17.25 83.6 21.05 88.5 Montana 1033 8 263 15.91 93.7 29.48 86.4 Minnesota 1028 7 343 17.41 78.3 24.84 83.4 Utah 1022 4 333 16.57 75.2 17.42 85.9 Wyoming...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT