How It WorksWritersEssay ExamplesSolved AssignmentsReviewsPricing

Statistics · Data analysis

Five-Exercise SPSS Assignment: Paired t-Test, Kruskal-Wallis, Independent t-Test, One-Way ANOVA, Two-Way ANOVA

Complete worked solutions for a multi-part applied statistics assignment covering hypothesis testing, ANOVA, and non-parametric methods

Paired t-testHypothesis testingANOVATwo-sample t-testp-value interpretation
Difficulty 7/10~180 min to solveSolved Jun 2026Donated by students

A worked solution, solved by a subject specialist and checked by an editor. Study the method; never submit it as your own. Our honor code →

Problem & approach

Before you read the solution

This assignment consists of five exercises solved in SPSS, each using a separate dataset to test a different statistical concept.

Exercise 1. A regional manager at Sports Town examines weekly running shoe sales across 37 stores before and after a radio advertising campaign. Test at the 5% level whether the campaign increased sales, reporting the hypotheses, the 95% confidence interval of the mean difference, and an interpretation.

Exercise 2. Twenty-three students are randomly assigned to one of four teaching assistants (Jessica, John, Kate, Sam) and sit a common exam. Run a Kruskal-Wallis test at the 5% level to decide whether mean test scores differ across the four assistants, explaining mean rank and when the test applies.

Exercise 3. Compare the average grades (scale 0 to 10) of 55 Business students at Reykjavik University against 55 at the University of Iceland. Test at the 5% level whether grades differ, choosing the correct test, checking equality of variances with Levene's test, and listing the assumptions.

Exercise 4. A marketing company examines the profits (millions of US dollars) of 30 brands each focusing on Facebook, Instagram, or Snapchat. Test at the 5% level whether mean profits differ across the three platforms, and use post-hoc comparisons to identify which platforms differ.

Exercise 5. An anthropologist tests the "beer goggles effect" with 48 students (24 male, 24 female) given no alcohol, two strong drinks, or four strong drinks. Judges then rate the attractiveness (0 to 100) of each participant's conversation partner. Run a two-way ANOVA at the 5% level for the effects of alcohol and gender and their interaction, and interpret the interaction plot.

Exercise 1 — Paired t-Test on Advertising Campaign Effectiveness

Step 1 — State the hypotheses

  • H0H_0: There is no difference in average sales before and after advertisement in all 37 stores.
  • H1H_1: There is a difference in average sales before and after advertisement in all 37 stores.

Significance level: α=0.05\alpha = 0.05.

Step 2 — Descriptive statistics

StatisticSales BeforeSales After
Mean79.9782.3243
N3737
Std. Deviation0.8973.43231
Std. Error Mean0.1470.56427

Sales before the advertising campaign: Mean = 79.97, Standard Deviation = 0.897

Sales after the advertising campaign: Mean = 82.3243, Standard Deviation = 3.43231

Step 3 — 95% confidence interval of the mean difference

The 95% confidence interval for the mean difference is:

3.53855<μdiff<1.164-3.53855 < \mu_{\text{diff}} < -1.164

Since the entire interval is negative, this suggests sales after the campaign are consistently higher than before (the difference is "after minus before," so a negative interval means "before" was smaller).

Step 4 — Test statistic and decision

The paired t-test statistic is:

t=4.017,df=36,p<0.001t = -4.017, \quad \text{df} = 36, \quad p < 0.001

Since the p-value is less than α=0.05\alpha = 0.05, we reject H0H_0 at the 5% significance level.

Step 5 — Interpretation

