Question

HELP ME WITH THIS STATISTICS QUESTION, DONE IIN R PROGRAMMING.

A quality control engineer developed a control chart to maintain the weights of family size ketchup bottle (desired populatio

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

(a). We shall use a sign test to test whether the sample is random with median 68 oz. If the sample is really random, then half of the values have to be above and half will be below median. We shall then check the numbers and for the significance using a binomial probability.

The R program and the output is given belwo:

x=c(68.2,71.6,69.3,71.6,70.4,65,63.6,64.7,65.3,64.2,67.6,68.6,66.8,67.9,66.7,70.1)
> m0=68
> sp=length(x[x>m0])
> sn=length(x[x<m0])
> n=sp+sn
> pv=pbinom(sp,n,0.5)
> sp
[1] 7
> pv
[1] 0.4018097
> n
[1] 16
>

The test statistic is S+=7, which is the number of observations above median out of n=16.

The p-value of the test is 0.4018>0.05, we fail to reject the null hypothesis. Hence, we conclude that the data is random.

(b). The r-code for testing the following Hypothesis:

H_{0}:M_{D}=68

H_{1}:M_{D}<68 where M_{D} is the median.

The output from r is given belwo:

> wilcox.test(x,alter="less",mu=68)

Wilcoxon signed rank test with continuity correction

data: x
V = 56.5, p-value = 0.2847
alternative hypothesis: true location is less than 68

Warning message:
In wilcox.test.default(x, alter = "less", mu = 68) :
cannot compute exact p-value with ties
The p-value is 0.2847 for an one sided alternative. Since the p-value>0.05, we fail to reject the null hypothesis. Hence, we conclude that there is not enough evidence to claim that the median score of the sampled population is less than 68.

(c). The following assumptions are needed:

1. The data is independent

2. The distribution of values are approximately symmetrical.

Add a comment
Know the answer?
Add Answer to:
HELP ME WITH THIS STATISTICS QUESTION, DONE IIN R PROGRAMMING. A quality control engineer developed a...
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
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
ADVERTISEMENT