Power Analysis for a Two-Sample t-Test

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

A -test examines a statistical hypothesis following a Student distribution under the null hypothesis. The object is to estimate the mean of a normal distribution for small sample size and unknown standard deviation. The -test can be used to determine if two sets of data are significantly different from one other. This Demonstration provides a visual representation for calculating power in a two-sample -test. Use the sliders to manipulate effect size, sample size and the -value to see how they affect the power in hypothesis testing. The area of the blue shaded region represents the power.

Contributed by: Philip Bontrager (March 2017)
Open content licensed under CC BY-NC-SA


Snapshots


Details

This Demonstration provides a visualization of power analysis for a two-tailed, two-sample -test. A two-sample -test is a hypothesis test to check for statistical significance between two samples. The red curve is the distribution of the null hypothesis. In a two-sample test, this is normally the control sample. The blue curve is the noncentral distribution of the alternative hypothesis. This is normally the experimental sample. The effect size and the sample size determine the noncentrality parameter . This value appears above the alternative hypothesis distribution. The two vertical lines represent the critical values. The area outside these values represents statistical significance for the given -value. Any part of the noncentral distribution outside the given values represents experiments that would be considered statistically significant. This total area is referred to as the power.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send