Exact Mendelian and Hardy-Weinberg ratios depend on biological assumptions.
highlighted = computed this step
Exact ratios need idealized conditions
Hardy-Weinberg needs random mating, no selection, no mutation, no migration, no drift, and an effectively infinite population. Those assumptions make the arithmetic clean; they are not guaranteed in real populations.
exact ratio⇒model assumptions
Simple dominance is not all inheritance
Mendel's independent assortment breaks under genetic linkage. A single dominant-or-recessive rule also leaves out incomplete dominance, co-dominance, and polygenic traits.