Gå til hovedindhold

Hypothesis Testing for Proportions

En læringskomponent om hypotesetest for en befolkningsandel.

Indstillinger

  • types | array<string>: den eller de testtyper (En prøve, To prøver), som widget'en skal udstille. Default: [ 'One-Sample', 'Two-Sample' ].
  • feedback | boolean: styrer, om der skal vises feedback-knapper. Default: false.
  • nullHypothesisAsValue | boolean: altid vise nulhypotesen som en enkelt værdi. Default: false.
  • pValue | string: brugerdefineret betegnelse for p-værdien (skal være en LaTeX-ligningsstreng). Default: none.
  • style | object: CSS inline-stilarter. Default: {}.

Eksempler

Live Editor
Resultat

Parameters

One-Sample
Let's assume that we have observed data with the following characteristics:

We conduct the following test (click on the hypotheses below to switch between the one-sided variants and the two-sided test):

We calculate the following test statistic:

Test Result

Plugging in our values, we have:

Under the null hypothesis, we calculate the p-value:

-3.0-2.0-1.01.02.03.00.100.200.30