Compute sample size and power for an ANOVA in Excel (2024)

This tutorial explains how to calculate the sample size and power for an ANOVA in Excel using XLSTAT.

What is the power of a statistical test?

XLSTAT offers features to apply analysis of variance (ANOVA), repeated measures analysis of variance and analysis of covariance (ANCOVA). For any of these methods, you may want to estimate the power or calculate the necessary number of observations before running the analysis.

When testing a hypothesis, there are several decisions to take:

  • The null hypothesis H0 and the alternative hypothesis Ha.

  • The statistical test to use.

  • The type I error also known as alpha. It occurs when one rejects the null hypothesis when it is true. It is set a priori for each test and is 5%.

The type II error or beta is less studied but is of great importance. In fact, it represents the probability that one does not reject the null hypothesis when it is false. We can not fix it upfront, but based on other parameters of the model we can try to minimize it. The power of a test is calculated as 1-beta1−beta and represents the probability that we reject the null hypothesis when it is false.

We therefore wish to maximize the power of the test. XLSTAT calculates the power (and beta) when other parameters are known. For a given power, it also allows to calculate the sample size that is necessary to reach that power.

The statistical power calculations are usually done before the experiment is conducted. The main application of power calculations is to estimate the number of observations necessary to properly conduct an experiment.

Goal of this tutorial

We want to carry out an experiment where three types of microwaves were tested to explain the percentage of edible popcorn after cooking. Cooking differs depending on the brand of microwave, the power, and the duration. Here we will seek to determine whether there is a significant influence of brand, potency, cooking time, and possibly their interactions.

We are in the case of a 3-factor anova. The microwave brand has 3 levels, power and duration have two levels each. So we have 3 x 2 x 2 = 12 groups. In our case, we will seek to know the size of the sample necessary so that the bfactor is a power of 0.9.

As we do not know yet the parameters of our sample, we will use the concept of effect size. Cohen (1988) introduced this concept which makes it possible to give an order of magnitude for the importance of the effect. We will therefore test 3 sizes of effects: 0.1 for a weak effect, 0.25 for a moderate effect and 0.4 for a strong effect. It is expected that the larger the effect size, the smaller the required sample size will be.

Set up the sample size calculation for an ANOVA

Once XLSTAT has been launched, click on the Power icon and choose the ANOVA/ANCOVA function.

Compute sample size and power for an ANOVA in Excel (1)

Once the button is clicked, the dialog box pops up.

You must then choose the objective Find sample size, and then select the ANOVA Factors and Interactions test.

The alpha is 0.05. The desired power is 0.9.

The number of groups, as explained earlier, is 12. The number of degrees of freedom of the numerator (Num DDL) is equal to the number of levels of the factor brand - 1, therefore 2.

Compute sample size and power for an ANOVA in Excel (2)

In the Chart tab, the simulation plot option is activated and the size of sample 1 will be represented on the vertical axis and the power on the horizontal axis.

The power varies between 0.8 and 0.95 in intervals of 0.01.

Compute sample size and power for an ANOVA in Excel (3)

Once you click on the OK button, the calculations begin and then the results are displayed.

Interpreting the results of sample size calculations for ANOVA

The first table gathers the parameters used as input.

Compute sample size and power for an ANOVA in Excel (4)

The second table gathers the results of the calculation as well as an interpretation of the results.

Compute sample size and power for an ANOVA in Excel (5)

We see that 83 observations are needed in our sample to obtain a power as close as possible to 0.9.

The following table gathers the calculations obtained for each value of the power between 0.8 and 0.95.

Compute sample size and power for an ANOVA in Excel (6)

The simulation plot shows the evolution of the sample size as a function of the power. We see that for a power of 0.8, 64 observations per sample are enough and that for a power of 0.95 we arrive at 100 observations.

Compute sample size and power for an ANOVA in Excel (7)

For effect sizes of 0.1 and 0.25, we obtain the following results:

Compute sample size and power for an ANOVA in Excel (8)

Compute sample size and power for an ANOVA in Excel (9)

The smaller the effect size, the more restrictive the input parameters will be and therefore the larger the sample size will be.

XLSTAT is therefore a powerful tool both for finding the sample size required for an analysis and for calculating the power of a test. Obviously, if one has more information about their sample, they can give details of the input parameters, rather than entering the size of the effect.

Was this article useful?

  • Yes
  • No
Compute sample size and power for an ANOVA in Excel (2024)
Top Articles
Free AI Paraphrasing Tool | Rephrase Text Easily
Kawasaki Ninja 650 Acceleration and Top Speed - MotoStatz
Rick Steves Forum
Dayton Overdrive
Www.craigslist.com Springfield Mo
New Stores Coming To Canton Ohio 2022
Happy Valley Insider: Penn State Nittany Lions Football & Basketball Recruiting - Hướng dẫn xem: Những trò chơi nào nên xem người hâm mộ bang Pennsylvania vào cuối tuần này?
Jobs Hiring Start Tomorrow
Chubbs Canton Il
Teenbeautyfitness
James Cameron And Getting Trapped Inside Your Most Successful Creation
Estragon South End
Cool Math Games Unblocked 76
Craigslist Cars For Sale By Owner Oklahoma City
Myjohnshopkins Mychart
Karen Canelon Only
Trizzle Aarp
Hotfixes: September 13, 2024
Journeys Employee Discount Limit
P.o. Box 30924 Salt Lake City Ut
How Much Is Cvs Sports Physical
Pdinfoweb
Beaver Dam Locations Ark Lost Island
Joy Ride 2023 Showtimes Near Cinemark Huber Heights 16
Best 43-inch TVs in 2024: Tested and rated
Israel Tripadvisor Forum
9132976760
Conan Exiles Meteor Shower Command
[TOP 18] Massage near you in Glan-y-Llyn - Find the best massage place for you!
Hatcher Funeral Home Aiken Sc
Lily Spa Roanoke Rapids Reviews
Hmnu Stocktwits
Simple Simon's Pizza Lone Jack Menu
Hingham Police Scanner Wicked Local
Längen umrechnen • m in mm, km in cm
CareCredit Lawsuit - Illegal Credit Card Charges And Fees
Charm City Kings 123Movies
Lubbock, Texas hotels, motels: rates, availability
Lockstraps Net Worth
Upc 044376295592
Jacksonville Jaguars should be happy they won't see the old Deshaun Watson | Gene Frenette
South Carolina Craigslist Motorcycles
Joe Aloi Beaver Pa
Cetaphil Samples For Providers
Po Box 6726 Portland Or 97228
Dimensional Doors Mod (1.20.1, 1.19.4) - Pocket Dimensions
Cibo Tx International Kitchen Schertz Menu
Six Broadway Wiki
Breckie Hill Shower Gif
Kaiju Universe: Best Monster Tier List (January 2024) - Item Level Gaming
8X10 Meters To Square Meters
Clarakitty 2022
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 6104

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.