Question

CAN ANYONE SOLVE THIS BY USING R ? CAN YOU PLEASE NOT USE the (CORRECT=F FUNCTION)...

CAN ANYONE SOLVE THIS BY USING R ? CAN YOU PLEASE NOT USE the (CORRECT=F FUNCTION) WHEN SOLVING PART B, I AM NOT VERY CLEAR WITH THAT.

2) From a random sample of 673 items made by a particular manufacturing process, it is found that 27 are defective.

(a) (1 mark) Find a 99.5% confidence interval for the proportion of defective items made by the process. (Also include the commands and output.)

(b) (1 mark) Give the command and output to test the alternative hypothesis that the proportion of defective items made by the process is greater than than 0.03.

(c) (1 mark) What is the p-value for our test?

(d) (1 mark) What is the strength of evidence we have found against H0?

THANK YOU

Homework Answers

Answer #1

ANSWER:

(a)

Commands:

X<-27
> n<-673
> p_hat <- X/n
> variance_of_p_hat <- p_hat*(1-p_hat)/n
> standard_deviation_of_p_hat <- sqrt(variance_of_p_hat)
> zcrit<-qnorm(0.9975)
> error <- zcrit*standard_deviation_of_p_hat
> left <- p_hat - error
> right <- p_hat + error

Output :


> variance_of_p_hat
[1] 5.722043e-05
> standard_deviation_of_p_hat
[1] 0.007564418
> p_hat
[1] 0.04011887
> zcrit
[1] 2.807034
> left
[1] 0.01888529
> right
[1] 0.06135245

(b)

Commands :

p0 = 0.03
test_statistic <- (p_hat - p0)/sqrt((p0*(1-p0))/n)

test_statistic

Output :

> test_statistic
[1] 1.538839

(c)

Command :

> p_value<-pnorm(-abs(test_statistic))

Output :

> p_value
[1] 0.06192185

(d)

Strength of evidence = 0.062

Know the answer?
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
Similar Questions
Could you please solve these using r code. 1. A pumpkin farmer weighed a simple random...
Could you please solve these using r code. 1. A pumpkin farmer weighed a simple random sample of size n = 20 pumpkins, with these results: 9.6, 8.8, 5.1, 9.7, 9.1, 8.9, 8, 9.2, 2.7, 9.1, 8.5, 7.3, 9.3, 9.6, 4.1, 9.9, 7.6, 9, 7.2, 8.5 (a) Create a QQ plot of the weights. Do you think it is reasonable to assume that the population distribution is normal? Explain your answer. (b) Regardless of your answer to (a), use R...
of Contract can you please go into detail with for 400 words or more thank you...
of Contract can you please go into detail with for 400 words or more thank you Johnny, a neighbor who is not a merchant under the Uniform Commercial Code, offers to buy a car from Mark for $30,000. Mark asks Johnny for some time to think about it. Johnny says sure. He writes on a piece of paper that he will keep the offer open for two weeks. A week later Johnny sees another car he would rather buy. He...
**please write code with function definition taking in input and use given variable names** for e.g....
**please write code with function definition taking in input and use given variable names** for e.g. List matchNames(List inputNames, List secRecords) Java or Python Please Note:    * The function is expected to return a STRING_ARRAY.      * The function accepts following parameters:      *  1. STRING_ARRAY inputNames      *  2. STRING_ARRAY secRecords      */ Problem Statement Introduction Imagine you are helping the Security Exchange Commission (SEC) respond to anonymous tips. One of the biggest problems the team faces is handling the transcription of the companies reported...
Data Set Preparation (Using A JMP Folder) Can email you if comment your email. 1. (10...
Data Set Preparation (Using A JMP Folder) Can email you if comment your email. 1. (10 pts.) Using the “Toyota Corolla” data set on Canvas (Home à “JMP” à “(Under: JMP Data Sets folder)”, you will be modeling the “Price” of a car as the dependent variable (Y). Please select one independent variable (X) you think may help explain Price, from the following three: “Age”, “Mileage”, or “Weight” of a car. In the space below, state your choice and explain...
Write a Python 3 program called “parse.py” using the template for a Python program that we...
Write a Python 3 program called “parse.py” using the template for a Python program that we covered in this module. Note: Use this mod7.txt input file. Name your output file “output.txt”. Build your program using a main function and at least one other function. Give your input and output file names as command line arguments. Your program will read the input file, and will output the following information to the output file as well as printing it to the screen:...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
You will write a program that loops until the user selects 0 to exit. In the...
You will write a program that loops until the user selects 0 to exit. In the loop the user interactively selects a menu choice to compress or decompress a file. There are three menu options: Option 0: allows the user to exit the program. Option 1: allows the user to compress the specified input file and store the result in an output file. Option 2: allows the user to decompress the specified input file and store the result in an...
Please summarize the below article in approximately 100 words: Monumental function in British Neolithic burial practices...
Please summarize the below article in approximately 100 words: Monumental function in British Neolithic burial practices Ian Kinnes The high-risk rate of survival for the non-megalithic series of Neolithic funerary monuments, recently re-emphasized by Piggott (1973: 34), introduces a further variable into the deductive study of burial practices. In Britain and Europe the overall distribution of monumental forms present both lacunae and a marked preponderance of cairns over earthen mounds which are in ill accord with the known or predicted...
Note:  100% plagiarism in the above paragraph please remove the plagiarism less than 15 % . CHALLENGES...
Note:  100% plagiarism in the above paragraph please remove the plagiarism less than 15 % . CHALLENGES / OPPORTUNITIES One of the major challenges is to change the people’s perspective of PepsiCo as an unhealthy soft drink producer. Due to the link of soft drinks to obesity and diabetes, the new CEO wants to reinvent Pepsi as a healthy food producer rather than a snacks producer. Although this is a good plan for the PepsiCo to consider, people who are used...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT