Example of Mediation Analysis in a Master’s Thesis

A lecturer explains boxplots and data distributions on a large screen.

Mediation analysis in the master's thesis: Examining direct and indirect relationships under clearly stated assumptions.

Anyone who has to calculate a mediation in their master's thesis usually quickly realizes: The problem is rarely the idea, but the clean methodological implementation. That is exactly why many people are looking for a reliable example of mediation analysis in a master's thesis - not abstract theory, but a template that allows hypotheses, the model, analysis, and interpretation to be traced.

A mediation tests whether the effect of an independent variable X on a dependent variable Y runs entirely or partially through a mediating variable M. In research, this often sounds elegant, but practical questions arise immediately in the analysis: Is a linear regression sufficient? Does the direct effect have to be significant? Do I need bootstrapping? And how do I formulate the result so that it remains academically correct and at the same time understandable in a master's thesis?

Example of mediation analysis in a master's thesis: a typical structure

Let's take a realistic example from psychology or education. A student examines whether study stress affects exam performance. However, she not only suspects a direct connection, but assumes that study stress first worsens sleep quality and this poorer sleep quality then reduces exam performance. In this model, study stress is the independent variable, sleep quality is the mediator, and exam performance is the dependent variable.

The research logic here is clear: It is not stress alone that explains performance, but a mediating mechanism. That is exactly what makes mediation analyses in master's theses so attractive. They provide not only a yes or no, but a why.

For the hypotheses, one could formulate: First, higher study stress predicts poorer sleep quality. Second, poorer sleep quality predicts lower exam performance. Third, sleep quality mediates the relationship between study stress and exam performance.

It is important that the hypotheses are theoretically justified. A mediation is not a statistical end in itself. Anyone who simply takes three variables and calculates a mediation model without justifying the theoretical process risks methodological criticism. Especially in the master's thesis, the combination of theory, design, and statistics counts.

How mediation is practically calculated

In classical logic, the model consists of several paths. The a-path describes the influence of X on M. The b-path describes the influence of M on Y while controlling for X. The c-path describes the total effect of X on Y. The c'-path describes the direct effect of X on Y when M is included in the model.

The indirect effect is calculated as a times b. This indirect effect is exactly what is at the center. In the past, it was often checked whether there was initially a significant total effect between X and Y. This view is too narrow today. Even if the total effect is weak or not significant, there can still be a significant indirect effect. This is a crucial point for master's theses because many supervisors are still familiar with older presentations.

Methodologically, a mediation is now usually analyzed using regression models and bootstrapping. Bootstrapping is therefore useful because the distribution of indirect effects is often not normal. Instead of relying on fragile assumptions, the indirect effect is resampled many times, and a confidence interval is estimated from it. If zero is not in the interval, this points to a significant indirect effect.

This sounds technical, but it is easily implementable in programs such as SPSS, R, JASP, Jamovi, or Stata. The correct model logic is more important than the software. Anyone who defines incorrect variable roles or uses control variables sloppily will not get a reliable result even with good software.

A brief numerical example for orientation

Suppose the a-path between study stress and sleep quality is b = -0.45 and is significant. More stress therefore goes hand in hand with poorer sleep quality. The b-path between sleep quality and exam performance is b = 0.30 and is also significant. Better sleep quality therefore goes hand in hand with higher exam performance.

The indirect effect is then -0.45 times 0.30 = -0.135. This suggests that study stress indirectly reduces exam performance via sleep quality. If the bootstrapped 95% confidence interval of this indirect effect lies between -0.22 and -0.06, for example, the mediation effect is significant.

Let's additionally assume that the direct effect c' of study stress on exam performance remains significant, but becomes smaller than the total effect c. Then there is partial mediation. If the direct effect, on the other hand, becomes non-significant, it is often spoken of as full mediation. However, these terms should be used with caution in the master's thesis. In many real datasets, the distinction is less clear than textbooks suggest.

Example formulation for presenting the results

