I have some data samples collected about the weight loss (in pounds) for a set of 27 persons:
[1] 12 5 9 0 18 7 0 14 1 14 0 0 13 11 11 8 10 13 13 6 0 14 0 10 1
[26] 10 4
I would like to apply hypothesis testing in this case, and because I am a newbie in this thing I found some information in this link:
http://statistics.about.com/od/Inferential-Statistics/a/An-Example-Of-A-Hypothesis-Test.htm
The hypothesis that I made at the beginning of the trials was that less of the 50% of the individuals tested will lose more than 10 pounds. As we can see from the data only approximately 37% of the persons under study reached that quantity (lose more than 10 pounds)
I have made some plots to check if my data falls into the normal distribution:
density(n);
plot(density(n))
which gives me this plot:
but when I use the log data I got this:
plot(density(log(n)))
For what I see is skewed to the right. I tried to use qqplot and these are the results:
qqnorm(n);qqline(n)
My hypothesis are the following:
Alternative hypothesis: Less than 50% of the persons in our study will have a weight loss of 11 or more pounds:
x>10
Null hypothesis: More than 50 of the persons in our study will have a weight loss below 11 pounds:
x<=10
I will be using an alpha value of 0.05, and I have calculated the standard error:
std<-function(n) sd(n)/sqrt(length(n))
I got the value of:
1.091711
According to the link what I should do is:
number of people that lose more than 10 pounds=10
number of people that failed=17
(17-10)/1.091711=6.41
at this point I am stucked, is it ok the analysis I made so far? and how I can finish it to see if I should reject or not the null hypothesis?