Mines to squares ratio

from Simon Tatham’s Portable Puzzle Collection

See Mines. You can experiment with these ratios for creating custom sized games.

“Easy” levels
Width Height Mines Ratio
9 9 10 0.12345679
16 16 40 0.15625
30 16 99 0.20625
Average 0.161985597

Possible model from straight linear regression: M = 0.224902292 × W × H − 11.58172432

“Hard” levels
Width Height Mines Ratio
9 9 35 0.432098765
16 16 99 0.38671875
30 16 170 0.354166667
Average 0.390994727

Possible model from straight linear regression: M = 9.45677536 + 0.337368022 × W × H

Applied average ratios
Mines
Width Height Easy Hard
25 25 101 244
50 50 405 977
Applied linear regression models
Mines
Width Height Easy Hard
25 25 129 220
50 50 551 853