REF:
Https://onlinecourses.science.psu.edu/stat464/print/book/export/html/3
The binomial distribution in R:
# return PMF. Prob is the probability of success. X can be a listdbinom (x, size, prob) # cdfpbinom (x, size, prob) # Returns a value for a particular percentileqbinom
The Normal distribution in R:
# pdfdnorm (x, mean, SD) # cdfpnorm# Percentileqnorm
To perform t-test or to view the confidence interval, you can do this by setting the value of the data, α.
> X=c (6, 9, 6, 1, 8, 7, 1, 9,) > T.tes, and so on, at ten. T (x, conf.level=0.95) one Sample t-testdata: x t = 9.0705, df = +, P-value = 2.473e-08alternative Hypothesis:tru e mean is not equal to 0 percent confidence interval: 8.26943 13.23057 Sample Estimates:mean of x 10.75
If you are doing a hypothesis test, you need to set μ0 and alternative assumptions.
> t.test (x, alternative= "less", mu=10)
View results:
The P-value is much greater than 0.05, so the original hypothesis cannot be rejected.
Applied Nonparametric STATISTICS-LEC2