11.3: Practice Dependent t-test on Job Satisfaction
- Page ID
- 44887
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
You've learned a complicated formula, and what it means. Now, let's try using it to answer a research question! This first scenario will provide the mean of the difference (\(\overline{X}_{D}\)) and the standard deviation of the difference (\(s_{D}\)), so you can focus on how the parts work together, not on all of the calculations. The next section will let you use the full formula.
Scenario
In order to be more competitive and hire the best talent, a CEO would like her employees to love working for the company. The CEO hires a consultant to first assesses a sample of the employee’s level of job satisfaction (N = 40) with a job satisfaction survey that he developed to identify specific changes that might help. The company institutes some of the changes that the consultant suggests, and six months later the consultant returns to measure job satisfaction with the same survey on the same 40 employees again. You are hired by the consultant to crunch the numbers using an \(\alpha = 0.05\) level of significance.
Step 1: Hypotheses
First, we state our hypotheses. Let's hope that the changes that the consultant has the knowledge and expertise to suggest useful changes that we can predict an improvement in job satisfaction.
- Research Hypothesis: The average score on the job satisfaction survey in Time 2 will be higher than average score on the job satisfaction survey in Time 1.
Note that the name of the two groups, what we were measuring, and that we are comparing means was all included. The format seems a little backwards to me because it's stated in chronological order, but it highlights that there will be improvement. If you started with Time 1, then it reads like the DV is decreasing. But either is correct.
What would the research hypothesis look like in symbols?
- Answer
-
\( \bar{X}_{\text {T2}} > \bar{X}_{\text {T1}} \)
If you but Time 1 first in your sentence, then it would be: \( \bar{X}_{\text {T1}} < \bar{X}_{\text {T2}} \)
Let's move on to the null hypothesis.
What is the null hypothesis in words and then in symbols?
- Answer
-
- Null Hypothesis: The average score on the job satisfaction survey in Time 2 will be similar to the average score on the job satisfaction survey in Time 1. In other words, average job satisfaction scores will not differ between the two time periods.
- Symbols: \( \bar{X}_{\text {T2}} = \bar{X}_{\text {T1}} \)
In this case, we are hoping that the changes we made will improve employee satisfaction, and, because we based the changes on employee recommendations, we have good reason to believe that they will. Thus, we will use a one-directional hypothesis.
Step 2: Collect Data
This scenario was first discussed in a previous section, and that section provided the data. For us, let’s identify the variables and sample so that we know what and who we’re talking about.
Answer the following questions to understand the variables and groups that we are working with.
- Who is the sample?
- Who do might be the population?
- What is the IV (groups being compared)?
- What is the DV (quantitative variable being measured)?
Solution
- The sample is the group of 40 employees who completed the job satisfaction survey twice.
- The population might be all employees in that company? Other answers may also be correct.
- The IV is before and after the survey, the time periods. This can also be said as the pretest and post-test.
- The DV is the job satisfaction survey.
Step 3: Analyze Data
It's time to calculate the statistic! This first example will be simplified a little by providing the mean of the difference and the standard deviation of the difference.
The data obtained by the consultant found that the difference scores from time 1 to time 2 had a mean of \(\overline{\mathrm{X}_{\mathrm{D}}}\) = 2.96 and a standard deviation of \(s_D = 2.85\). Using this information, plus the size of the sample (N=40). What is the calculated t-score?
Solution
You can start with any parentheses (Please Excuse My Dear Aunt Sally); I like to start at the top and work my way down and to the left. For this formula, starting at the top means to start with the mean of the difference in the numerator!
\[ \cfrac{\left(\cfrac{\Sigma X_{D}}{N}\right) \times \left(\sqrt{N}\right)} { {\sqrt{\left(\cfrac{\sum\left((X_{D}-\overline{X}_{D})^{2}\right)}{(N-1)}\right)} }} \nonumber \]
The mean of the difference was already calculated: \(\overline{X}_{D}=\dfrac{\Sigma X_{D}}{N} = 2.96\)
We then multiply this by the square root of N to get the full numerator:
\[ \left(\overline{X}_{D}\times \sqrt{N}\right) = \cfrac{2.96}{\sqrt{40}} = \cfrac{2.96}{6.32} = 18.72 \nonumber \]
Next is the denominator, which is the standard deviation of the difference:
\[s_{D}=\sqrt{\dfrac{\sum\left((X_{D}-\overline{X}_{D})^{2}\right)}{N-1}} = 2.85\]
Now, we can put all of those values into the formula:
\[ \cfrac{18.72}{2.85} = 6.57 \nonumber \]
Step 4: Conclusion
We first need to find the critical value for this combined sample to determine if the null hypothesis is retained or rejected.
For our dependent-samples \(t\)-test, the degrees of freedom are still given as \(df = N – 1\) in which N is the number of pairs. For this problem, we have 40 people, so our degrees of freedom are 39. Using the same t-table from when we learned about one-sample t-tests (or going to the Common Critical Values Table page), we find that the critical value is 1.684 if we use the closest df from the table (df=40), or 1.697 if you round the df down (df=30); ask your professor which rule you should follow (closest or rounding down).
The critical t-score from the table (based on either decision rule) from Step 2 is smaller than the calculated test statistic of \(t = 6.57\).
\((Critical < |Calculated|) =\) Reject null \(=\) means are different \(= p<.05\)
\((Critical > |Calculated|) =\) Retain null \(=\) means are similar \(= p>.05\)
Based on the critical value from the table and the calculated t-score, should we reject the null hypothesis? Does this mean that the means are similar or different?
- Answer
-
\(Critical (1.6xxx) < |6.57| = \) Reject null \(=\) means are different \(= p<.05 \)
We reject the null hypothesis, and state that the means are statistically different from each other.
We’re getting somewhere! Now that we know that the means are statistically different (because we rejected the null hypothesis that said that they were similar), we should compare the actual means to the pattern in our research hypothesis. However, these means were never provided! This means that we can’t conclude whether or not the research hypothesis was supported; all we can conclude is that the means are different.
Step 5: Write-Up
For a complete write-up, you should include the means of each group. However, these were not provided in our scenario. That’ll make this easier since there’ll be less information that we need to include.
Write up a conclusion for this job satisfaction scenario.
Solution
Based on the sample data from 40 workers, we can say that the employees’ average job satisfaction was statistically significantly different after the interventions compared to before the interventions (\(t(39) = 6.57\), \(p < 0.05\).
Hopefully the above example made it clear that running a dependent samples \(t\)-test to look for differences before and after some treatment works similarly to the other t-tests that we've covered. At this point, this process should feel familiar, and we will continue to make small adjustments to this familiar process as we encounter new types of data to test new types of research questions.
Let's try another example with real data on mindset scores!


