University of Glasgow · FACULTY OF ECONOMICS

ECON5149 Chap.11 Genetic Algorithm Experiments and Diagnostics

- one subject, every graph, every model, every mark
8 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 11 of 11 · ECON5149

Genetic Algorithm Experiments and Diagnostics

Genetic Algorithm Experiments and Diagnostics turns an evolving market model into evidence. A constant fundamental gives the rule population little reason to change, so the lecture moves the fundamental from 100 to 108 at a known event and studies the aftermath.

Four plots answer four separate questions: whether the price moves towards the new value, which way selection pushes the average technical share, whether the whole distribution of rules shifts, and whether best and median fitness recover. None of them substitutes for another, and each has limits worth stating, such as a persistent price gap that fitness never penalises.

A second experiment changes only the mutation probability, comparing diversity and the median rule's forecast error across low, baseline and high settings. The chapter explains why errors spike at the shock, why the three runs spike together, and why one favourable run cannot crown an optimal rate.

It closes with tuning across seeds, the economic meaning of every GA parameter, the checks that must pass before interpretation, and the Santa Fe artificial stock market and related work that reuse the same architecture.

In this chapter

What this chapter covers

  • 01

    Purpose of the fundamental-shift experiment

  • 02

    Price against fundamental as a market-response test

  • 03

    Mean and distribution of the technical share

  • 04

    Best and median fitness against median-rule RMSE

  • 05

    Mutation-probability experiment and diversity

  • 06

    Parameter tuning across grids and seeds

  • 07

    Verification checks before interpretation

  • 08

    Santa Fe artificial stock market and later applications

Worked example · free

Match four claims to the right diagnostic

Q [6 marks]. After the fundamental rises from 100 to 108, a run ends with the price at 106.4. The mean technical share rose from 0.30 to 0.46, and median-rule RMSE went from 0.0021 before the shock to 0.0150 at the shock and 0.0035 by the end. Assess four claims: the market responded, selection favoured trend rules, forecasting recovered, and prices are efficient. Marks here give a revision weighting and are not an official allocation.
Read from the top: failed verification checks send you to debugging, while passed checks fan out to four questions, and each downward arrow names the only plot Read from the top: failed verification checks send you to debugging, while passed checks fan out to four questions, and each downward arrow names the only plot that answers that question.Checks passed?Debug firstMarket reacts?Price vs FSelection direction?Mean θ pathPopulation changed?Initial vs final θForecasts improving?Best, median Φno
Read from the top: failed verification checks send you to debugging, while passed checks fan out to four questions, and each downward arrow names the only plot that answers that question.
  • 1Price against fundamental: the price closed 6.4 of the 8-point jump, or 80 percent, so the market responded in the right direction, but a 1.6 gap remains.
  • 2Mean technical share: a rise of 0.16 shows selection pushed towards trend rules; the initial and final distributions are still needed to see whether most rules moved.
  • 2Median RMSE: it fell from 0.0150 to 0.0035, unwinding 0.0115 of the 0.0129 spike, about 89 percent, yet it remains above the pre-shock 0.0021.
  • 1Efficiency is not supported: fitness rewards next-trade forecast accuracy, not closeness to the fundamental, and the price is still below 108.
Three claims receive qualified support from their own diagnostics, while the efficiency claim fails because no plot shown measures it and the price gap persists. The mark allocation is an original practice weighting, not a university marking scheme.
Sia tip — Write each claim on its own line and name the single plot that can test it before reading any numbers.
Glossary

Key terms

Fundamental-shift experiment
A run in which the fundamental value is moved by a known exogenous amount at a fixed event so that later prices, errors and rules can be compared with a reference point.
Median-rule RMSE
The square root of minus the median fitness in a generation, read so that lower values mean more accurate forecasting.
Exploration-exploitation trade-off
The balance between reusing rules that already perform well and experimenting with new ones, governed here mainly by mutation.
Parameter tuning
Choosing a setting such as the mutation probability by comparing average performance and its variability over a grid of values and several random seeds.
FAQ

Genetic Algorithm Experiments and Diagnostics FAQ

Why do forecast errors jump right after the fundamental rises?

The fundamental signal suddenly becomes large and positive, so rules that lean on it predict a big next return. Prices, however, climb gradually because orders must cross resting quotes in the book, so realised returns stay small. The gap between predicted and realised returns inflates squared errors, and the GA update itself does not cause the jump.

Does rising fitness prove that prices have caught up with the fundamental?

No. Fitness measures how well one-event return forecasts match trades, so it can improve while the price stays below the new fundamental. Treat such a combination as a reason to investigate the model further, and use the price against fundamental plot for any claim about convergence.

Is more diversity in the rule population always better?

Diversity shows that the population is still exploring, but it does not say which run forecasts best. Too little mutation lets the population concentrate early, while too much keeps disturbing rules that selection has already found. The useful rate depends on the environment and on what fitness rewards.

Why hold the random draws fixed across the mutation runs?

Sharing order-arrival and signal-noise draws means early differences between runs come from the mutation setting rather than luck. Once the populations evolve differently, prices and fitness paths can still diverge, so several seeds per setting are needed before ranking any value.

Study strategy

Exam move

Start by building a two-column sheet: on the left, each of the four diagnostics; on the right, the question it answers and the claim it cannot support alone. Revisit that sheet whenever you read a simulation figure, and practise saying which column a statement belongs to before you interpret it. Next, rehearse the error spike with your own numbers.

Choose a last price close to the old fundamental, compute the fundamental signal before and after a jump, and compare a fundamental-heavy rule with a trend-heavy rule against a small realised return. Seeing one squared error dwarf the other explains both the spike and the later tilt in the average technical share.

For the mutation experiment, write down what is held fixed and what is allowed to differ, then state the headline in one cautious sentence that avoids the word optimal. Draft a short tuning plan with a grid of mutation probabilities, a number of seeds and the statistics you would report, then add one robustness check under a different market condition.

List the verification tests in the order you would run them in code, and pair each GA parameter with the behavioural assumption it encodes. Finally, summarise the Santa Fe artificial stock market in three lines covering what evolves, how rules are scored and how prices feed back, because the degree exam assesses whether you can evaluate methods and explain how agent-based models generate market properties.

The same habits help in the hackathon presentation, where every chart needs a stated question.

Working through Genetic Algorithm Experiments and Diagnostics in ECON5149? Sia is AskSia’s AI Economics tutor — ask any ECON5149 Genetic Algorithm Experiments and Diagnostics question and get a clear, step-by-step explanation grounded in how ECON5149 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 26 of your subjects at University of Glasgow, plus 1,000+ more Bibles across the AskSia library.
Sia - your ECON5149 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works