Assignment 1 –
Simulating Between-Subject and Within-subject t-tests (Due Jan22/24)
Connect to the simulation page (http://www.ruf.rice.edu/~lane/stat_sim/index.html). Select Repeated Measures. Follow the instructions for how to change
the sample size, the mean values, the standard deviation and the value of rho
(the correlation between the two groups).
Then hit Begin and change the values accordingly. For each simulation, place the percent significant values along
with the values used for each simulation in a summary table (you can use the
table provided in ACME). Please answer
ALL questions and type your answers on another sheet. For Parts A-D use the ‘Simulate 5000’
button. For Part E use the ‘Simulate’
button.
Please hand in both your written answers and the summary tables.
1)
Enter the following numbers into the appropriate spaces in the
simulation table.
|
N |
Population Mean A |
Population Mean B |
Rho (rAB) |
Population s.d. |
|
25 |
52 |
60 |
0 |
13 |
Now select between-subjects and select the 5000
Simulations button. Then select
within-subjects and select the button for 5000 Simulations (make sure that
rho = 0). Report the percent
significant for both types of t-tests. What does this tell you about the
relative power of the two tests when there is no correlation between the two
groups?
2)
Now do the same thing (i.e., conduct a between-subjects simulation and a
within-subjects simulation), but for the within-subjects simulation, set rho
at 0.6. What happens to the percent significant? What do these two simulations tell you about the relative power
of the two tests when there is a relationship between the two groups?
3)
Now change the population s.d. from 13 to 10 and repeat what you
did in the question 2 (make sure that rho = 0.6 for the within-subject test). Compare your between-subject result to the
between-subject result of question 2.
Compare the within-subject result to the within-subject result of question
2. What happens to the percent
significant in each case?
4)
Now change the population s.d to 16 and conduct the
simulation. Compare your
between-subject and within-subject results to the comparable results of question
2. What happens to the percent
significant?
5)
Now change the N to 35 and conduct both tests. Make sure that
rho = 0.6 for the within-subject test.
Compare your between-subject and within-subject results to the
comparable results of question 2. What happens to the percent significant?
6)
Change the N to 15 and do the tests. Compare your between-subject and within-subject results to the
comparable results of question 2.
What happens to the percent significant?
7)
Change the Population Mean A to 56 and conduct both a
between-subject and a within-subject simulation. Make sure that rho = 0.6 for the within-subject test. Compare these between-subject and
within-subject results to the comparable results you obtained in question 2. What happens to the percent significant?
8)
Change Population Mean A to 48 and re-do the simulations. What happens to the percent significant for
the between-subject and within-subject simulations relative to the results for question
2?
9)
Enter the following numbers into the simulation table.
|
N |
Population Mean A |
Population Mean B |
Rho (rAB) |
Population s.d. |
|
25 |
48 |
40 |
0 |
11 |
Now select within-subjects and
then hit the ‘Simulate’ button 10 times. You will see a series of lines appear on the grid below, as well
as the t value appear. Observe the
lines and record the t-value for each of the 10 simulations.
10)
Now change the value of rho to 0.9 and hit the ‘Simulate’ button
10 times. Observe what happens to the
lines and record the t-value for each of the 10 simulations.
11)
In general, what happens to the variability of the lines as rho
increases?
12)
In general, what happens to the t-value as rho increases?
13)
What does this tell you about the relationship between rho (r in the
equation) and the value of t?
14)
Enter the following information
into the simulation table.
|
N |
Population Mean A |
Population Mean B |
Rho (rAB) |
Population s.d. |
|
20 |
48 |
40 |
0 |
11 |
Select the between-subjects
button. Hit the ‘Simulate’ button
16 times, recording the t-value, numerator and denominator values, the df and
the critical t value each time.
Place all of this information in the table corresponding to this
question.
Now enter the
following information into the simulation table.
|
N |
Population Mean A |
Population Mean B |
Rho (rAB) |
Population s.d. |
|
20 |
48 |
40 |
0.6 |
11 |
Select the within-subjects
button. Hit the ‘Simulate’ button 16
times, recording the t-value, numerator and denominator, the df and the
critical t-value each time. Place all of this information in the
table corresponding to this question.
(i) Calculate the mean t-value for each type of t-test and provide the appropriate df and critical value for each type of test. Please report these values.
(ii) Calculate the mean numerator and mean denominator for each type of test. Please report these values.
(iii) What do you notice about the mean t-values, df and critical values for the two types of tests?
(iv) What do you notice about the mean numerator and denominator values across the two types of tests?