Question

mathematical statistics use RStudio program to write a code

# Download the datas et Nile rm(list-1s)) 1ibrary(help datasets) data(Nile view (Nile) # Find the mean and sd of the data

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#Download the datset Nile
rm(list=ls())
library(help= "datasets")
data("Nile")
View(Nile)

Mean<-mean(Nile)
Standard_Deviation<-sd(Nile)

# Solution of Problem 1
n<-length(Nile)

mu=1000

Standard_Deviation1<-(n-1)*Standard_Deviation/n
T_KNOWN=(Mean-mu)/sqrt(Standard_Deviation1/n)

##OUTPUT as follows

> T_KNOWN
[1] -62.30908
# conclusion
# calculated |t|= 62.3 > tabulated t=1.29 for 100 df at 10% level of significance and our null hypothesis is rejected

# Solution of Problem 2

# H0: mu >1000
#one sided 90% confidence interval for mu

t.test(Nile, mu=1000, alternative="greater", conf.level=0.90)

#OUTPUT AS follows

One Sample t-test

data: Nile
t = -4.7658, df = 99, p-value = 1
alternative hypothesis: true mean is greater than 1000
90 percent confidence interval:
897.5169 Inf
sample estimates:
mean of x
919.35

# conclusion

# calculated |t|= 4.7 > tabulated t=1.29 for 99 df at 10% level of significance and our null hypothesis is rejected

Add a comment
Know the answer?
Add Answer to:
mathematical statistics use RStudio program to write a code # Download the datas et Nile rm(list-1s))...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • # Download the dataset Nile rm(list=ls()) library(help = "datasets") data("Nile") View(Nile) # Fi...

    # Download the dataset Nile rm(list=ls()) library(help = "datasets") data("Nile") View(Nile) # Find the mean and sd of the data. It has only one variable. # Find out the 90% confidence interval for the population mean mu for the dataset Nile, assuming that the # population sd is known and is same as the sample sd. (50 points) # Repeat the same exercise assuming that the population sd is not known. (50 points). # Show all the necessary steps in...

  • 1. Many companies use a incoming shipments of parts, raw materials, and so on. In the...

    1. Many companies use a incoming shipments of parts, raw materials, and so on. In the electronics industry, component parts are commonly shipped from suppliers in large lots. Inspection of a sample of n components can be viewed as the n trials of a binomial experimem. The outcome for each component tested (trialD will be that the component is classified as good or defective defective components in the lot do not exceed 1 %. Suppose a random sample of fiver...

  • Name: Section Number To be graded assignments must be completed and submitted on the original book...

    Name: Section Number To be graded assignments must be completed and submitted on the original book page Hypothesis Testing -As a Diagnostic Test ? Answer the following questions over the content material you just read or watched. 1. What is a false positive rate in the context of hypothesis testing? 2. What is the goal of hypothesis testing? 3. What is a Type I error, and how is it related to an "alpha level?" 4. What does it mean to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT