Independent Samples Hypothesis Test
This tutorial explains how to use the Data Analysis Toolpak in Excel to test for a difference between two independent sample means. It explains how to set up the problem and interpret the output. The tutorial shows the procedure for testing two means when the variances of the two samples is considered equal. However, as you will see the samples sizes are quite different and while the variances were tested for equality, it is common to consider them unequal when the sample size difference is large. The procedure and interpretation of output is the same whether the variances are considered equal or not; the only difference is in the degrees of freedom where situations involving unequal variances generally have fewer degrees of freedom. With fewer degrees of freedom the null hypothesis will be somewhat harder to reject.
Updated Example: U.S. vs U.K. Stock Returns
This newer walkthrough tests whether average stock market returns in the U.S. and the U.K. differ, using the same Toolpak test on a practical finance example.
- Writing the null and alternative hypotheses for independent samples
- Checking the assumptions behind the test
- Calculating sample means and variances
- Deciding between the equal and unequal variance versions of the test
- Running t-Test: Two-Sample Assuming Equal Variances in the Data Analysis Toolpak
- Degrees of freedom
- Reading the t Stat, critical values and p-value, and what the result means for diversification
Original Tutorial
- Enabling the Analysis Toolpak
- Setting up data for an independent samples test
- Running the t-test assuming equal variances
- Interpreting t Stat against t Critical
- Understanding p-values and sampling error
For a quicker check without the Toolpak, Excel's T.TEST function returns the p-value directly: see the T.TEST function tutorial.
Advertisement