By rejecting the null hypothesis, we conclude the test was statistically significant at the 5% level. There is strong evidence that average sales differ before and after the advertisement. Specifically, the positive mean difference (82.32 − 79.97 = 2.35 pairs per week) and the negative confidence interval (which is "before minus after" in SPSS's default pairing order) indicate that the advertising campaign was effective in increasing running shoe sales across the 37 stores.


Exercise 2 — Kruskal-Wallis Test on Teaching Assistant Performance

Step 1 — Kruskal-Wallis test results

StatisticValue
Chi-Square7.307
df3
Asymp. Sig. (p-value)0.063

The Kruskal-Wallis H test statistic is χ2=7.307\chi^2 = 7.307 with 3 degrees of freedom and a corresponding p-value of 0.063.

Decision rule: Since p=0.063>α=0.05p = 0.063 > \alpha = 0.05, the test is statistically insignificant. We fail to reject the null hypothesis at the 5% level.

Conclusion: There is insufficient evidence to conclude that the population mean test scores differ among students assigned to the four teaching assistants (Jessica, John, Kate, and Sam).

Step 2 — Interpretation of mean rank

Teaching AssistantNMean Rank
Jessica510.20
John618.42
Kate69.50
Sam69.58
Total23

The mean rank represents the average rank position of exam scores within each teaching assistant's group after all 23 scores are ranked from lowest to highest. John's group has the highest mean rank (18.42), suggesting his students' scores tend to rank higher, while Kate's group has the lowest (9.50). These values allow comparison of central tendency across groups when distributions are non-normal or ordinal.

Step 3 — When to use Kruskal-Wallis test

Kruskal-Wallis H test is used to compare two or more independent groups on a continuous or ordinal dependent variable when the assumptions for one-way ANOVA are violated. Specifically:

  • The dependent variable is ordinal or continuous but not normally distributed within groups
  • Sample sizes are small or unequal
  • Homogeneity of variance cannot be assumed

It is a non-parametric alternative to one-way ANOVA.

Step 4 — Histograms against normal curve

Histogram of exam scores for Jessica's group (N = 5, mean 73) with a normal curve overlay; the five scores spread evenly from 60 to 85 with one student per bin, so the distribution is flat rather than bell-shaped.

Histogram of exam scores for John's group (N = 6, mean 86) with a normal curve overlay; scores concentrate between 75 and 100, the highest of the four groups, with the tallest bar at 75 to 80.

Histogram of exam scores for Kate's group (N = 6, mean 72) with a normal curve overlay; a roughly bimodal spread with peaks near 65 to 70 and 80 to 85.

Histogram of exam scores for Sam's group (N = 6, mean 72) with a normal curve overlay; scores cluster in the lower-middle range of 60 to 75 and tail off above 75.

Interpretation: Histograms overlaid with normal curves assess whether exam scores within each teaching assistant's group follow a normal distribution. With only 5-6 observations per group, these histograms will appear jagged and may not match the smooth normal curve well. Visible deviations from normality (such as skewness, multiple modes, or outliers) support the decision to use the non-parametric Kruskal-Wallis test rather than parametric one-way ANOVA.


Exercise 3 — Independent t-Test Comparing University Grades

Step 1 — State the hypotheses

  • H0H_0: There is no difference in average grades of Business students at Reykjavik University (RU) and those at University of Iceland (UI).
  • H1H_1: There is a difference in average grades of Business students at Reykjavik University (RU) and those at University of Iceland (UI).

Significance level: α=0.05\alpha = 0.05.

Step 2 — Independent t-test results

The independent samples t-test statistic is:

t=0.873,df=107.5,p=0.384t = 0.873, \quad \text{df} = 107.5, \quad p = 0.384

Since the p-value (0.384) is greater than α=0.05\alpha = 0.05, we fail to reject the null hypothesis at the 5% significance level.

Interpretation: The test is statistically insignificant. There is insufficient evidence to conclude that average grades differ between Business students at Reykjavik University and the University of Iceland.

Step 3 — Levene's test for equality of variances

Levene's test of homogeneity of variance:

F=0.317,p=0.574F = 0.317, \quad p = 0.574

Since p=0.574>0.05p = 0.574 > 0.05, we fail to reject the assumption of equal variances. However, the solution text states "the homogeneity test of variance was violated" and "the two groups have different variance," which contradicts the p-value. The correct interpretation is: the variances are not significantly different (Levene's test is non-significant), so the equal-variance assumption holds.

Step 4 — Assumptions of the independent t-test

  1. Continuous dependent variable: Grades must be measured on an interval or ratio scale (satisfied: grades are 0-10).
  2. Categorical independent variable: The grouping variable (university: RU vs. UI) must be nominal or ordinal with two levels.
  3. Independence of observations: Each student's grade is independent of all others (no repeated measures).
  4. Absence of significant outliers: Extreme values can distort the t-test. Check boxplots or z-scores.
  5. Approximate normality: Grades within each group should be roughly normally distributed, especially with smaller samples. The t-test is robust to moderate violations when sample sizes are equal and large (n = 55 per group is adequate).
  6. Homogeneity of variance: The variance of grades should be similar in both groups. Levene's test checks this assumption.

Exercise 4 — One-Way ANOVA on Social Media Marketing Profits

Step 1 — State the hypotheses

  • H0H_0: All groups (Facebook, Instagram, and Snapchat) have equal mean profits.
  • H1H_1: At least one group (Facebook, Instagram, or Snapchat) has a different mean profit.

Significance level: α=0.05\alpha = 0.05.

Step 2 — Descriptive statistics

Brand (Social Media)Mean Profit ($M)Std. Deviation
Facebook74.36673.41885
Instagram69.10003.13325
Snapchat68.40003.28634

Facebook: Mean = $74.37M, Standard Deviation = $3.42M

Instagram: Mean = $69.10M, Standard Deviation = $3.13M

Snapchat: Mean = $68.40M, Standard Deviation = $3.29M

Step 3 — One-way ANOVA results

SourceSum of SquaresdfMean SquareFSig.
Between Groups638.2892319.14429.637< 0.001
Within Groups936.8678710.769
Total1575.15689

The one-way ANOVA yields:

F(2,87)=29.637,p<0.001F(2, 87) = 29.637, \quad p < 0.001

Since p<0.001<α=0.05p < 0.001 < \alpha = 0.05, the test is statistically significant. We reject the null hypothesis and conclude that at least one group has a different mean profit.

Step 4 — Post-hoc pairwise comparisons (independent t-tests)

The solution performs three independent t-tests to compare each pair. Results:

1. Instagram vs. Snapchat

t(58)=0.844,p=0.402t(58) = 0.844, \quad p = 0.402

Not significant. Instagram and Snapchat have similar mean profits.

2. Facebook vs. Snapchat

t(58)=6.891,p<0.001,Mean Difference=5.97t(58) = 6.891, \quad p < 0.001, \quad \text{Mean Difference} = 5.97

Significant. Facebook has higher mean profit than Snapchat by approximately $5.97M.

3. Facebook vs. Instagram

t(58)=6.220,p<0.001,Mean Difference=5.27t(58) = 6.220, \quad p < 0.001, \quad \text{Mean Difference} = 5.27

Significant. Facebook has higher mean profit than Instagram by approximately $5.27M.

Summary: Facebook differs significantly from both Instagram and Snapchat. Instagram and Snapchat do not differ from each other.

Step 5 — Social media strategy recommendation

Based on the analysis, Facebook is associated with significantly higher brand profits (mean $74.37M) compared to Instagram ($69.10M) and Snapchat ($68.40M). The marketing company should recommend that brands prioritize Facebook for social media marketing efforts. Combining Facebook with either Instagram or Snapchat could diversify reach, but Facebook alone shows the strongest profit performance.


Exercise 5 — Two-Way ANOVA: Beer Goggles Effect with Gender Interaction

Step 1 — State the hypotheses

  • H0H_0: Gender (male or female) and alcohol consumption rate have no connection with attractiveness ratings.
  • H1H_1: Gender (male or female) and/or alcohol consumption rate have a connection with attractiveness ratings.

More precisely, two-way ANOVA tests three null hypotheses:

  1. Main effect of gender: Male and female participants rate attractiveness similarly on average.
  2. Main effect of alcohol: The three alcohol levels (none, 2 drinks, 4 drinks) produce similar attractiveness ratings on average.
  3. Interaction effect: The effect of alcohol on attractiveness does not differ by gender.

Significance level: α=0.05\alpha = 0.05.

Step 2 — Two-way ANOVA table

SourceType III Sum of SquaresdfMean SquareFSig.
Corrected Model5479.16751095.83313.197< 0.001
Intercept163333.3331163333.3331967.025< 0.001
Gender168.7501168.7502.0320.161
Alcohol3332.29221666.14620.065< 0.001
Gender × Alcohol1978.1252989.06211.911< 0.001
Error3487.5004283.036
Total172300.00048
Corrected Total8966.66747

Step 3 — Sum of squares for gender

The sum of squares for gender is 168.750 with 1 degree of freedom.

This value represents the variation in attractiveness ratings attributable to the main effect of gender (male vs. female), independent of alcohol consumption and the interaction.

Step 4 — F-value for alcohol consumption

The F-statistic for alcohol consumption is:

F(2,42)=20.065,p<0.001F(2, 42) = 20.065, \quad p < 0.001

Step 5 — Is alcohol consumption connected with attractiveness?

Yes. The p-value for the alcohol main effect is p<0.001<α=0.05p < 0.001 < \alpha = 0.05, which is statistically significant. We reject the null hypothesis and conclude that alcohol consumption is connected with attractiveness ratings. The level of alcohol consumed (none, 2 drinks, or 4 drinks) significantly affects how attractive participants rate their chat partners.

Step 6 — Are all alcohol groups different from each other?

The solution provides Tukey HSD post-hoc comparisons:

ComparisonMean DifferenceStd. ErrorSig.95% CI
None vs. 2 Drinks−0.943.2220.954[−8.76, 6.89]
None vs. 4 Drinks17.193.222< 0.001[9.36, 25.01]
2 Drinks vs. 4 Drinks18.133.222< 0.001[10.30, 25.95]

Interpretation: The "4 strong drinks" group differs significantly from both "none" and "2 strong drinks" groups (both p<0.001p < 0.001). However, "none" and "2 strong drinks" do not differ from each other (p=0.954p = 0.954). This suggests that moderate alcohol consumption (2 drinks) does not change attractiveness ratings relative to no alcohol, but heavy consumption (4 drinks) significantly decreases the rated attractiveness of chat partners.

Step 7 — Is gender connected with attractiveness?

The F-statistic for gender is:

F(1,42)=2.032,p=0.161F(1, 42) = 2.032, \quad p = 0.161

Since p=0.161>α=0.05p = 0.161 > \alpha = 0.05, the main effect of gender is not statistically significant. We fail to reject the null hypothesis. There is insufficient evidence to conclude that gender (male or female) alone is connected with attractiveness ratings when averaging across all alcohol levels.

Step 8 — Does alcohol have different effects on attractiveness for men and women?

The F-statistic for the gender × alcohol interaction is:

F(2,42)=11.911,p<0.001F(2, 42) = 11.911, \quad p < 0.001

Since p<0.001<α=0.05p < 0.001 < \alpha = 0.05, the interaction is statistically significant. We reject the null hypothesis and conclude that the effect of alcohol on attractiveness differs by gender. In other words, alcohol consumption influences attractiveness ratings differently for male versus female participants.

Step 9 — Interaction plot interpretation

Two-way ANOVA interaction plot of estimated marginal attractiveness by gender (male vs. female) for three alcohol levels: no alcohol, two strong drinks, and four strong drinks. The no-alcohol and two-drink lines slope gently down from male to female, while the four-drink line climbs steeply, so the lines are clearly non-parallel, signalling a gender-by-alcohol interaction.

The interaction plot charts estimated marginal attractiveness for men and women across the three alcohol levels (no alcohol, two strong drinks, four strong drinks). The lines are non-parallel.

Interpretation: In a two-way ANOVA interaction plot, parallel lines indicate no interaction (alcohol affects both genders equally). Non-parallel or crossing lines indicate an interaction. Here, the diverging/crossing pattern confirms that alcohol's impact on perceived attractiveness follows different trajectories for men versus women. For example, one gender might show a steeper decline in attractiveness ratings with increasing alcohol, or the direction of the effect might reverse. The significant interaction (p<0.001p < 0.001) supports this visual evidence: the "beer goggles effect" operates differently depending on participant gender.

Conclusion

This five-exercise assignment demonstrates proficiency in:

  • Paired vs. independent t-tests: Recognizing when observations are correlated (Exercise 1) versus independent (Exercise 3)
  • Parametric vs. non-parametric methods: Choosing Kruskal-Wallis when normality assumptions are questionable (Exercise 2)
  • One-way ANOVA with post-hoc tests: Testing multiple groups and identifying specific mean differences (Exercise 4)
  • Two-way ANOVA with interaction: Simultaneously testing two factors and their combined effect (Exercise 5)

Across all exercises, the critical skill is matching the research design and data characteristics to the appropriate statistical test, then interpreting SPSS output in substantive terms that answer the original research question.

Read with the expert
Difficulty 7/104 techniques6 to watch
DifficultyMulti-part assignment requiring mastery of paired vs. independent t-tests, ANOVA vs. non-parametric alternatives, interaction effects, and post-hoc testing.

Techniques used

  1. Paired t-test
    Exercise 1 compares the same 37 stores before and after an intervention. Paired design requires paired t-test, not independent samples.
  2. Kruskal-Wallis test
    Exercise 2 compares four groups with potentially non-normal distributions (small sample sizes). Kruskal-Wallis is the non-parametric alternative to one-way ANOVA.
  3. Independent t-test
    Exercise 3 compares two independent groups (RU vs. UI students). Independent samples t-test is appropriate when groups are unrelated.
  4. One-way ANOVA
    Exercise 4 compares three independent groups (Facebook, Instagram, Snapchat). ANOVA tests whether at least one mean differs; post-hoc tests identify which pairs differ.

Watch for

  • Using independent t-test instead of paired t-test in Exercise 1. The same stores are measured twice, so observations are not independent.

  • Reporting ANOVA results without post-hoc comparisons in Exercise 4. ANOVA tells you means differ, not which specific pairs differ.

  • Ignoring the interaction term in Exercise 5. The research question explicitly asks whether alcohol's effect differs by gender — that's the interaction.

Expert's notes

A problem like this due soon?

Hand us the dataset and the brief. We'll work it end to end and walk you through every step.

Get a custom solution
Was this solution helpful?

Editor's analysis

The techniques this solution gets right, and the mistakes it avoids.

Techniques used well

Paired t-test. Exercise 1 compares the same 37 stores before and after an intervention. Paired design requires paired t-test, not independent samples.
Kruskal-Wallis test. Exercise 2 compares four groups with potentially non-normal distributions (small sample sizes). Kruskal-Wallis is the non-parametric alternative to one-way ANOVA.
Independent t-test. Exercise 3 compares two independent groups (RU vs. UI students). Independent samples t-test is appropriate when groups are unrelated.
One-way ANOVA. Exercise 4 compares three independent groups (Facebook, Instagram, Snapchat). ANOVA tests whether at least one mean differs; post-hoc tests identify which pairs differ.

Common mistakes it avoids

Using independent t-test instead of paired t-test in Exercise 1. The same stores are measured twice, so observations are not independent.
Reporting ANOVA results without post-hoc comparisons in Exercise 4. ANOVA tells you means differ, not which specific pairs differ.
Ignoring the interaction term in Exercise 5. The research question explicitly asks whether alcohol's effect differs by gender — that's the interaction.
Confusing mean rank in Kruskal-Wallis with actual group means. Mean rank is the average rank position, not the average of the raw scores.
Failing to check Levene's test before interpreting t-test results. Unequal variances require using the adjusted degrees of freedom row in SPSS output.
Writing p-value as 0.000 instead of p < 0.001. SPSS rounds very small p-values to three decimals; report as less than 0.001, not exactly zero.

Stuck on your own dataset? Get it solved.

Original work to your brief and deadline, solved by a specialist and editor-checked, with every step shown the way this one is.

Statistics · Regression analysis6/10

Linear Regression Analysis: NFL Team Current Value vs. Operating Income

A comprehensive regression project analyzing NFL team valuations and operating income. Includes population and sample descriptive statistics, correlation analysis, 95% confidence intervals, and simple linear regression with forecasting. Compares N=32 population to n=11 random sample.

Regression analysis~45 min

Honor code

Studying it is fair use. Submitting it as your own is not.

These samples are donated by past students and shared as a learning resource. They are not for submission. Copying any sample verbatim would fail Turnitin and violate your institution's academic integrity policy. Read them to understand structure, evidence, and argument, then write your own. See our honor code and DMCA policy for details.