A t-test is used to compare the means of two groups to see if they are significantly different from each other.
Click to reveal answer
beginner
What are the two main types of t-tests?
The two main types are: 1) Independent (two-sample) t-test, which compares means from two different groups, and 2) Paired t-test, which compares means from the same group at different times or conditions.
Click to reveal answer
beginner
In R, which function is used to perform a t-test?
The function t.test() is used to perform a t-test in R.
Click to reveal answer
beginner
What does the p-value from a t-test tell you?
The p-value tells you the probability that the observed difference between groups happened by chance. A small p-value (usually less than 0.05) means the difference is statistically significant.
Click to reveal answer
beginner
How do you specify a paired t-test in R using t.test()?
You set the argument paired = TRUE inside t.test() to perform a paired t-test.
Click to reveal answer
Which R function is used to perform a t-test?
Alm()
Bt.test()
Csummary()
Dmean()
✗ Incorrect
The t.test() function is specifically designed to perform t-tests in R.
What does a p-value less than 0.05 usually mean in a t-test?
AThe difference between groups is statistically significant
BThe sample size is too small
CThe test was performed incorrectly
DThe difference between groups is likely due to chance
✗ Incorrect
A p-value less than 0.05 usually means the difference is statistically significant, not likely due to chance.
Which argument in t.test() makes it a paired t-test?
Atype = 'paired'
Bpaired = FALSE
Cpaired = TRUE
Dmethod = 'paired'
✗ Incorrect
Setting paired = TRUE tells R to perform a paired t-test.
An independent t-test compares:
AMeans from the same group at two times
BVariances of two groups
CMedian values of two groups
DMeans from two different groups
✗ Incorrect
An independent t-test compares means from two different groups.
Which assumption is important for a t-test?
AData should be normally distributed
BData must be categorical
CGroups must have the same number of observations
DData must be binary
✗ Incorrect
A key assumption for t-tests is that the data in each group should be approximately normally distributed.
Explain what a t-test is and when you would use it.
Think about checking if two groups are really different or just by chance.
You got /4 concepts.
Describe how to perform a paired t-test in R and what it means.
Consider situations like measuring before and after treatment on the same people.
You got /5 concepts.
Practice
(1/5)
1.
What does a t-test primarily compare in two groups?
easy
A. The difference between their medians
B. The difference between their averages
C. The total number of observations
D. The variance of each group
Solution
Step 1: Understand the purpose of a t-test
A t-test is used to compare the means (averages) of two groups to see if they are different.
Step 2: Identify what is compared
The test focuses on the average values, not medians, counts, or variances.
Final Answer:
The difference between their averages -> Option B
Quick Check:
t-test compares means = A [OK]
Hint: Remember: t-test checks averages, not medians or counts [OK]
Common Mistakes:
Confusing mean with median
Thinking it compares counts
Assuming it compares variances
2.
Which of the following is the correct way to run a t-test in R comparing two numeric vectors x and y?
easy
A. t_test(x, y)
B. ttest(x, y)
C. t.test(x, y)
D. test.t(x, y)
Solution
Step 1: Recall the correct function name in R
The built-in function for t-test in R is t.test().
Step 2: Check the syntax for comparing two vectors
Using t.test(x, y) compares the two numeric vectors correctly.
Final Answer:
t.test(x, y) -> Option C
Quick Check:
Correct function is t.test() = A [OK]
Hint: Use exact function name t.test() with dot [OK]