HELP ME WITH THIS STATISTICS QUESTION, DONE IIN R PROGRAMMING.
(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:
where 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.
HELP ME WITH THIS STATISTICS QUESTION, DONE IIN R PROGRAMMING. A quality control engineer developed a...
A quality control engineer developed a control chart to maintain the weights of family size ketchup bottle (desired population median weight is 68 oz). Weights (in ounces) of 16 bottles taken at randomly selected times from the production process are as follows (data displayed in order of time of the selection): 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 (a) (3 points) Do the data provide any evidence to conclude that the sample is not a...
A quality control chart has been maintained for the weights of paint cans taken from a conveyor belt at a fixed point in a production line. Sixteen (16) weights obtained today, in order of time, are as follows: Use the run test, at approximately a 0.01 level, to determine whether the weights of the paint cans on the conveyor belt deviate from randomness. Show your steps. If using a program, use R. 64.7 32 1693150 ,MI 653 642 GYS, 68S,...
2 62.8 MEAN = 3 71.9 MEDIAN = 4 69.6 MODE= 5 74.1 RANGE = 6 66.6 MIN. = 7 76.5 MAX.= 8 66.4 STDEV. = 9 73.1 MY HEIGHT =67.00 10 71.6 Z SCORE FOR MY HEIGHT = 11 69.3 12 64.0 13 70.9 14 62.2 15 63.3 16 67.7 17 65.2 18 64.2 19 69.4 20 71.7 21 64.6 22 69.0 23 71.3 24 69.1 25 71.6 26 75.9 27 66.2 28 67.4 29 64.6 30 69.6 31...