Memuat
Memuat
One-Way ANOVA for Economics and Finance
0 views
Apply One-Way ANOVA to synthetic data to test differences in mutual fund returns across fund types adjusted for market volatility and conclude on statistical significance. One-way ANOVA tests whether the means of three or more groups differ significantly. It is used to compare several treatments, followed by post-hoc tests to find which pairs differ.

Apply One-Way ANOVA to synthetic data to test differences in mutual fund returns across fund types adjusted for market volatility and conclude on statistical significance.
| Role | Variable | Unit |
|---|---|---|
| Main | Mutual fund return | % |
| Supporting 1 | Fund type | - |
| Supporting 2 | Market volatility | % |
One-way ANOVA on Mutual fund return across 4 groups is significant (F = 6.096, p < 0.001); the eta-squared effect size is 0.095.
Computed from illustrative synthetic data, not from a real study.
One-way ANOVA tests whether the means of three or more groups differ significantly. It is used to compare several treatments, followed by post-hoc tests to find which pairs differ.
Report F, degrees of freedom, p-value, and eta squared, then the group pairs that differ per Tukey. If variances are not homogeneous, use Welch ANOVA or a nonparametric test.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as st
rng = np.random.default_rng(26)
fund_type = rng.normal(50, 6, 30) # treatment A
market_volatility = rng.normal(55, 6, 30) # treatment B
x3 = rng.normal(60, 6, 30) # treatment C
mutual_fund_return = np.concatenate([fund_type, market_volatility, x3])
groups = [fund_type, market_volatility, x3]
print("Levene p:", round(st.levene(*groups).pvalue, 3))
res = st.f_oneway(*groups)
print("F =", round(res.statistic, 3), "p =", round(res.pvalue, 5))
grand = mutual_fund_return.mean()
ssb = sum(len(g) * (g.mean() - grand) ** 2 for g in groups)
sst = ((mutual_fund_return - grand) ** 2).sum()
print("Eta squared:", round(ssb / sst, 3))
if res.pvalue < 0.05:
tk = st.tukey_hsd(*groups)
print(tk)
plt.boxplot(groups)
plt.xticks([1, 2, 3], ["A", "B", "C"])
plt.ylabel("Response")
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$16
excl. 11% VAT
Duration: 3 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$47
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$106
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. One-Way ANOVA is commonly used at this level in Economics and Finance. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$16, Package 2 (your data analysis and interpretation) US$47 and Package 3 (full guidance) US$106, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio