I have a vector with 385 numbers ranging from 2000 to 5200 and I am asked to test whether the mean is greater than 5500. I tried this:
t.test(tabla2$`Precio max`, y = NULL, alternative="g", mu=5500,paired = FALSE, conf.level=0.95)
and the result is:
One Sample t-test
data: tabla2$`Precio max`
t = -75.692, df = 384, p-value = 1
alternative hypothesis: true mean is greater than 5500
95 percent confidence interval:
3471.847 Inf
sample estimates:
mean of x
3515.086
I am not sure if I am doing this right or my understanding of the Hypothesis test is wrong. As far as I know, the p-value is greater than the significance level (0.05) therefore I should accept the Null Hypothesis, but the Null hypothesis states that the mean is equal to 5500 which cant be since the list never reaches that value. Can someone help me understand this?