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
Question 3 For this question, you are going to use input and output redirection. Using only...
Question 3 For this question, you are going to use input and output redirection. Using only the wc command and file redirection, determine the number of lines used in file /var/access.log, and write your result to a file named "q3" Note, for full credit, you will want to use file redirection to send /var/access.log to Standard In of the wc command, rather than telling wc to open the file itself Question 4 Use the method found in Question 2 (echo...
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...
c++ Program Description You are going to write a computer program/prototype to process mail packages that...
c++ Program Description You are going to write a computer program/prototype to process mail packages that are sent to different cities. For each destination city, a destination object is set up with the name of the city, the count of packages to the city and the total weight of all the packages. The destination object is updated periodically when new packages are collected. You will maintain a list of destination objects and use commands to process data in the list....
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...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
**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...
urgent please provide 3 multiple choice questions with correct answers. Since the early days of Google,...
urgent please provide 3 multiple choice questions with correct answers. Since the early days of Google, people throughout the company have ques- tioned the value of managers. That skepticism stems from a highly techno- cratic culture. As one software engineer, Eric Flatt, puts it, “We are a company built by engi- neers for engineers.” And most engineers, not just those at Google, want to spend their time designing and debugging, not communicating with bosses or supervising other workers’ progress. In...