This research project utilized Monte Carlo analysis in MATLAB to evaluate the fairness of the Hong Kong "Mark Six" lottery by identifying potential "hot numbers". The study analyzed a dataset of 2,493 draws from 2008 to 2025, using chi-squared tests to determine if a uniform distribution was an appropriate assumption for the winning numbers. The experiment was divided into two portions: one assuming a uniform probability for all numbers and a second utilizing empirical probabilities derived from historical winning data. While the empirical simulation identified a consistent set of frequently occurring numbers, the analysis concluded that these "hot" numbers were not statistically reliable. The observed deviations remained consistent with random variation in a fair game, with no strong evidence that any specific number is genuinely favored over others.
This project was done for the MAE 125 Class - Building Efficiency, wherein the shading requirements for our school's library are analyzed through the ARCH 140 Solar Shading Analysis Program Version 1.6Â