<p>Yes you should definitely test for whether the difference is statistically significant if your are going down the subsampling road instead of using interaction variables. That is you should test for the difference if you care about quality of your work. If you do not care about quality of an output (maybe its for a course where you just want a passing grade) of course you can skip it, but quality of research and conclusions you can draw from it will suffer.</p>
<p>The reason why it is important to test for whether the difference is statistically significant is that when you split sample into subsample of course there will be some differences in the estimated <span class="math-container">$\hat{\beta}$</span> just purely due to random chance.</p>
<p>For example, if in subsample A you estimate <span class="math-container">$\hat{\beta}_{iA}=4$</span> and in subsample B you estimate <span class="math-container">$\hat{\beta}_{iB}=4.5$</span> you cannot automatically claim that in subsample B the effect is truly larger by 0.5. It might be the 0.5 difference can be attributed fully to random chance.</p>
<p>In order to see if the difference is really significant you should use some test to test <span class="math-container">$H_0: \hat{\beta}_{iA}- \hat{\beta}_{iB} = 0$</span> against alternative that the difference is non-zero. Appropriate test will depend on specific of your research, <span class="math-container">$t$</span>-test and <span class="math-container">$\chi^2$</span> tests are common but not only tests that can be used.</p>

CC BY-SA 4.0
2022-03-30T20:21:01.293Z
2022-03-30T20:21:01.293Z
1muflon1
<p>In many articles before running a regression authors do T-test or Chi-square test to check if there’s a significant difference between the variables in 2 subsamples. In my case variable of interest - long working hours, so should I do these tests on subsamples: people working long hours and not doing this? I don’t understand why I need this if I run a regression afterwards. Why people usually do tests?</p>

<econometrics><regression><statistics><logit><demography>
Should I do Chi-square or T-test before running a regression?
Daria
# Should I do Chi-square or T-test before running a regression?

(Asked by: username_0 on 2022-03-30)

In many articles before running a regression authors do T-test or Chi-square test to check if there’s a significant difference between the variables in 2 subsamples. In my case variable of interest - long working hours, so should I do these tests on subsamples: people working long hours and not doing this? I don’t understand why I need this if I run a regression afterwards. Why people usually do tests?

**Tags:** econometrics, regression, statistics, logit, demography


---

## 1 answers

### Answer by username_1 on 2022-03-30. Score: 1 | Accepted answer

Yes you should definitely test for whether the difference is statistically significant if your are going down the subsampling road instead of using interaction variables. That is you should test for the difference if you care about quality of your work. If you do not care about quality of an output (maybe its for a course where you just want a passing grade) of course you can skip it, but quality of research and conclusions you can draw from it will suffer.

The reason why it is important to test for whether the difference is statistically significant is that when you split sample into subsample of course there will be some differences in the estimated $\hat{\beta}$ just purely due to random chance.

For example, if in subsample A you estimate $\hat{\beta}\_{iA}=4$ and in subsample B you estimate $\hat{\beta}\_{iB}=4.5$ you cannot automatically claim that in subsample B the effect is truly larger by 0.5. It might be the 0.5 difference can be attributed fully to random chance.

In order to see if the difference is really significant you should use some test to test $H\_0: \hat{\beta}\_{iA}- \hat{\beta}\_{iB} = 0$ against alternative that the difference is non-zero. Appropriate test will depend on specific of your research, $t$-test and $\chi^2$ tests are common but not only tests that can be used.


---

