← Biologia

Genetics · Chi-square

Equilíbrio de Hardy–Weinberg e calculadora qui-quadrado

Verifique o equilíbrio de Hardy–Weinberg a partir das contagens de genótipos ou frequências alélicas e calcule a estatística do qui-quadrado.

Runs entirely in your browser; no data is uploaded.

Outros idiomas ja | en | zh-CN | es | pt-BR | id | fr | hi-IN | ar

Como usar (3 passos)

  1. Choose the input mode: genotype counts (AA, Aa, aa) or allele frequencies p, q.
  2. Enter counts or p (and optional sample size N). Default values use a simple teaching example.
  3. Tap Calcular to see p, q, expected genotype frequencies, chi-square (Genotype mode), and the steps. In Allele mode only expected frequencies are shown. Copiar URL shares the exact setup.

Interpretation: a non-significant χ² means the sample does not show a detectable deviation from Hardy–Weinberg equilibrium at the chosen α.

Entradas

Use observed genotype counts to compute p, q, and χ².

Assume p (and optional N) to see HWE expected frequencies only.

Genotype counts

individuals
individuals
individuals

Resultados

Chi-square test

df = 1 because p is estimated from the sample.

Visualizations

Observed vs expected counts

Hardy–Weinberg genotype frequencies at this p

Como é calculado

Formulas used: p = (2·AA + Aa)/(2N); q = 1 − p; expected counts: N·p², N·2pq, N·q²; χ² = Σ (O−E)²/E with df = 1.

    Need help interpreting your result? Ask in the comments.

    FAQ

    What is Hardy–Weinberg equilibrium?

    It is an idealized model where allele and genotype frequencies stay constant under assumptions like random mating and no selection, mutation, or migration. This calculator uses that assumption to compute expected frequencies.

    Does a non-significant chi-square prove equilibrium?

    No. It only means the sample does not show a statistically detectable deviation at the chosen α. It does not prove perfect equilibrium.

    What if expected counts are small?

    When expected counts are small, the chi-square approximation weakens. Consider exact tests such as Fisher's exact test for very small counts.

    Calculadoras relacionadas

    Anúncios

    Comments

    Feedback is welcome. Comments load only after you click.