Description Usage Arguments Value Examples
Generate hypothesis test question
1 2 |
type |
Type of test 0: Left tail, 1: Right tail, 2: Two tailed |
level |
Level of test. Must be great than 0 and less than 0.5 |
Xbar |
Sample mean |
sigma |
Sample standard deviation |
n |
Sample size |
mu_0 |
What mu equals under null hypothesis |
a vector with first element as question, second element as correct answer, and other elements as other answer choices.
1 2 3 4 5 6 7 8 9 | makeQA_HypothesisTest(type = 0)
"H_0: mu = 4.4; H_a = mu < 4.4. You take 43 samples and find that the sample mean is 4.312. The sample standard deviation is 1.9. Do you reject the null hypothesis at the 0.05 level?"
"yes"
"no"
makeQA_HypothesisTest(type = 1)
"H_0: mu = 7; H_a = mu > 7. You take 65 samples and find that the sample mean is 7.109. The sample standard deviation is 4.2. Do you reject the null hypothesis at the 0.05 level?"
"no"
"yes"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.