Memuat
Memuat
Genetic Algorithm for Accounting and Auditing
0 views
Apply Genetic Algorithm to synthetic data to find the best solution for audit hour allocation between high-risk and low-risk areas and compare outcomes. A genetic algorithm searches for optimal solutions by imitating evolution: selection, crossover, and mutation on a population of solutions. It suits nonlinear or combinatorial optimisation problems that are hard for gradient methods.

Apply Genetic Algorithm to synthetic data to find the best solution for audit hour allocation between high-risk and low-risk areas and compare outcomes.
| Role | Variable | Unit |
|---|---|---|
| Main | Audit finding coverage | % |
| Supporting 1 | High-risk audit hours | jam |
| Supporting 2 | Low-risk audit hours | jam |
The genetic algorithm (population 24, 22 generations) minimises Audit finding coverage down to 30.89 at High-risk audit hours = 21.19 and Low-risk audit hours = 23.25, within 0.01% of the global optimum.
Computed from illustrative synthetic data, not from a real study.
A genetic algorithm searches for optimal solutions by imitating evolution: selection, crossover, and mutation on a population of solutions. It suits nonlinear or combinatorial optimisation problems that are hard for gradient methods.
Report GA parameters, the best solution, objective value, and convergence curves from several runs with different seeds. Compare with other methods to show solution quality.
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
def rastrigin(p):
return 20 + (p ** 2 - 10 * np.cos(2 * np.pi * p)).sum(axis=1)
rng = np.random.default_rng(31)
dim, pop_n, gens = 2, 60, 80
lo, hi = -5.12, 5.12
high_risk_audit_hours = rng.uniform(lo, hi, (pop_n, dim)) # population
best_hist = []
for g in range(gens):
audit_finding_coverage = rastrigin(high_risk_audit_hours) # cost (to minimise)
best_hist.append(audit_finding_coverage.min())
elite = high_risk_audit_hours[audit_finding_coverage.argmin()].copy()
# tournament selection
idx = rng.integers(0, pop_n, (pop_n, 2))
win = np.where(audit_finding_coverage[idx[:, 0]] < audit_finding_coverage[idx[:, 1]], idx[:, 0], idx[:, 1])
parents = high_risk_audit_hours[win]
# blend crossover
mates = parents[rng.permutation(pop_n)]
alpha = rng.random((pop_n, 1))
child = alpha * parents + (1 - alpha) * mates
# gaussian mutation
mask = rng.random(child.shape) < 0.1
child = child + mask * rng.normal(0, 0.3, child.shape)
child = np.clip(child, lo, hi)
child[0] = elite
high_risk_audit_hours = child
final = rastrigin(high_risk_audit_hours)
print("Best cost:", round(final.min(), 5))
print("Best solution:", high_risk_audit_hours[final.argmin()].round(4))
plt.plot(best_hist)
plt.xlabel("Generation"); plt.ylabel("Best cost")
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$31
excl. 11% VAT
Duration: 7 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$91
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$197
excl. 11% VAT
Duration: 18-21 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Genetic Algorithm is commonly used at this level in Accounting and Auditing. 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$31, Package 2 (your data analysis and interpretation) US$91 and Package 3 (full guidance) US$197, 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