You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Hardy Weinberg law is related to and explain in detail?
Hardy Weinberg law: states that the genotype frequencies in a population remain constant or are in equilibrium from generation to generation unless specific disturbing influences are introduced.

Genetic equilibrium (HW law) is a basic principle of population genetics; the entire principle is based on Mendelian genetics.
Deviations in HW law:

HW law fails to apply in:

Non-random mating (assortative mating)
New mutations
Genetic drift
Gene flow
Natural selection (mortality selection, fecundity selection)
Small populations migrations
Dynamic populations.

HW law assumes that human population is static, large and has random mating.