For many students, the calculation is not the biggest problem, but the results section. A possible formulation could look like this:

It was shown that study stress significantly negatively predicted sleep quality. At the same time, sleep quality significantly positively predicted exam performance. The indirect effect of study stress on exam performance via sleep quality was significant, as the bootstrapped confidence interval did not include zero. The direct effect remained reduced, which indicates partial mediation.

Such a presentation is concise, technically correct, and easy to check. What is missing are overloaded interpretations. A mediation shows a mediated relationship in the model - it does not automatically prove causality. For that, you need a suitable design, a clear temporal order, and as strong theoretical justifications as possible.

Typical mistakes in a mediation in a master's thesis

The most common mistake is a weak model choice in terms of content. Many use a mediator because the model looks more "advanced". But if it is not plausibly justified why M mediates the relationship between X and Y, the analysis is vulnerable to criticism.

A second mistake concerns temporal logic. Mediation claims a process. With pure cross-sectional data, this process assumption can only be supported to a limited extent. This does not mean that a mediation with cross-sectional data is fundamentally inadmissible. But it should be formulated carefully. Anyone who speaks of cause and effect, although all variables were collected at the same time, loses scientific credibility.

Thirdly, control variables are often added unsystematically. Including age, gender, or major just because it seems "usual" does not automatically improve the model. Control variables also need a technical justification. Otherwise, the lack of clarity increases rather than the explanatory power.

Fourthly, the interpretation of the direct effect is often misunderstood. If c' is not significant, it does not automatically mean that X no longer plays a role. It only means that the remaining direct relationship, taking M into account, is not clearly proven statistically. The focus in mediation is on the indirect effect.

When a mediation makes sense - and when it does not

A mediation is suitable if you want to test a theoretical mechanism. This is often the case in psychology, medicine, social sciences, business administration, or sports science. Anyone who wants to explain why an effect occurs, instead of only whether it exists, quickly arrives at mediation models methodologically.

The analysis is not useful if the variables were put together purely exploratorily or if the sample is very small. Although you can also calculate a mediation with smaller samples, the estimates become less stable and the explanatory power decreases. So it depends on the individual case. Exactly this individual case examination is missing in many standard instructions.

Measurement quality also plays a major role. If the mediator was measured unreliably, the indirect effect often suffers. Then a theoretically plausible mechanism quickly becomes statistically invisible. Therefore, in the master's thesis, not only the analysis, but also the quality of the scales and variables should be reflected.

What a good example really has to achieve

A good example of mediation analysis in a master's thesis shows not only a calculation, but a complete red thread. This includes a reliable theoretical derivation, clearly formulated hypotheses, a traceable analysis procedure, and an interpretation with methodological restraint.

Exactly at this point, many works come under pressure. The statistics must be correct, but also the language, the model logic, and the documentation. Anyone who simply copies an output window into the work does not yet have a convincing presentation of results. Examiners expect you to be able to classify the findings technically.

If there is uncertainty about the model choice, the software, or the formulation, early methodological clarification is almost always cheaper than late correction. Especially with mediations, typical mistakes can often be avoided before the actual analysis. Easy Statistik supports this with academically sound statistical advice, traceable result preparation, and individual support at the doctoral level - discreet, fast, and suitable for the concrete question.

The best mediation in a master's thesis is ultimately not the most complex, but the one that is theoretically sound, calculated statistically in a clean way, and can be clearly explained. If your model meets these three conditions, it will not result in a mere methods section, but in a convincing scientific contribution. If you would like a reliable assessment of your dataset or model for this, you can now make a non-binding inquiry via the contact form.

Do you need support with a mediation in your master's thesis? Learn more about our statistical advice or request an assessment of your research question and data.


Put knowledge into practice

From explanation
to your own analysis.

Would you like to know which method suits your project? We review your plans free of charge and give you a clear recommendation.

Your question deserves a personal answer.

Describe your project. We will assess free of charge what support would be right for you.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.