This repository provides a compact workflow for exploring random‑walk simulation, naïve backtesting, and the evolution from GenAI‑generated code to a correct, vectorized implementation. The three notebooks illustrate the progression from a student starter quiz to the raw GenAI output and finally the refined version.
- Entry point for students
- Mini‑quiz setup
- Generate a random walk, create signals, run the naïve backtester
- Designed for hands‑on practice
- First version produced by GenAI
- Contains the initial naïve implementation
- Useful for understanding mistakes, inefficiencies, and semantic drift
- Baseline for comparison
- Improved version after multiple refinement cycles
- Vectorized logic, corrected semantics, cleaner structure
- Demonstrates how to evolve GenAI output into real, reliable code