EXAMPLE
QuantumLeap IT is a mid-sized technology firm specializing in software development and IT consulting services. The company has been experiencing steady growth over the past few years, but recent economic challenges have prompted the management team to implement cost-cutting measures to maintain profitability and ensure long-term sustainability.
To evaluate the effectiveness of these cost-cutting measures, the finance department at QuantumLeap IT has decided to analyze the monthly expenses before and after the implementation of the measures. The goal is to determine whether the new measures have significantly reduced the company’s expenses.
The finance team collected monthly expense data for a sample of 50 expenses from several departments within the company. The data includes expenses for six months before the cost-cutting measures were implemented and six months after.
As the data analyst for QuantumLeap IT, you will perform a two-sample left-tailed hypothesis test to compare the average expenses before and after the cost-cutting measures.
Step 1: State the Hypotheses
- H₀:
(mean expenses before and after the cost-cutting measures are the same)
- H₁:
(mean expenses after the cost-cutting measures are lower than the average expenses before)
Step 2: Gather the Data
Expense data was randomly sampled for 50 different expenses from several different departments across the company before and after the cost-cutting measures were put in place. The data is in the Excel file named
expenses_before_after_cost_cutting.xlsx.
Step 3: Choose a Significance Level
Use a level of significance,
Step 4: Check for Equal Variances
You test the following in Excel:
- H₀:
(variances in the expense data before and after the cost-cutting measure are equal)
- H₁:
(variances in the expense data before and after the cost-cutting measure are not equal)
To perform the equality of variances test in Excel using the
expenses_before_after_cost_cutting.xlsx file, perform the following:
1. Select
F-Test Two Sample for Variances in the
XL Miner Analysis Toolpak. The dialog box opens.
2. Place your cursor in the
Variable 1 Range: box and select the data in column A.
3. Place your cursor in the
Variable 2 Range: box and select the data in column B.
4. Place your cursor in the
Output Range: box, select cell D2 in the Excel worksheet, and select
OK.
From Excel, you obtain the following output. In cell E13, you can enter =2*E10 to obtain the 2-sided p-value for this test. This p-value (0.2866) is greater than the level of significance of 0.05, so you fail to reject the null hypothesis.
This result means there is not enough evidence to conclude that the variances of the expenses before and after the cost-cutting implementation are different. In other words, the variances are considered equal for the purposes of selecting the appropriate two-sample t-test.
For the two-sample hypothesis test, you will select the
t-Test: Two-Sample Assuming Equal Variances option in
XL Miner.
Step 5: Perform a Statistical Test
You will now use the
XL Miner Analysis Toolpak to find the p-value for this two-sample hypothesis test (left-tailed) using the data in the
expenses_before_after_cost_cutting.xlsx Excel file.
1. Select
t-Test: Two-Sample Assuming Equal Variance in the
XL Miner Analysis Toolpak. The dialog box opens.
2. Place your cursor in the
Variable 1 Range: box and select the data in column B.
3. Place your cursor in the
Variable 2 Range: box and select the data in column A.
4. Enter 0 in the
Hypothesized Mean Difference: box.
5. Place your cursor in the
Output Range: box, select cell D16 in the Excel worksheet, and select
OK.
Notice in the dialog box above that the column in the
Variable 1 Range specifies the data related to the sales after the marketing strategy was implemented,
After_Expenses. Once again, the options you select for the
Variable 1 and
Variable 2 boxes in the t-test dialog box are crucial, because they directly determine the direction of your hypothesis test using the directional math operator in your alternative hypothesis.
The alternative hypothesis is:
H₁:
To set this alternative hypothesis up correctly in the t-test dialog box:
-
Variable 1 Range: Select the range for After_Expenses (cells B2:B51).
-
Variable 2 Range: Select the range for Before_Expenses (cells A2:A51).
By correctly setting the
Variable 1 and
Variable 2 ranges, you ensure that the test is aligned with your alternative hypothesis and that the results will accurately reflect whether the expenses after the cost-cutting measures are implemented are significantly less than the expenses before (Wright, n.d.).
Just like with the right-tailed test in the previous tutorial, the key is to make sure that whatever group is on the left-hand side of the mathematical operator in the alternative hypothesis is the group that is specified in the
Variable 1 Range box.
The
Hypothesized Mean Difference: option is usually set to 0. This option directly relates to the null hypothesis.
The null hypothesis is:
H₀:
It means we start by assuming there is no difference between the expenses before and after the cost-cutting measures. Another way to specify this is to say that the difference between the means of the two groups is zero. Subtract

from both sides of the equation to obtain H₀:

which we test against the alternative hypothesis that the expenses after the cost-cutting measures are less than the expenses before.
You will obtain the following output in your Excel worksheet. If the test statistic (row labeled
t Stat) is negative, then the row labeled
P(T<=T) one-tail is the left-tailed p-value. The p-value for this two-sample hypothesis test is 0.1698.
Below is a table to help you calculate the p-value for a left-tailed test based on the sign of the test statistic using the
P(T <= t) one-tail output from the
XL Miner Analysis ToolPak (Wright, n.d.):
|
Test Statistic
|
P(T<=t) one tail
|
Left-Tailed p-value Calculation
|
|
Positive
|
p
|
1-p
|
|
Negative
|
p
|
p
|
-
Positive Test Statistic: If the test statistic is positive, you need to subtract the P(T <= t) one-tail value from 1 to get the left-tailed p-value.
-
Negative Test Statistic: If the test statistic is negative, the P(T <= t) one-tail value is already the p-value for the left-tailed test.
Step 6: Make a Decision
Since the p-value

(level of significance), you fail to reject the null hypothesis.
Step 7: Interpret the Results
Since the p-value (0.1698) is greater than the significance level (0.05), you fail to reject the null hypothesis. This means there is not enough statistical evidence to conclude that the cost-cutting measures have significantly reduced the company’s expenses.
In practical terms, for QuantumLeap IT, this result suggests that the cost-cutting measures implemented by the management team have not led to a statistically significant reduction in monthly expenses. The company may need to reassess these measures or consider additional strategies to achieve the desired cost savings.
The finance team may need to adjust future budgets and forecasts, considering that the expected savings from the cost-cutting measures were not realized. This could impact financial planning and resource allocation.
The results can inform broader strategic decisions. For instance, QuantumLeap IT might consider diversifying its services or entering new markets to boost revenue instead of focusing solely on cost reduction.