F test for two variances calculator

F-test two sample variances calculator.

Many times it is desirable to compare two variances rather than comparing two means. F test is used to compare two population variances or population standard deviations.

In this tutorial we will calculate f-test two-sample for variances calculator and six steps approach used in hypothesis testing to test whether two population variances are same or not.

F Test Statistics Formula

The f-test statistic for testing above $H_0:\sigma^2_1=\sigma^2_2$ is

$F =\frac{s_1^2}{s_2^2}$

$s_1^2 =\frac{1}{n_1-1}\sum (X_i -\overline{x})^2$ is the sample variance of first sample,

$s_2^2 =\frac{1}{n_2-1}\sum (Y_i -\overline{y})^2$ is the sample variance of second sample.

The F test statistic $F$ follows $F$ distribution with $n_1-1$ and $n_2-1$ degrees of freedom.

F-test two sample for variances calculator

Use this F test calculator to calculate F test statistics,degrees of freedom,f test critical value and f test p value using two sample size,standard deviations and right/left or two tailed.

F test Calculator for two variances
  Sample 1 Sample 2
Sample Size
Standard Deviation
Level of Significance ($\alpha$)
Tail
Test Statistics F:
Degrees of Freedom: (df1)
Degrees of Freedom: (df2)
F-critical value(s):
p-value:

How to use F test two sample variances calculator?

Step 1 - Enter the f test sample1 size Step 2 - Enter the f test sample2 size Step 3 - Enter the Standard Deviation for sample1 and sample2 Step 4 - Enter the level of Significance ($\alpha$) Step 5 - Select the left tailed or right tailed or two tailed for f test calculator Step 6 - Click on “Calculate” button to calculate f test for two variance Step 7 - Calculate Test Statistics (F) Step 8 - Calculate Degrees of Freedom (dF1) and df2 Step 9 - Calculate F test critical value Step 10 - Calculate F test p value

F-Test for equality of two variances

Let $X_1, X_2, \cdots, X_{n_1}$ be a random sample of size $n_1$ from a population with variance $\sigma^2_1$ and $Y_1,Y_2, \cdots, Y_{n_2}$ be a random samples of sizes $n_2$ from a population with variance $\sigma^2_2$.

Let $\overline{x} = \frac{1}{n_1} \sum X_i$ and $s_1^2 =\frac{1}{n_1-1}\sum (X_i -\overline{x})^2$ be the sample mean and sample variance of first sample respectively.

Let $\overline{y} = \frac{1}{n_2} \sum Y_i$ and $s_2^2 =\frac{1}{n_2-1}\sum (Y_i -\overline{y})^2$ be the sample mean and sample variance of second sample respectively.

Assumptions

a. The two populations are independent.

b. The two samples are simple random samples.

c. The two populations are normally distributed .

Step by Step Procedure

Step by step procedure of f test for equality of two variances is as follows:

Step 1 State the hypothesis testing problem

The hypothesis testing problem can be structured in any one of the three situations as follows:

Situation Hypothesis Testing Problem
Situation A : $H_0: \sigma^2_1=\sigma^2_2$ against $H_a : \sigma^2_1 < \sigma^2_2$ (Left-tailed)
Situation B : $H_0: \sigma^2_1=\sigma^2_2$ against $H_a : \sigma^2_1 > \sigma^2_2$ (Right-tailed)
Situation C : $H_0: \sigma^2_1=\sigma^2_2$ against $H_a : \sigma^2_1 \neq \sigma^2_2$ (Two-tailed)

Step 2 Define the f test statistic

The test statistic for testing above hypothesis is $$ F =\frac{s_1^2}{s_2^2} $$

The F test statistic follows F distribution with $n_1-1$ and $n_2-1$ degrees of freedom.

Step 3 Specify the level of significance

Specify the value of level of significance $\alpha$.

Step 4 Determine the critical values

For the specified value of $\alpha$ determine the critical region depending upon the alternative hypothesis.

  • For left-tailed alternative hypothesis: Find the $t$-critical value using

$$ \begin{aligned} P(F<F_{1-\alpha, n_1-1, n_2-1}) = \alpha. \end{aligned} $$

  • For right-tailed alternative hypothesis: $$ \begin{aligned} P(F > F_{\alpha,n_1-1,n_2-1}) = \alpha. \end{aligned} $$
  • For two-tailed alternative hypothesis:

$$ P(F < F_{ 1 - \alpha/2,n_1-1,n_2-1} \text{ or } F> F_{\alpha/2,n_1-1,n_2-1}) = \alpha. $$

Step 5 Computation

Compute the f test statistic under the null hypothesis $H_0$ using equation

$$ F_{obs} =\dfrac{s_1^2}{s_2^2} $$

Step 6 Decision (Traditional Approach)

It is based on the critical values.

For left-tailed alternative hypothesis: Reject $H_0$ if $F_{obs}\leq F_{1-\alpha,n_1-1,n_2-1}$ .

For right-tailed alternative hypothesis: Reject $H_0$ if $F_{obs}\geq F_{\alpha,n_1-1,n_2-1}$ .

For two-tailed alternative hypothesis: Reject $H_0$ if $F_{obs} < F_{1-\alpha/2,n_1-1,n_2-1}$ or $F_{obs} > F_{\alpha/2,n_1-1,n_2-1}$ .

Step 6 Decision (p-value Approach)

It is based on the $p$-value.

Alternative Hypothesis Type of Hypothesis $p$-value
$H_a: \sigma^2_1<\sigma^2_2$ Left-tailed $p$-value
$H_a: \sigma^2_1>\sigma^2_2$ Right-tailed $p$-value
$H_a: \sigma^2_1\neq \sigma^2_2$ Two-tailed $p$-value

If $p$-value is less than $\alpha$, then reject the null hypothesis $H_0$ at $\alpha$ level of significance, otherwise fail to reject $H_0$ at $\alpha$ level of significance.

The above six step approach helps you to understand how to test the hypothesis about the equality of two variances or equality of two standard deviations.

Let’s understand f test two sample variances with the help of examples

Example 1 - F test statistics calculator

A professor from a graduate school claims that there is less variability in the final exam scores of students taking the statistics major than the students taking the mathematics major. Random samples of 13 mathematics majors and 10 statistics majors are selected from the his large class, and the following results are computed based on the final exam scores:

Mathematics : $n_1= 13$, $s_1^2 = 45$

Statistics: $n_2 = 10$, $s_2^2 = 35.5$

At the 0.05 level of significance, is there evidence to support the professor’s claim?

Let $X$ denote the final exam scores of students taking the mathematics major and $Y$ denote the final exam scores of students taking the statistics major.

Summary Mathematics Major Statistics Major
Sample size $n_1= 13$ $n_2=10$
Sample variance $s_1^2 = 45$ $s_2^2 = 35.5$

Step 1 Hypothesis testing problem

The hypothesis testing problem is

$H_0 : \sigma^2_1 = \sigma^2_2$ against $H_1 : \sigma^2_1 >\sigma^2_2$ ($\textit{right-tailed}$)

Step 2 F-Test Statistic

The F test statistic for testing above hypothesis testing problem is $$ \begin{aligned} F=\frac{s_1^2}{s_2^2} \end{aligned} $$ The test statistic $F$ follows F distribution with $13-1 = 12$ and $10-1= 9$ degrees of freedom.

Step 3 Level of significance

The significance level is $\alpha = 0.05$.

Step 4 F Critical value(s)

As the alternative hypothesis is $\textit{right-tailed}$, the $F$ critical value for $12$ and $9$ degrees of freedom and $\alpha = 0.05$ level of significance $\text{is}$ $\text{3.073}$.

hypothesis testing for two population variances calculator

The rejection region (i.e. critical region) is $\text{F > 3.073}$.

The F test statistics under the null hypothesis is $$ \begin{aligned} F_{obs} &=\frac{s_1^2}{s_2^2}\\ &= \frac{45}{35.5}\\ &= 1.2676 \end{aligned} $$

Step 6 Decision (Traditional approach)

The F-test statistic is $F_{obs} =1.2676$ which falls $\textit{outside}$ the critical region, we $\textit{fail to reject}$ the null hypothesis.

Step 6 Decision ($p$-value approach)

This is a $\textit{right-tailed}$ test, so the p-value is the area to the left of the test statistic ($F_{obs}=1.2676$) is p-value = $0.3674$.

The f test calculator p value is $0.3674$ which is $\textit{greater than}$ the significance level of $\alpha = 0.05$, we $\textit{fail to reject}$ the null hypothesis.

Interpretation

There is no sufficient evidence to support the claim that variability in the final exam scores of students taking the statistics major is less than the students taking the mathematics major.

Example 2 - F test two sample for variances

The same capacity of hard drive is manufactured on two different machines, Machine A and Machine B. Samples are taken from both machines and sample mean manufacturing times and sample variances are recorded. The table shows the data. Test the belief that the variation in manufacturing times is more with Machine A than with Machine B. Use a 5% level of significance.

Machine A: $n_1=13$, $\overline{x}= 127.4$, $s_1^2= 384.16$

Machine B: $n_2=9$, $\overline{y}= 108.3$, $s_2^2 =106.09$

Let $X$ denote the manufacturing time for hard drive by machine A and let $Y$ denote the manufacturing time for hard drive by machine B.

Given data is as follows:

Summary Machine A Machine B
Sample size $n_1= 13$ $n_2=9$
Sample variance $s_1^2 = 384.16$ $s_2^2 = 106.09$

Step 2 F Test Statistic

The F test statistics for testing above hypothesis testing problem is $$ \begin{aligned} F=\frac{s_1^2}{s_2^2} \end{aligned} $$ The test statistic $F$ follows $F$ distribution with $13-1 = 12$ and $9-1= 8$ degrees of freedom.

As the alternative hypothesis is $\textit{right-tailed}$, the $F$ critical value of for $12$ and $8$ degrees of freedom and $\alpha = 0.05$ level of significance $\text{is}$ $\text{3.284}$.

hypothesis testing for two population variances calculator

The rejection region (i.e. critical region) is $\text{F > 3.284}$.

The f test statistic under the null hypothesis is $$ \begin{aligned} F_{obs} &=\frac{s_1^2}{s_2^2}\\ &= \frac{384.16}{106.09}\\ &= 3.6211 \end{aligned} $$

The test statistic is $F_{obs} =3.6211$ which falls $\textit{inside}$ the critical region, we $\textit{reject}$ the null hypothesis.

This is a $\textit{right-tailed}$ test, so the p-value is the area to the left of the test statistic ($F_{obs}=3.6211$) is p-value = $0.0382$.

The f test calculator p value is $0.0382$ which is $\textit{less than}$ the significance level of $\alpha = 0.05$, we $\textit{reject}$ the null hypothesis.

There is enough evidence to support the claim that variation in manufacturing times is more with Machine A than with Machine B.

Example 3 - F test statistics Calculator

Two different brands of batteries are tested and the variations of their voltage outputs are noted. The table gives the data. At a 5% significance level, test the claim that the populations of the two brands have the same voltage variations.

Brand A: $n_1=10$, $\overline{x}= 9.31$, $s_1=0.37$

Brand B: $n_2=8$, $\overline{y}= 8.82$, $s=0.31$

Give the null and alternative hypotheses, Find the critical value of this F-test, find the f test statistics value for variances, reject null hypothesis or not, conclusion.

Let $X$ denote the voltage output for brand A batteries and $Y$ denote the voltage output for brand B batteries.

Given data is as follows :

. Brand A Brand B
Sample Size $n_1= 10$ $n_2=8$
Sample variance $s_1 = 0.37$ $s_2 = 0.31$

$H_0 : \sigma^2_1 = \sigma^2_2$ against $H_1 : \sigma^2_1 \neq\sigma^2_2$ ($\textit{two-tailed}$)

The f test statistics for testing above hypothesis testing problem is $$ \begin{aligned} F=\frac{s_1^2}{s_2^2} \end{aligned} $$ The f test statistic $F$ follows $F$ distribution with $10-1 = 9$ and $8-1= 7$ degrees of freedom.

The significance level is $\alpha = 0.1$.

As the alternative hypothesis is $\textit{two-tailed}$, the $F$ critical value for $9$ and $7$ degrees of freedom and $\alpha = 0.1$ level of significance $\text{are}$ $\text{0.304 and 3.677}$.

hypothesis testing for two population variances calculator

The rejection region (i.e. critical region) is $\text{F < 0.304 or F > 3.677}$.

The f test statistic under the null hypothesis is $$ \begin{aligned} F_{obs} &=\frac{s_1^2}{s_2^2}\\ &= \frac{0.1369}{0.0961}\\ &= 1.4246 \end{aligned} $$

The test statistic is $F_{obs} =1.4246$ which falls $\textit{outside}$ the critical region, we $\textit{fail to reject}$ the null hypothesis.

This is a $\textit{two-tailed}$ test, so the p-value is the area to the left of the test statistic ($F_{obs}=1.4246$) is p-value = $0.6553$.

The f test calculator p-value is $0.6553$ which is $\textit{greater than}$ the significance level of $\alpha = 0.1$, we $\textit{fail to reject}$ the null hypothesis.

There is enough evidence to support the claim that the populations of the two brands have the same voltage variations.

I hope you have find above article on f test two sample for variances calculator and examples helpful.

You can read more about F test p value calculator , other topic on paired t test calculator and chi-square test for variance calculator

Read more about other Statistics Calculator on below links

  • Descriptive Statistics Calculators
  • Hypothesis Testing Calculators
  • Probability Distribution
  • Confidence Interval Calculators
  • Correlation Regression Calculators
  • Probability Theory Calculators
  • Sample Size and Power Calculators

Related Resources

hypothesis testing for two population variances calculator

  • Apr 25, 2024

F-test for the Equality of Two Population Variances

Instructions: This calculator conducts an F test for two population variances in order to assess whether two population variances \(\sigma_1^2\) and \(\sigma_1^2\) can be assumed to be equal or not. Please select the null and alternative hypotheses, type the sample variances, the significance level, and the sample sizes, and the results of the F-test will be presented for you:

hypothesis testing for two population variances calculator

More about the F-test for two variances so you can better understand the results provided by this solver: An F-test for equality of variances is a hypothesis test that is used to assess whether two population variances should be considered equal or not, based on sample data from both populations. More specifically, with information about the sample variances, from samples coming from the two populations, a test statistic is constructed to assess whether or not there is enough evidence to claim that that variances are unequal.

The test, as every other well formed hypothesis test, has two non-overlapping hypotheses, the null and the alternative hypothesis. The null hypothesis is a statement about the population variances which represents the assumption of no effect (in this case, that the population variances \(\sigma_1^2\) and \(\sigma_2^2\) are equal), and the alternative hypothesis is the complementary hypothesis to the null hypothesis (in this case, that the population variances \(\sigma_1^2\) and \(\sigma_2^2\) are unequal). The main properties of a F-test for two population variances are:

  • The test statistic has a F-distribution, with n 1 and n 2 degrees of freedom
  • The F distribution is one of the most important distributions in statistics, together with the normal distribution and the Chi-Square distribution
  • Depending on our knowledge about the "no effect" situation, the F-test can be two-tailed, left-tailed or right-tailed
  • The main principle of hypothesis testing is that the null hypothesis is rejected if the test statistic obtained is sufficiently unlikely under the assumption that the null hypothesis is true
  • The p-value is the probability of obtaining sample results as extreme or more extreme than the sample results obtained, under the assumption that the null hypothesis is true
  • In a hypothesis tests there are two types of errors. Type I error occurs when we reject a true null hypothesis, and the Type II error occurs when we fail to reject a false null hypothesis

The formula for a F-statistic is

The null hypothesis is rejected when the F-statistic lies on the rejection region, which is determined by the significance level (\(\alpha\)) and the type of tail (two-tailed, left-tailed or right-tailed).

Related Calculators

Descriptive Statistics Calculator of Grouped Data

log in to your account

Reset password.

hypothesis testing for two population variances calculator

F-Test Calculator

F-test - work with steps.

Input Data : Data set x = 1, 2, 4, 5, 8 Data set y = 5, 20, 40, 80, 100 Total number of elements = 5 Objective : Find the test of significance by using F-test. Solution : mean1 = (1 + 2 + 4 + 5 + 8)/5 = 20/5 mean1 = 4 mean2 = (5 + 20 + 40 + 80 + 100)/5 = 245/5 mean2 = 49 SD1 = √(1/5 - 1) x ((1 - 4) 2 + ( 2 - 4) 2 + ( 4 - 4) 2 + ( 5 - 4) 2 + ( 8 - 4) 2 ) = √(1/4) x ((-3) 2 + (-2) 2 + (0) 2 + (1) 2 + (4) 2 ) = √(0.25) x ((9) + (4) + (0) + (1) + (16)) = √(0.25) x 30 = √7.5 SD1 = 2.7386 SD2 = √(1/5 - 1) x ((5 - 49) 2 + ( 20 - 49) 2 + ( 40 - 49) 2 + ( 80 - 49) 2 + ( 100 - 49) 2 ) = √(1/4) x ((-44) 2 + (-29) 2 + (-9) 2 + (31) 2 + (51) 2 ) = √(0.25) x ((1936) + (841) + (81) + (961) + (2601)) = √(0.25) x 6420 = √1605 SD2 = 40.0625 variance x = (SD1) 2 = (2.7386) 2 variance x = 7.5 variance y = (SD2) 2 = (40.0625) 2 variance y = 1605 F = Varinance of dataset x Varinance of dataset y F = 7.5 1605 F = 0.0047

What is F-Test?

Test that uses F-distribution, named by Sir Ronald Fisher, is called an F-Test. F-distribution or the Fischer-Snedecor distribution, is a continuous statistical distribution used to test whether two observed samples have the same variance. A variable has an F-distribution if its distribution has the shape of a special type of curve, called an F-curve. Some examples of F-curves are shown in the picture below. The F-distribution for testing two population variances has two numbers of degrees of freedom, the number of independent pieces of information for each of the populations. The first number of degrees of freedom for an F-curve is called the degrees of freedom for the numerator, and the second is called the degrees of freedom for the denominator. The degrees of freedom corresponding to the variance in the numerator, d.f.N, and the degrees of freedom corresponding to the variance in the denominator, d.f.D. Degrees of freedom is sample size minus 1. F-distribution is not symmetrical and spans only non-negative numbers.

How to Calculate F-Test Critical Value

F-test practice problems.

Analysis of variance (ANOVA) uses F-tests to statistically test the equality of means. F-Test is also used in regression analysis to compare the fits of different linear models. It should be pointed out that the F-test function is categorized under Excel's Statistical functions. It gives the result of an F-Test for two given arrays or ranges. The function returns the two-tailed probability that the variances in the two arrays are not significantly different. This function is mostly used in financial analysis, especially it is useful in risk management. Practice Problem 1: A random sample of $13$ members has a standard deviation of $27.50$ and a random sample of $16$ members has a standard deviation of $29.75$. Find the p-value for F-Test. Practice Problem 2: Conduct a two tailed F-Test. The first sample has a variance of $118$ and size of $41$. The second sample has a variance of $65$ and size of $21$. The F-test calculator, work with steps, formula and practice problems would be very useful for grade school students (K-12 education) to learn what is F-test in statistics and probability, how to find it. It's applications is of great significance in the hypothesis testing of variances.

13.4 Test of Two Variances

Another use of the F distribution is testing two variances. It is often desirable to compare two variances rather than two averages. For instance, college administrators would like two college professors grading exams to have the same variation in their grading. For a lid to fit a container, the variation in the lid and the container should be the same. A supermarket might be interested in the variability of check-out times for two checkers.

To perform a F test of two variances, it is important that the following are true:

  • The populations from which the two samples are drawn are normally distributed.
  • The two populations are independent of each other.

Unlike most other tests in this book, the F test for equality of two variances is very sensitive to deviations from normality. If the two distributions are not normal, the test can give higher p -values than it should, or lower ones, in ways that are unpredictable. Many texts suggest that students not use this test at all, but in the interest of completeness we include it here.

Suppose we sample randomly from two independent normal populations. Let σ 1 2 σ 1 2 and σ 2 2 σ 2 2 be the population variances and s 1 2 s 1 2 and s 2 2 s 2 2 be the sample variances. Let the sample sizes be n 1 and n 2 . Since we are interested in comparing the two sample variances, we use the F ratio

F = [ ( s 1 ) 2 ( σ 1 ) 2 ] [ ( s 2 ) 2 ( σ 2 ) 2 ] . F = [ ( s 1 ) 2 ( σ 1 ) 2 ] [ ( s 2 ) 2 ( σ 2 ) 2 ] .

F has the distribution F ~ F ( n 1 – 1, n 2 – 1),

where n 1 – 1 are the degrees of freedom for the numerator and n 2 – 1 are the degrees of freedom for the denominator.

If the null hypothesis is σ 1 2 = σ 2 2 σ 1 2 = σ 2 2 , then the F ratio becomes F = [ ( s 1 ) 2 ( σ 1 ) 2 ] [ ( s 2 ) 2 ( σ 2 ) 2 ] = ( s 1 ) 2 ( s 2 ) 2 F = [ ( s 1 ) 2 ( σ 1 ) 2 ] [ ( s 2 ) 2 ( σ 2 ) 2 ] = ( s 1 ) 2 ( s 2 ) 2 .

The F ratio could also be ( s 2 ) 2 ( s 1 ) 2 ( s 2 ) 2 ( s 1 ) 2 . It depends on H a and on which sample variance is larger.

If the two populations have equal variances, then s 1 2 s 1 2 and s 2 2 s 2 2 are close in value and F = ( s 1 ) 2 ( s 2 ) 2 F = ( s 1 ) 2 ( s 2 ) 2 is close to 1. But if the two population variances are very different, s 1 2 s 1 2 and s 2 2 s 2 2 tend to be very different, too. Choosing s 1 2 s 1 2 as the larger sample variance causes the ratio ( s 1 ) 2 ( s 2 ) 2 ( s 1 ) 2 ( s 2 ) 2 to be greater than 1. If s 1 2 s 1 2 and s 2 2 s 2 2 are far apart, then F = ( s 1 ) 2 ( s 2 ) 2 F = ( s 1 ) 2 ( s 2 ) 2 is a large number.

Therefore, if F is close to 1, the evidence favors the null hypothesis (the two population variances are equal). But if F is much larger than 1, then the evidence is against the null hypothesis. A test of two variances may be left-tailed, right-tailed, or two-tailed.

Example 13.5

Two college instructors are interested in whethe there is any variation in the way they grade math exams. They each grade the same set of 30 exams. The first instructor’s grades have a variance of 52.3. The second instructor’s grades have a variance of 89.9. Test the claim that the first instructor’s variance is smaller. In most colleges, it is desirable for the variances of exam grades to be nearly the same among instructors. The level of significance is 10 percent.

Let 1 and 2 be the subscripts that indicate the first and second instructor, respectively.

n 1 = n 2 = 30.

H 0 : σ 1 2 = σ 2 2 σ 1 2 = σ 2 2 and H a : σ 1 2  <  σ 2 2 σ 1 2  <  σ 2 2 .

Calculate the test statistic: By the null hypothesis ( σ 1 2  =  σ 2 2 ) ( σ 1 2  =  σ 2 2 ) , the F statistic is

F = [ ( s 1 ) 2 ( σ 1 ) 2 ] [ ( s 2 ) 2 ( σ 2 ) 2 ] = ( s 1 ) 2 ( s 2 ) 2 = 52.3 89.9 = 0.5818. F = [ ( s 1 ) 2 ( σ 1 ) 2 ] [ ( s 2 ) 2 ( σ 2 ) 2 ] = ( s 1 ) 2 ( s 2 ) 2 = 52.3 89.9 = 0.5818.

Distribution for the test: F 29,29 where n 1 – 1 = 29 and n 2 – 1 = 29.

Graph: This test is left-tailed.

Draw the graph, labeling and shading appropriately.

Probability statement: p -value = P ( F < 0.5818) = 0.0753.

Compare α and the p -value: α = 0.10; α > p -value.

Make a decision: Since α > p -value, reject H 0 .

Conclusion: With a 10 percent level of significance from the data, there is sufficient evidence to conclude that the variance in grades for the first instructor is smaller.

Using the TI-83, 83+, 84, 84+ Calculator

Press STAT and arrow over to TESTS . Arrow down to D:2-SampFTest . Press ENTER . Arrow to Stats and press ENTER . For Sx1 , n1 , Sx2 , and n2 , enter ( 52.3 ) ( 52.3 ) , 30 , ( 89.9 ) ( 89.9 ) , and 30 . Press ENTER after each. Arrow to σ1: and < σ2 . Press ENTER . Arrow down to Calculate and press ENTER . F = 0.5818 and p -value = 0.0753. Do the procedure again and try Draw instead of Calculate .

Try It 13.5

The New York Choral Society divides male singers into four categories from highest voices to lowest: Tenor1, Tenor2, Bass1, and Bass2. In the table are heights of the men in the Tenor1 and Bass2 groups. One suspects that taller men will have lower voices, and that the variance of height may go up with the lower voices as well. Do we have good evidence that the variance of the heights of singers in each of these two groups (Tenor1 and Bass2) are different?

Tenor1 Bass2 Tenor1 Bass2 Tenor1 Bass2
69 72 67 72 68 67
72 75 70 74 67 70
71 67 65 70 64 70
66 75 72 66 69
76 74 70 68 72
74 72 68 75 71
71 72 64 68 74
66 74 73 70 75
68 72 66 72

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute Texas Education Agency (TEA). The original material is available at: https://www.texasgateway.org/book/tea-statistics . Changes were made to the original material, including updates to art, structure, and other content updates.

Access for free at https://openstax.org/books/statistics/pages/1-introduction
  • Authors: Barbara Illowsky, Susan Dean
  • Publisher/website: OpenStax
  • Book title: Statistics
  • Publication date: Mar 27, 2020
  • Location: Houston, Texas
  • Book URL: https://openstax.org/books/statistics/pages/1-introduction
  • Section URL: https://openstax.org/books/statistics/pages/13-4-test-of-two-variances

© Apr 16, 2024 Texas Education Agency (TEA). The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.

Logo

Two sample t test calculator

Welcome to our Two Sample T Test Calculator, the ideal tool for comparing mean values from two independent samples. This calculator calculates test statistics, p-values, critical values, judgments, and conclusions using both equal and unequal variance approaches. This tool is intended to help students, researchers, and data analysts simplify their statistical analyses.

Enter below values for sample 1 :

Enter below values for sample 2:

Related Calculators :

  • List of all calculator
  • P-value calculator
  • Critical value Calculator

What is a Two Sample T Test?

A Two Sample T Test is used to see if there is a significant difference in the means of two independent groups. This test is frequently used in experiments and research to compare two groups and draw conclusions about the population mean.

Features of Our Two Sample T-Test Calculator

  • Direct Data Entry: Enter each sample's raw data values directly into the calculator.
  • Summary Statistics: If you have summary statistics rather than raw data, please provide the sample size, mean, and standard deviation.
  • Hypothesis Testing: Determine whether your null and alternative hypotheses are two-tailed, right-tailed, or left-tailed.
  • Significance Level: Enter the significance level (alpha) for the test.
  • Variance Type: For more accurate results, select either equal or unequal variance.
  • Detailed Results: Receive complete results, including test statistics, p-values, critical values, and decision-making conclusions.

How To Use The Calculator

Select Data Type: Determine whether you have raw data values or summary statistics.

Enter Data: Fill in the data values or summary statistics for both samples.

Hypothesis Selection: Determine the relevant null and alternative hypotheses for your test.

Set the Significance Level: The alpha level is used to set the threshold for statistical significance.

Variance Type: Determine whether the variances of the two samples are equal or unequal.

Calculate: To view the results, simply click the "Calculate" button.

Example Use Cases

Our Two Sample T-Test Calculator can be applied in various fields, including:

  • Medical Research: Determine the efficacy of two different drugs.
  • Education: Compare test scores from two distinct teaching approaches.
  • Marketing: Evaluate the effectiveness of two marketing efforts.

Why Use Our Calculator?

  • Accuracy: Our calculator can perform precise estimates for both equal and unequal variance cases.
  • Ease of Use: A user-friendly interface with clear directions and inputs.
  • Comprehensive Results: Detailed output, including statistical computations and decision-making advice.

Frequently Asked Questions

Q: What is the difference between equal and unequal variances? A: Equal variance assumes that the two populations have equal variance, whereas unequal variance does not make this assumption. Selecting the proper option guarantees accurate results.

Q: How do I determine whether to conduct a two-tailed, right-tailed, or left-tailed test? A: It depends on your research hypothesis. If you want to find a significant difference, conduct a two-tailed test. If you predict the first sample's mean to be greater than the second, perform a right-tailed test. If you predict the first sample's mean to be less than the second, perform a left-tailed test.

Hypothesis Testing > F-Test Contents:

What is an F Test?

General steps for an f test.

  • Two-tailed F test
  • Excel instructions

See also: F Statistic in ANOVA/Regression

Watch the video for an overview of the F Test:

hypothesis testing for two population variances calculator

Can’t see the video? Click here to watch it on YouTube.

An “F Test” is a catch-all term for any test that uses the F-distribution . In most cases, when people talk about the F-Test, what they are actually talking about is The F-Test to Compare Two Variances. However, the f-statistic is used in a variety of tests including regression analysis , the Chow test and the Scheffe Test (a post-hoc ANOVA test).

If you’re running an F Test, you should use Excel , SPSS , Minitab or some other kind of technology to run the test. Why? Calculating the F test by hand, including variances, is tedious and time-consuming. Therefore you’ll probably make some errors along the way.

If you’re running an F Test using technology (for example, an F Test two sample for variances in Excel ), the only steps you really need to do are Step 1 and 4 (dealing with the null hypothesis). Technology will calculate Steps 2 and 3 for you.

  • State the null hypothesis and the alternate hypothesis .
  • Calculate the F value . The F Value is calculated using the formula F = (SSE 1 – SSE 2 / m) / SSE 2 / n-k, where SSE = residual sum of squares , m = number of restrictions and k = number of independent variables.
  • Find the F Statistic (the critical value for this test). The F statistic formula is: F Statistic = variance of the group means / mean of the within group variances. You can find the F Statistic in the F-Table .
  • Support or Reject the Null Hypothesis .

Back to Top

F Test to Compare Two Variances

A Statistical F Test uses an F Statistic to compare two variances , s 1 and s 2 , by dividing them. The result is always a positive number (because variances are always positive). The equation for comparing two variances with the f-test is: F = s 2 1 / s 2 2

If the variances are equal, the ratio of the variances will equal 1. For example, if you had two data sets with a sample 1 (variance of 10) and a sample 2 (variance of 10), the ratio would be 10/10 = 1.

You always test that the population variances are equal when running an F Test. In other words, you always assume that the variances are equal to 1. Therefore, your null hypothesis will always be that the variances are equal .

Assumptions

Several assumptions are made for the test. Your population must be approximately normally distributed (i.e. fit the shape of a bell curve ) in order to use the test. Plus, the samples must be independent events . In addition, you’ll want to bear in mind a few important points:

  • The larger variance should always go in the numerator (the top number) to force the test into a right-tailed test . Right-tailed tests are easier to calculate.
  • For two-tailed tests , divide alpha by 2 before finding the right critical value .
  • If you are given standard deviations , they must be squared to get the variances.
  • If your degrees of freedom aren’t listed in the F Table, use the larger critical value. This helps to avoid the possibility of Type I errors .

F Test to compare two variances by hand: Steps

Need help with a specific question? Check out our tutoring page! Warning : F tests can get really tedious to calculate by hand, especially if you have to calculate the variances. You’re much better off using technology (like Excel — see below).

These are the general steps to follow. Scroll down for a specific example.

Step 1 : If you are given standard deviations , go to Step 2. If you are given variances to compare, go to Step 3.

Step 2: Square both standard deviations to get the variances. For example, if σ 1 = 9.6 and σ 2 = 10.9, then the variances (s 1 and s 2 ) would be 9.6 2 = 92.16 and 10.9 2 = 118.81 .

Step 3: Take the largest variance, and divide it by the smallest variance to get the f-value. For example, if your two variances were s 1 = 2.5 and s 2 = 9.4, divide 9.4 / 2.5 = 3.76 . Why? Placing the largest variance on top will force the F-test into a right tailed test , which is much easier to calculate than a left-tailed test.

Step 4: Find your degrees of freedom . Degrees of freedom is your sample size minus 1. As you have two samples (variance 1 and variance 2), you’ll have two degrees of freedom: one for the numerator and one for the denominator.

Step 5: Look at the f-value you calculated in Step 3 in the f-table. Note that there are several tables, so you’ll need to locate the right table for your alpha level . Unsure how to read an f-table? Read What is an f-table? .

Step 6: Compare your calculated value (Step 3) with the table f-value in Step 5. If the f-table value is smaller than the calculated value, you can reject the null hypothesis.

That’s it! Back to Top

Two Tailed F-Test

The difference between running a one or two tailed F test is that the alpha level needs to be halved for two tailed F tests. For example, instead of working at α = 0.05, you use α = 0.025; Instead of working at α = 0.01, you use α = 0.005.

With a two tailed F test, you just want to know if the variances are not equal to each other. In notation: H a = σ 2 1 ≠ σ 2 2

Example problem: Conduct a two tailed F Test on the following samples: Sample 1: Variance = 109.63, sample size = 41. Sample 2: Variance = 65.99, sample size = 21.

Step 1: Write your hypothesis statements: H o : No difference in variances. H a : Difference in variances.

Step 2: Calculate your F critical value . Put the highest variance as the numerator and the lowest variance as the denominator: F Statistic = variance 1/ variance 2 = 109.63 / 65.99 = 1.66

Step 3: Calculate the degrees of freedom : The degrees of freedom in the table will be the sample size -1, so: Sample 1 has 40 df (the numerator). Sample 2 has 20 df (the denominator).

Step 4: Choose an alpha level . No alpha was stated in the question, so use 0.05 (the standard “go to” in statistics). This needs to be halved for the two-tailed test , so use 0.025.

f-test

F-Test to Compare Two Variances in Excel

F-test two sample for variances excel 2013: steps.

Step 1: Click the “Data” tab and then click “Data Analysis.” Step 2: Click “F test two sample for variances” and then click “OK.” Step 3: Click the Variable 1 Range box and then type the location for your first set of data. For example, if you typed your data into cells A1 to A10, type “A1:A10” into that box. Step 4: Click the Variable 2 box and then type the location for your second set of data. For example, if you typed your data into cells B1 to B10, type “B1:B10” into that box. Step 5: Click the “Labels” box if your data has column headers. Step 6: Choose an alpha level . In most cases, an alpha level of 0.05 is usually fine. Step 7: Select a location for your output. For example, click the “New Worksheet” radio button. Step 8: Click “OK.” Step 9: Read the results. If your f-value is higher than your F critical value, reject the null hypothesis as your two populations have unequal variances.

Warning: Excel has a small “quirk.” Make sure that variance 1 is higher than variance 2. If it isn’t switch your input data around (i.e. make input 1 “B” and input 2 “A”). Otherwise, Excel will calculate an incorrect f-value. This is because the variance is a ratio of variance 1/variance 2, and Excel can’t work out which set of data is set 1 and set 2 without you explicitly telling it.

f test two sample for variances excel 2013

Subscribe to our Youtube channel for more statistics videos.

Archdeacon, T. (1994). Correlation and Regression Analysis: A Historian’s Guide . Univ of Wisconsin Press.

H : \( \sigma_{1}^{2} \) = \( \sigma_{2}^{2} \)
H :
\( \sigma_{1}^{2} for a lower one-tailed test
\( \sigma_{1}^{2} > \sigma_{2}^{2} \)     for an upper one-tailed test
\( \sigma_{1}^{2} \ne \sigma_{2}^{2} \)     for a two-tailed test
\( F > F_{\alpha,N_1 - 1,N_2 - 1} \)    for an upper one-tailed test
\( F for a lower one-tailed test
\( F    for a two-tailed test

Hypothesis Testing Calculator

$H_o$:
$H_a$: μ μ₀
$n$ =   $\bar{x}$ =   =
$\text{Test Statistic: }$ =
$\text{Degrees of Freedom: } $ $df$ =
$ \text{Level of Significance: } $ $\alpha$ =

Type II Error

$H_o$: $\mu$
$H_a$: $\mu$ $\mu_0$
$n$ =   σ =   $\mu$ =
$\text{Level of Significance: }$ $\alpha$ =

The first step in hypothesis testing is to calculate the test statistic. The formula for the test statistic depends on whether the population standard deviation (σ) is known or unknown. If σ is known, our hypothesis test is known as a z test and we use the z distribution. If σ is unknown, our hypothesis test is known as a t test and we use the t distribution. Use of the t distribution relies on the degrees of freedom, which is equal to the sample size minus one. Furthermore, if the population standard deviation σ is unknown, the sample standard deviation s is used instead. To switch from σ known to σ unknown, click on $\boxed{\sigma}$ and select $\boxed{s}$ in the Hypothesis Testing Calculator.

$\sigma$ Known $\sigma$ Unknown
Test Statistic $ z = \dfrac{\bar{x}-\mu_0}{\sigma/\sqrt{{\color{Black} n}}} $ $ t = \dfrac{\bar{x}-\mu_0}{s/\sqrt{n}} $

Next, the test statistic is used to conduct the test using either the p-value approach or critical value approach. The particular steps taken in each approach largely depend on the form of the hypothesis test: lower tail, upper tail or two-tailed. The form can easily be identified by looking at the alternative hypothesis (H a ). If there is a less than sign in the alternative hypothesis then it is a lower tail test, greater than sign is an upper tail test and inequality is a two-tailed test. To switch from a lower tail test to an upper tail or two-tailed test, click on $\boxed{\geq}$ and select $\boxed{\leq}$ or $\boxed{=}$, respectively.

Lower Tail Test Upper Tail Test Two-Tailed Test
$H_0 \colon \mu \geq \mu_0$ $H_0 \colon \mu \leq \mu_0$ $H_0 \colon \mu = \mu_0$
$H_a \colon \mu $H_a \colon \mu \neq \mu_0$

In the p-value approach, the test statistic is used to calculate a p-value. If the test is a lower tail test, the p-value is the probability of getting a value for the test statistic at least as small as the value from the sample. If the test is an upper tail test, the p-value is the probability of getting a value for the test statistic at least as large as the value from the sample. In a two-tailed test, the p-value is the probability of getting a value for the test statistic at least as unlikely as the value from the sample.

To test the hypothesis in the p-value approach, compare the p-value to the level of significance. If the p-value is less than or equal to the level of signifance, reject the null hypothesis. If the p-value is greater than the level of significance, do not reject the null hypothesis. This method remains unchanged regardless of whether it's a lower tail, upper tail or two-tailed test. To change the level of significance, click on $\boxed{.05}$. Note that if the test statistic is given, you can calculate the p-value from the test statistic by clicking on the switch symbol twice.

In the critical value approach, the level of significance ($\alpha$) is used to calculate the critical value. In a lower tail test, the critical value is the value of the test statistic providing an area of $\alpha$ in the lower tail of the sampling distribution of the test statistic. In an upper tail test, the critical value is the value of the test statistic providing an area of $\alpha$ in the upper tail of the sampling distribution of the test statistic. In a two-tailed test, the critical values are the values of the test statistic providing areas of $\alpha / 2$ in the lower and upper tail of the sampling distribution of the test statistic.

To test the hypothesis in the critical value approach, compare the critical value to the test statistic. Unlike the p-value approach, the method we use to decide whether to reject the null hypothesis depends on the form of the hypothesis test. In a lower tail test, if the test statistic is less than or equal to the critical value, reject the null hypothesis. In an upper tail test, if the test statistic is greater than or equal to the critical value, reject the null hypothesis. In a two-tailed test, if the test statistic is less than or equal the lower critical value or greater than or equal to the upper critical value, reject the null hypothesis.

Lower Tail Test Upper Tail Test Two-Tailed Test
If $z \leq -z_\alpha$, reject $H_0$. If $z \geq z_\alpha$, reject $H_0$. If $z \leq -z_{\alpha/2}$ or $z \geq z_{\alpha/2}$, reject $H_0$.
If $t \leq -t_\alpha$, reject $H_0$. If $t \geq t_\alpha$, reject $H_0$. If $t \leq -t_{\alpha/2}$ or $t \geq t_{\alpha/2}$, reject $H_0$.

When conducting a hypothesis test, there is always a chance that you come to the wrong conclusion. There are two types of errors you can make: Type I Error and Type II Error. A Type I Error is committed if you reject the null hypothesis when the null hypothesis is true. Ideally, we'd like to accept the null hypothesis when the null hypothesis is true. A Type II Error is committed if you accept the null hypothesis when the alternative hypothesis is true. Ideally, we'd like to reject the null hypothesis when the alternative hypothesis is true.

Condition
$H_0$ True $H_a$ True
Conclusion Accept $H_0$ Correct Type II Error
Reject $H_0$ Type I Error Correct

Hypothesis testing is closely related to the statistical area of confidence intervals. If the hypothesized value of the population mean is outside of the confidence interval, we can reject the null hypothesis. Confidence intervals can be found using the Confidence Interval Calculator . The calculator on this page does hypothesis tests for one population mean. Sometimes we're interest in hypothesis tests about two population means. These can be solved using the Two Population Calculator . The probability of a Type II Error can be calculated by clicking on the link at the bottom of the page.

t-test Calculator

Table of contents

Welcome to our t-test calculator! Here you can not only easily perform one-sample t-tests , but also two-sample t-tests , as well as paired t-tests .

Do you prefer to find the p-value from t-test, or would you rather find the t-test critical values? Well, this t-test calculator can do both! 😊

What does a t-test tell you? Take a look at the text below, where we explain what actually gets tested when various types of t-tests are performed. Also, we explain when to use t-tests (in particular, whether to use the z-test vs. t-test) and what assumptions your data should satisfy for the results of a t-test to be valid. If you've ever wanted to know how to do a t-test by hand, we provide the necessary t-test formula, as well as tell you how to determine the number of degrees of freedom in a t-test.

When to use a t-test?

A t-test is one of the most popular statistical tests for location , i.e., it deals with the population(s) mean value(s).

There are different types of t-tests that you can perform:

  • A one-sample t-test;
  • A two-sample t-test; and
  • A paired t-test.

In the next section , we explain when to use which. Remember that a t-test can only be used for one or two groups . If you need to compare three (or more) means, use the analysis of variance ( ANOVA ) method.

The t-test is a parametric test, meaning that your data has to fulfill some assumptions :

  • The data points are independent; AND
  • The data, at least approximately, follow a normal distribution .

If your sample doesn't fit these assumptions, you can resort to nonparametric alternatives. Visit our Mann–Whitney U test calculator or the Wilcoxon rank-sum test calculator to learn more. Other possibilities include the Wilcoxon signed-rank test or the sign test.

Which t-test?

Your choice of t-test depends on whether you are studying one group or two groups:

One sample t-test

Choose the one-sample t-test to check if the mean of a population is equal to some pre-set hypothesized value .

The average volume of a drink sold in 0.33 l cans — is it really equal to 330 ml?

The average weight of people from a specific city — is it different from the national average?

Two-sample t-test

Choose the two-sample t-test to check if the difference between the means of two populations is equal to some pre-determined value when the two samples have been chosen independently of each other.

In particular, you can use this test to check whether the two groups are different from one another .

The average difference in weight gain in two groups of people: one group was on a high-carb diet and the other on a high-fat diet.

The average difference in the results of a math test from students at two different universities.

This test is sometimes referred to as an independent samples t-test , or an unpaired samples t-test .

Paired t-test

A paired t-test is used to investigate the change in the mean of a population before and after some experimental intervention , based on a paired sample, i.e., when each subject has been measured twice: before and after treatment.

In particular, you can use this test to check whether, on average, the treatment has had any effect on the population .

The change in student test performance before and after taking a course.

The change in blood pressure in patients before and after administering some drug.

How to do a t-test?

So, you've decided which t-test to perform. These next steps will tell you how to calculate the p-value from t-test or its critical values, and then which decision to make about the null hypothesis.

Decide on the alternative hypothesis :

Use a two-tailed t-test if you only care whether the population's mean (or, in the case of two populations, the difference between the populations' means) agrees or disagrees with the pre-set value.

Use a one-tailed t-test if you want to test whether this mean (or difference in means) is greater/less than the pre-set value.

Compute your T-score value :

Formulas for the test statistic in t-tests include the sample size , as well as its mean and standard deviation . The exact formula depends on the t-test type — check the sections dedicated to each particular test for more details.

Determine the degrees of freedom for the t-test:

The degrees of freedom are the number of observations in a sample that are free to vary as we estimate statistical parameters. In the simplest case, the number of degrees of freedom equals your sample size minus the number of parameters you need to estimate . Again, the exact formula depends on the t-test you want to perform — check the sections below for details.

The degrees of freedom are essential, as they determine the distribution followed by your T-score (under the null hypothesis). If there are d degrees of freedom, then the distribution of the test statistics is the t-Student distribution with d degrees of freedom . This distribution has a shape similar to N(0,1) (bell-shaped and symmetric) but has heavier tails . If the number of degrees of freedom is large (>30), which generically happens for large samples, the t-Student distribution is practically indistinguishable from N(0,1).

💡 The t-Student distribution owes its name to William Sealy Gosset, who, in 1908, published his paper on the t-test under the pseudonym "Student". Gosset worked at the famous Guinness Brewery in Dublin, Ireland, and devised the t-test as an economical way to monitor the quality of beer. Cheers! 🍺🍺🍺

p-value from t-test

Recall that the p-value is the probability (calculated under the assumption that the null hypothesis is true) that the test statistic will produce values at least as extreme as the T-score produced for your sample . As probabilities correspond to areas under the density function, p-value from t-test can be nicely illustrated with the help of the following pictures:

p-value from t-test

The following formulae say how to calculate p-value from t-test. By cdf t,d we denote the cumulative distribution function of the t-Student distribution with d degrees of freedom:

p-value from left-tailed t-test:

p-value = cdf t,d (t score )

p-value from right-tailed t-test:

p-value = 1 − cdf t,d (t score )

p-value from two-tailed t-test:

p-value = 2 × cdf t,d (−|t score |)

or, equivalently: p-value = 2 − 2 × cdf t,d (|t score |)

However, the cdf of the t-distribution is given by a somewhat complicated formula. To find the p-value by hand, you would need to resort to statistical tables, where approximate cdf values are collected, or to specialized statistical software. Fortunately, our t-test calculator determines the p-value from t-test for you in the blink of an eye!

t-test critical values

Recall, that in the critical values approach to hypothesis testing, you need to set a significance level, α, before computing the critical values , which in turn give rise to critical regions (a.k.a. rejection regions).

Formulas for critical values employ the quantile function of t-distribution, i.e., the inverse of the cdf :

Critical value for left-tailed t-test: cdf t,d -1 (α)

critical region:

(-∞, cdf t,d -1 (α)]

Critical value for right-tailed t-test: cdf t,d -1 (1-α)

[cdf t,d -1 (1-α), ∞)

Critical values for two-tailed t-test: ±cdf t,d -1 (1-α/2)

(-∞, -cdf t,d -1 (1-α/2)] ∪ [cdf t,d -1 (1-α/2), ∞)

To decide the fate of the null hypothesis, just check if your T-score lies within the critical region:

If your T-score belongs to the critical region , reject the null hypothesis and accept the alternative hypothesis.

If your T-score is outside the critical region , then you don't have enough evidence to reject the null hypothesis.

How to use our t-test calculator

Choose the type of t-test you wish to perform:

A one-sample t-test (to test the mean of a single group against a hypothesized mean);

A two-sample t-test (to compare the means for two groups); or

A paired t-test (to check how the mean from the same group changes after some intervention).

Two-tailed;

Left-tailed; or

Right-tailed.

This t-test calculator allows you to use either the p-value approach or the critical regions approach to hypothesis testing!

Enter your T-score and the number of degrees of freedom . If you don't know them, provide some data about your sample(s): sample size, mean, and standard deviation, and our t-test calculator will compute the T-score and degrees of freedom for you .

Once all the parameters are present, the p-value, or critical region, will immediately appear underneath the t-test calculator, along with an interpretation!

One-sample t-test

The null hypothesis is that the population mean is equal to some value μ 0 \mu_0 μ 0 ​ .

The alternative hypothesis is that the population mean is:

  • different from μ 0 \mu_0 μ 0 ​ ;
  • smaller than μ 0 \mu_0 μ 0 ​ ; or
  • greater than μ 0 \mu_0 μ 0 ​ .

One-sample t-test formula :

  • μ 0 \mu_0 μ 0 ​ — Mean postulated in the null hypothesis;
  • n n n — Sample size;
  • x ˉ \bar{x} x ˉ — Sample mean; and
  • s s s — Sample standard deviation.

Number of degrees of freedom in t-test (one-sample) = n − 1 n-1 n − 1 .

The null hypothesis is that the actual difference between these groups' means, μ 1 \mu_1 μ 1 ​ , and μ 2 \mu_2 μ 2 ​ , is equal to some pre-set value, Δ \Delta Δ .

The alternative hypothesis is that the difference μ 1 − μ 2 \mu_1 - \mu_2 μ 1 ​ − μ 2 ​ is:

  • Different from Δ \Delta Δ ;
  • Smaller than Δ \Delta Δ ; or
  • Greater than Δ \Delta Δ .

In particular, if this pre-determined difference is zero ( Δ = 0 \Delta = 0 Δ = 0 ):

The null hypothesis is that the population means are equal.

The alternate hypothesis is that the population means are:

  • μ 1 \mu_1 μ 1 ​ and μ 2 \mu_2 μ 2 ​ are different from one another;
  • μ 1 \mu_1 μ 1 ​ is smaller than μ 2 \mu_2 μ 2 ​ ; and
  • μ 1 \mu_1 μ 1 ​ is greater than μ 2 \mu_2 μ 2 ​ .

Formally, to perform a t-test, we should additionally assume that the variances of the two populations are equal (this assumption is called the homogeneity of variance ).

There is a version of a t-test that can be applied without the assumption of homogeneity of variance: it is called a Welch's t-test . For your convenience, we describe both versions.

Two-sample t-test if variances are equal

Use this test if you know that the two populations' variances are the same (or very similar).

Two-sample t-test formula (with equal variances) :

where s p s_p s p ​ is the so-called pooled standard deviation , which we compute as:

  • Δ \Delta Δ — Mean difference postulated in the null hypothesis;
  • n 1 n_1 n 1 ​ — First sample size;
  • x ˉ 1 \bar{x}_1 x ˉ 1 ​ — Mean for the first sample;
  • s 1 s_1 s 1 ​ — Standard deviation in the first sample;
  • n 2 n_2 n 2 ​ — Second sample size;
  • x ˉ 2 \bar{x}_2 x ˉ 2 ​ — Mean for the second sample; and
  • s 2 s_2 s 2 ​ — Standard deviation in the second sample.

Number of degrees of freedom in t-test (two samples, equal variances) = n 1 + n 2 − 2 n_1 + n_2 - 2 n 1 ​ + n 2 ​ − 2 .

Two-sample t-test if variances are unequal (Welch's t-test)

Use this test if the variances of your populations are different.

Two-sample Welch's t-test formula if variances are unequal:

  • s 1 s_1 s 1 ​ — Standard deviation in the first sample;
  • s 2 s_2 s 2 ​ — Standard deviation in the second sample.

The number of degrees of freedom in a Welch's t-test (two-sample t-test with unequal variances) is very difficult to count. We can approximate it with the help of the following Satterthwaite formula :

Alternatively, you can take the smaller of n 1 − 1 n_1 - 1 n 1 ​ − 1 and n 2 − 1 n_2 - 1 n 2 ​ − 1 as a conservative estimate for the number of degrees of freedom.

🔎 The Satterthwaite formula for the degrees of freedom can be rewritten as a scaled weighted harmonic mean of the degrees of freedom of the respective samples: n 1 − 1 n_1 - 1 n 1 ​ − 1 and n 2 − 1 n_2 - 1 n 2 ​ − 1 , and the weights are proportional to the standard deviations of the corresponding samples.

As we commonly perform a paired t-test when we have data about the same subjects measured twice (before and after some treatment), let us adopt the convention of referring to the samples as the pre-group and post-group.

The null hypothesis is that the true difference between the means of pre- and post-populations is equal to some pre-set value, Δ \Delta Δ .

The alternative hypothesis is that the actual difference between these means is:

Typically, this pre-determined difference is zero. We can then reformulate the hypotheses as follows:

The null hypothesis is that the pre- and post-means are the same, i.e., the treatment has no impact on the population .

The alternative hypothesis:

  • The pre- and post-means are different from one another (treatment has some effect);
  • The pre-mean is smaller than the post-mean (treatment increases the result); or
  • The pre-mean is greater than the post-mean (treatment decreases the result).

Paired t-test formula

In fact, a paired t-test is technically the same as a one-sample t-test! Let us see why it is so. Let x 1 , . . . , x n x_1, ... , x_n x 1 ​ , ... , x n ​ be the pre observations and y 1 , . . . , y n y_1, ... , y_n y 1 ​ , ... , y n ​ the respective post observations. That is, x i , y i x_i, y_i x i ​ , y i ​ are the before and after measurements of the i -th subject.

For each subject, compute the difference, d i : = x i − y i d_i := x_i - y_i d i ​ := x i ​ − y i ​ . All that happens next is just a one-sample t-test performed on the sample of differences d 1 , . . . , d n d_1, ... , d_n d 1 ​ , ... , d n ​ . Take a look at the formula for the T-score :

Δ \Delta Δ — Mean difference postulated in the null hypothesis;

n n n — Size of the sample of differences, i.e., the number of pairs;

x ˉ \bar{x} x ˉ — Mean of the sample of differences; and

s s s  — Standard deviation of the sample of differences.

Number of degrees of freedom in t-test (paired): n − 1 n - 1 n − 1

t-test vs Z-test

We use a Z-test when we want to test the population mean of a normally distributed dataset, which has a known population variance . If the number of degrees of freedom is large, then the t-Student distribution is very close to N(0,1).

Hence, if there are many data points (at least 30), you may swap a t-test for a Z-test, and the results will be almost identical. However, for small samples with unknown variance, remember to use the t-test because, in such cases, the t-Student distribution differs significantly from the N(0,1)!

🙋 Have you concluded you need to perform the z-test? Head straight to our z-test calculator !

What is a t-test?

A t-test is a widely used statistical test that analyzes the means of one or two groups of data. For instance, a t-test is performed on medical data to determine whether a new drug really helps.

What are different types of t-tests?

Different types of t-tests are:

  • One-sample t-test;
  • Two-sample t-test; and
  • Paired t-test.

How to find the t value in a one sample t-test?

To find the t-value:

  • Subtract the null hypothesis mean from the sample mean value.
  • Divide the difference by the standard deviation of the sample.
  • Multiply the resultant with the square root of the sample size.

.css-m482sy.css-m482sy{color:#2B3148;background-color:transparent;font-family:var(--calculator-ui-font-family),Verdana,sans-serif;font-size:20px;line-height:24px;overflow:visible;padding-top:0px;position:relative;}.css-m482sy.css-m482sy:after{content:'';-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0);position:absolute;border:2px solid #EA9430;border-radius:2px;inset:-8px;z-index:1;}.css-m482sy .js-external-link-button.link-like,.css-m482sy .js-external-link-anchor{color:inherit;border-radius:1px;-webkit-text-decoration:underline;text-decoration:underline;}.css-m482sy .js-external-link-button.link-like:hover,.css-m482sy .js-external-link-anchor:hover,.css-m482sy .js-external-link-button.link-like:active,.css-m482sy .js-external-link-anchor:active{text-decoration-thickness:2px;text-shadow:1px 0 0;}.css-m482sy .js-external-link-button.link-like:focus-visible,.css-m482sy .js-external-link-anchor:focus-visible{outline:transparent 2px dotted;box-shadow:0 0 0 2px #6314E6;}.css-m482sy p,.css-m482sy div{margin:0;display:block;}.css-m482sy pre{margin:0;display:block;}.css-m482sy pre code{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}.css-m482sy pre:not(:first-child){padding-top:8px;}.css-m482sy ul,.css-m482sy ol{display:block margin:0;padding-left:20px;}.css-m482sy ul li,.css-m482sy ol li{padding-top:8px;}.css-m482sy ul ul,.css-m482sy ol ul,.css-m482sy ul ol,.css-m482sy ol ol{padding-top:0;}.css-m482sy ul:not(:first-child),.css-m482sy ol:not(:first-child){padding-top:4px;} .css-63uqft{margin:auto;background-color:white;overflow:auto;overflow-wrap:break-word;word-break:break-word;}.css-63uqft code,.css-63uqft kbd,.css-63uqft pre,.css-63uqft samp{font-family:monospace;}.css-63uqft code{padding:2px 4px;color:#444;background:#ddd;border-radius:4px;}.css-63uqft figcaption,.css-63uqft caption{text-align:center;}.css-63uqft figcaption{font-size:12px;font-style:italic;overflow:hidden;}.css-63uqft h3{font-size:1.75rem;}.css-63uqft h4{font-size:1.5rem;}.css-63uqft .mathBlock{font-size:24px;-webkit-padding-start:4px;padding-inline-start:4px;}.css-63uqft .mathBlock .katex{font-size:24px;text-align:left;}.css-63uqft .math-inline{background-color:#f0f0f0;display:inline-block;font-size:inherit;padding:0 3px;}.css-63uqft .videoBlock,.css-63uqft .imageBlock{margin-bottom:16px;}.css-63uqft .imageBlock__image-align--left,.css-63uqft .videoBlock__video-align--left{float:left;}.css-63uqft .imageBlock__image-align--right,.css-63uqft .videoBlock__video-align--right{float:right;}.css-63uqft .imageBlock__image-align--center,.css-63uqft .videoBlock__video-align--center{display:block;margin-left:auto;margin-right:auto;clear:both;}.css-63uqft .imageBlock__image-align--none,.css-63uqft .videoBlock__video-align--none{clear:both;margin-left:0;margin-right:0;}.css-63uqft .videoBlock__video--wrapper{position:relative;padding-bottom:56.25%;height:0;}.css-63uqft .videoBlock__video--wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%;}.css-63uqft .videoBlock__caption{text-align:left;}@font-face{font-family:'KaTeX_AMS';src:url(/katex-fonts/KaTeX_AMS-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_AMS-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_AMS-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Caligraphic';src:url(/katex-fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_Caligraphic-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_Caligraphic-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_Caligraphic';src:url(/katex-fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Caligraphic-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Caligraphic-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Fraktur';src:url(/katex-fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_Fraktur-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_Fraktur-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_Fraktur';src:url(/katex-fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Fraktur-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Fraktur-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_Main-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-BoldItalic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-BoldItalic.woff) format('woff'),url(/katex-fonts/KaTeX_Main-BoldItalic.ttf) format('truetype');font-weight:bold;font-style:italic;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-Italic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-Italic.woff) format('woff'),url(/katex-fonts/KaTeX_Main-Italic.ttf) format('truetype');font-weight:normal;font-style:italic;}@font-face{font-family:'KaTeX_Main';src:url(/katex-fonts/KaTeX_Main-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Main-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Main-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Math';src:url(/katex-fonts/KaTeX_Math-BoldItalic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Math-BoldItalic.woff) format('woff'),url(/katex-fonts/KaTeX_Math-BoldItalic.ttf) format('truetype');font-weight:bold;font-style:italic;}@font-face{font-family:'KaTeX_Math';src:url(/katex-fonts/KaTeX_Math-Italic.woff2) format('woff2'),url(/katex-fonts/KaTeX_Math-Italic.woff) format('woff'),url(/katex-fonts/KaTeX_Math-Italic.ttf) format('truetype');font-weight:normal;font-style:italic;}@font-face{font-family:'KaTeX_SansSerif';src:url(/katex-fonts/KaTeX_SansSerif-Bold.woff2) format('woff2'),url(/katex-fonts/KaTeX_SansSerif-Bold.woff) format('woff'),url(/katex-fonts/KaTeX_SansSerif-Bold.ttf) format('truetype');font-weight:bold;font-style:normal;}@font-face{font-family:'KaTeX_SansSerif';src:url(/katex-fonts/KaTeX_SansSerif-Italic.woff2) format('woff2'),url(/katex-fonts/KaTeX_SansSerif-Italic.woff) format('woff'),url(/katex-fonts/KaTeX_SansSerif-Italic.ttf) format('truetype');font-weight:normal;font-style:italic;}@font-face{font-family:'KaTeX_SansSerif';src:url(/katex-fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_SansSerif-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_SansSerif-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Script';src:url(/katex-fonts/KaTeX_Script-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Script-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Script-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size1';src:url(/katex-fonts/KaTeX_Size1-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size1-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size1-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size2';src:url(/katex-fonts/KaTeX_Size2-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size2-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size2-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size3';src:url(/katex-fonts/KaTeX_Size3-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size3-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size3-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Size4';src:url(/katex-fonts/KaTeX_Size4-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Size4-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Size4-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}@font-face{font-family:'KaTeX_Typewriter';src:url(/katex-fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'),url(/katex-fonts/KaTeX_Typewriter-Regular.woff) format('woff'),url(/katex-fonts/KaTeX_Typewriter-Regular.ttf) format('truetype');font-weight:normal;font-style:normal;}.css-63uqft .katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto;}.css-63uqft .katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor;}.css-63uqft .katex .katex-version::after{content:'0.13.13';}.css-63uqft .katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden;}.css-63uqft .katex .katex-html>.newline{display:block;}.css-63uqft .katex .base{position:relative;display:inline-block;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:-webkit-min-content;width:-moz-min-content;width:min-content;}.css-63uqft .katex .strut{display:inline-block;}.css-63uqft .katex .textbf{font-weight:bold;}.css-63uqft .katex .textit{font-style:italic;}.css-63uqft .katex .textrm{font-family:KaTeX_Main;}.css-63uqft .katex .textsf{font-family:KaTeX_SansSerif;}.css-63uqft .katex .texttt{font-family:KaTeX_Typewriter;}.css-63uqft .katex .mathnormal{font-family:KaTeX_Math;font-style:italic;}.css-63uqft .katex .mathit{font-family:KaTeX_Main;font-style:italic;}.css-63uqft .katex .mathrm{font-style:normal;}.css-63uqft .katex .mathbf{font-family:KaTeX_Main;font-weight:bold;}.css-63uqft .katex .boldsymbol{font-family:KaTeX_Math;font-weight:bold;font-style:italic;}.css-63uqft .katex .amsrm{font-family:KaTeX_AMS;}.css-63uqft .katex .mathbb,.css-63uqft .katex .textbb{font-family:KaTeX_AMS;}.css-63uqft .katex .mathcal{font-family:KaTeX_Caligraphic;}.css-63uqft .katex .mathfrak,.css-63uqft .katex .textfrak{font-family:KaTeX_Fraktur;}.css-63uqft .katex .mathtt{font-family:KaTeX_Typewriter;}.css-63uqft .katex .mathscr,.css-63uqft .katex .textscr{font-family:KaTeX_Script;}.css-63uqft .katex .mathsf,.css-63uqft .katex .textsf{font-family:KaTeX_SansSerif;}.css-63uqft .katex .mathboldsf,.css-63uqft .katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:bold;}.css-63uqft .katex .mathitsf,.css-63uqft .katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic;}.css-63uqft .katex .mainrm{font-family:KaTeX_Main;font-style:normal;}.css-63uqft .katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse;}.css-63uqft .katex .vlist-r{display:table-row;}.css-63uqft .katex .vlist{display:table-cell;vertical-align:bottom;position:relative;}.css-63uqft .katex .vlist>span{display:block;height:0;position:relative;}.css-63uqft .katex .vlist>span>span{display:inline-block;}.css-63uqft .katex .vlist>span>.pstrut{overflow:hidden;width:0;}.css-63uqft .katex .vlist-t2{margin-right:-2px;}.css-63uqft .katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px;}.css-63uqft .katex .vbox{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:baseline;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;}.css-63uqft .katex .hbox{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:100%;}.css-63uqft .katex .thinbox{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:0;max-width:0;}.css-63uqft .katex .msupsub{text-align:left;}.css-63uqft .katex .mfrac>span>span{text-align:center;}.css-63uqft .katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid;}.css-63uqft .katex .mfrac .frac-line,.css-63uqft .katex .overline .overline-line,.css-63uqft .katex .underline .underline-line,.css-63uqft .katex .hline,.css-63uqft .katex .hdashline,.css-63uqft .katex .rule{min-height:1px;}.css-63uqft .katex .mspace{display:inline-block;}.css-63uqft .katex .llap,.css-63uqft .katex .rlap,.css-63uqft .katex .clap{width:0;position:relative;}.css-63uqft .katex .llap>.inner,.css-63uqft .katex .rlap>.inner,.css-63uqft .katex .clap>.inner{position:absolute;}.css-63uqft .katex .llap>.fix,.css-63uqft .katex .rlap>.fix,.css-63uqft .katex .clap>.fix{display:inline-block;}.css-63uqft .katex .llap>.inner{right:0;}.css-63uqft .katex .rlap>.inner,.css-63uqft .katex .clap>.inner{left:0;}.css-63uqft .katex .clap>.inner>span{margin-left:-50%;margin-right:50%;}.css-63uqft .katex .rule{display:inline-block;border:solid 0;position:relative;}.css-63uqft .katex .overline .overline-line,.css-63uqft .katex .underline .underline-line,.css-63uqft .katex .hline{display:inline-block;width:100%;border-bottom-style:solid;}.css-63uqft .katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed;}.css-63uqft .katex .sqrt>.root{margin-left:0.27777778em;margin-right:-0.55555556em;}.css-63uqft .katex .sizing.reset-size1.size1,.css-63uqft .katex .fontsize-ensurer.reset-size1.size1{font-size:1em;}.css-63uqft .katex .sizing.reset-size1.size2,.css-63uqft .katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size1.size3,.css-63uqft .katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em;}.css-63uqft .katex .sizing.reset-size1.size4,.css-63uqft .katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em;}.css-63uqft .katex .sizing.reset-size1.size5,.css-63uqft .katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em;}.css-63uqft .katex .sizing.reset-size1.size6,.css-63uqft .katex .fontsize-ensurer.reset-size1.size6{font-size:2em;}.css-63uqft .katex .sizing.reset-size1.size7,.css-63uqft .katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em;}.css-63uqft .katex .sizing.reset-size1.size8,.css-63uqft .katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em;}.css-63uqft .katex .sizing.reset-size1.size9,.css-63uqft .katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em;}.css-63uqft .katex .sizing.reset-size1.size10,.css-63uqft .katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em;}.css-63uqft .katex .sizing.reset-size1.size11,.css-63uqft .katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em;}.css-63uqft .katex .sizing.reset-size2.size1,.css-63uqft .katex .fontsize-ensurer.reset-size2.size1{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size2.size2,.css-63uqft .katex .fontsize-ensurer.reset-size2.size2{font-size:1em;}.css-63uqft .katex .sizing.reset-size2.size3,.css-63uqft .katex .fontsize-ensurer.reset-size2.size3{font-size:1.16666667em;}.css-63uqft .katex .sizing.reset-size2.size4,.css-63uqft .katex .fontsize-ensurer.reset-size2.size4{font-size:1.33333333em;}.css-63uqft .katex .sizing.reset-size2.size5,.css-63uqft .katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em;}.css-63uqft .katex .sizing.reset-size2.size6,.css-63uqft .katex .fontsize-ensurer.reset-size2.size6{font-size:1.66666667em;}.css-63uqft .katex .sizing.reset-size2.size7,.css-63uqft .katex .fontsize-ensurer.reset-size2.size7{font-size:2em;}.css-63uqft .katex .sizing.reset-size2.size8,.css-63uqft .katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em;}.css-63uqft .katex .sizing.reset-size2.size9,.css-63uqft .katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em;}.css-63uqft .katex .sizing.reset-size2.size10,.css-63uqft .katex .fontsize-ensurer.reset-size2.size10{font-size:3.45666667em;}.css-63uqft .katex .sizing.reset-size2.size11,.css-63uqft .katex .fontsize-ensurer.reset-size2.size11{font-size:4.14666667em;}.css-63uqft .katex .sizing.reset-size3.size1,.css-63uqft .katex .fontsize-ensurer.reset-size3.size1{font-size:0.71428571em;}.css-63uqft .katex .sizing.reset-size3.size2,.css-63uqft .katex .fontsize-ensurer.reset-size3.size2{font-size:0.85714286em;}.css-63uqft .katex .sizing.reset-size3.size3,.css-63uqft .katex .fontsize-ensurer.reset-size3.size3{font-size:1em;}.css-63uqft .katex .sizing.reset-size3.size4,.css-63uqft .katex .fontsize-ensurer.reset-size3.size4{font-size:1.14285714em;}.css-63uqft .katex .sizing.reset-size3.size5,.css-63uqft .katex .fontsize-ensurer.reset-size3.size5{font-size:1.28571429em;}.css-63uqft .katex .sizing.reset-size3.size6,.css-63uqft .katex .fontsize-ensurer.reset-size3.size6{font-size:1.42857143em;}.css-63uqft .katex .sizing.reset-size3.size7,.css-63uqft .katex .fontsize-ensurer.reset-size3.size7{font-size:1.71428571em;}.css-63uqft .katex .sizing.reset-size3.size8,.css-63uqft .katex .fontsize-ensurer.reset-size3.size8{font-size:2.05714286em;}.css-63uqft .katex .sizing.reset-size3.size9,.css-63uqft .katex .fontsize-ensurer.reset-size3.size9{font-size:2.46857143em;}.css-63uqft .katex .sizing.reset-size3.size10,.css-63uqft .katex .fontsize-ensurer.reset-size3.size10{font-size:2.96285714em;}.css-63uqft .katex .sizing.reset-size3.size11,.css-63uqft .katex .fontsize-ensurer.reset-size3.size11{font-size:3.55428571em;}.css-63uqft .katex .sizing.reset-size4.size1,.css-63uqft .katex .fontsize-ensurer.reset-size4.size1{font-size:0.625em;}.css-63uqft .katex .sizing.reset-size4.size2,.css-63uqft .katex .fontsize-ensurer.reset-size4.size2{font-size:0.75em;}.css-63uqft .katex .sizing.reset-size4.size3,.css-63uqft .katex .fontsize-ensurer.reset-size4.size3{font-size:0.875em;}.css-63uqft .katex .sizing.reset-size4.size4,.css-63uqft .katex .fontsize-ensurer.reset-size4.size4{font-size:1em;}.css-63uqft .katex .sizing.reset-size4.size5,.css-63uqft .katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em;}.css-63uqft .katex .sizing.reset-size4.size6,.css-63uqft .katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em;}.css-63uqft .katex .sizing.reset-size4.size7,.css-63uqft .katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em;}.css-63uqft .katex .sizing.reset-size4.size8,.css-63uqft .katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em;}.css-63uqft .katex .sizing.reset-size4.size9,.css-63uqft .katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em;}.css-63uqft .katex .sizing.reset-size4.size10,.css-63uqft .katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em;}.css-63uqft .katex .sizing.reset-size4.size11,.css-63uqft .katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em;}.css-63uqft .katex .sizing.reset-size5.size1,.css-63uqft .katex .fontsize-ensurer.reset-size5.size1{font-size:0.55555556em;}.css-63uqft .katex .sizing.reset-size5.size2,.css-63uqft .katex .fontsize-ensurer.reset-size5.size2{font-size:0.66666667em;}.css-63uqft .katex .sizing.reset-size5.size3,.css-63uqft .katex .fontsize-ensurer.reset-size5.size3{font-size:0.77777778em;}.css-63uqft .katex .sizing.reset-size5.size4,.css-63uqft .katex .fontsize-ensurer.reset-size5.size4{font-size:0.88888889em;}.css-63uqft .katex .sizing.reset-size5.size5,.css-63uqft .katex .fontsize-ensurer.reset-size5.size5{font-size:1em;}.css-63uqft .katex .sizing.reset-size5.size6,.css-63uqft .katex .fontsize-ensurer.reset-size5.size6{font-size:1.11111111em;}.css-63uqft .katex .sizing.reset-size5.size7,.css-63uqft .katex .fontsize-ensurer.reset-size5.size7{font-size:1.33333333em;}.css-63uqft .katex .sizing.reset-size5.size8,.css-63uqft .katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em;}.css-63uqft .katex .sizing.reset-size5.size9,.css-63uqft .katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em;}.css-63uqft .katex .sizing.reset-size5.size10,.css-63uqft .katex .fontsize-ensurer.reset-size5.size10{font-size:2.30444444em;}.css-63uqft .katex .sizing.reset-size5.size11,.css-63uqft .katex .fontsize-ensurer.reset-size5.size11{font-size:2.76444444em;}.css-63uqft .katex .sizing.reset-size6.size1,.css-63uqft .katex .fontsize-ensurer.reset-size6.size1{font-size:0.5em;}.css-63uqft .katex .sizing.reset-size6.size2,.css-63uqft .katex .fontsize-ensurer.reset-size6.size2{font-size:0.6em;}.css-63uqft .katex .sizing.reset-size6.size3,.css-63uqft .katex .fontsize-ensurer.reset-size6.size3{font-size:0.7em;}.css-63uqft .katex .sizing.reset-size6.size4,.css-63uqft .katex .fontsize-ensurer.reset-size6.size4{font-size:0.8em;}.css-63uqft .katex .sizing.reset-size6.size5,.css-63uqft .katex .fontsize-ensurer.reset-size6.size5{font-size:0.9em;}.css-63uqft .katex .sizing.reset-size6.size6,.css-63uqft .katex .fontsize-ensurer.reset-size6.size6{font-size:1em;}.css-63uqft .katex .sizing.reset-size6.size7,.css-63uqft .katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size6.size8,.css-63uqft .katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em;}.css-63uqft .katex .sizing.reset-size6.size9,.css-63uqft .katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em;}.css-63uqft .katex .sizing.reset-size6.size10,.css-63uqft .katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em;}.css-63uqft .katex .sizing.reset-size6.size11,.css-63uqft .katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em;}.css-63uqft .katex .sizing.reset-size7.size1,.css-63uqft .katex .fontsize-ensurer.reset-size7.size1{font-size:0.41666667em;}.css-63uqft .katex .sizing.reset-size7.size2,.css-63uqft .katex .fontsize-ensurer.reset-size7.size2{font-size:0.5em;}.css-63uqft .katex .sizing.reset-size7.size3,.css-63uqft .katex .fontsize-ensurer.reset-size7.size3{font-size:0.58333333em;}.css-63uqft .katex .sizing.reset-size7.size4,.css-63uqft .katex .fontsize-ensurer.reset-size7.size4{font-size:0.66666667em;}.css-63uqft .katex .sizing.reset-size7.size5,.css-63uqft .katex .fontsize-ensurer.reset-size7.size5{font-size:0.75em;}.css-63uqft .katex .sizing.reset-size7.size6,.css-63uqft .katex .fontsize-ensurer.reset-size7.size6{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size7.size7,.css-63uqft .katex .fontsize-ensurer.reset-size7.size7{font-size:1em;}.css-63uqft .katex .sizing.reset-size7.size8,.css-63uqft .katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size7.size9,.css-63uqft .katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em;}.css-63uqft .katex .sizing.reset-size7.size10,.css-63uqft .katex .fontsize-ensurer.reset-size7.size10{font-size:1.72833333em;}.css-63uqft .katex .sizing.reset-size7.size11,.css-63uqft .katex .fontsize-ensurer.reset-size7.size11{font-size:2.07333333em;}.css-63uqft .katex .sizing.reset-size8.size1,.css-63uqft .katex .fontsize-ensurer.reset-size8.size1{font-size:0.34722222em;}.css-63uqft .katex .sizing.reset-size8.size2,.css-63uqft .katex .fontsize-ensurer.reset-size8.size2{font-size:0.41666667em;}.css-63uqft .katex .sizing.reset-size8.size3,.css-63uqft .katex .fontsize-ensurer.reset-size8.size3{font-size:0.48611111em;}.css-63uqft .katex .sizing.reset-size8.size4,.css-63uqft .katex .fontsize-ensurer.reset-size8.size4{font-size:0.55555556em;}.css-63uqft .katex .sizing.reset-size8.size5,.css-63uqft .katex .fontsize-ensurer.reset-size8.size5{font-size:0.625em;}.css-63uqft .katex .sizing.reset-size8.size6,.css-63uqft .katex .fontsize-ensurer.reset-size8.size6{font-size:0.69444444em;}.css-63uqft .katex .sizing.reset-size8.size7,.css-63uqft .katex .fontsize-ensurer.reset-size8.size7{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size8.size8,.css-63uqft .katex .fontsize-ensurer.reset-size8.size8{font-size:1em;}.css-63uqft .katex .sizing.reset-size8.size9,.css-63uqft .katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em;}.css-63uqft .katex .sizing.reset-size8.size10,.css-63uqft .katex .fontsize-ensurer.reset-size8.size10{font-size:1.44027778em;}.css-63uqft .katex .sizing.reset-size8.size11,.css-63uqft .katex .fontsize-ensurer.reset-size8.size11{font-size:1.72777778em;}.css-63uqft .katex .sizing.reset-size9.size1,.css-63uqft .katex .fontsize-ensurer.reset-size9.size1{font-size:0.28935185em;}.css-63uqft .katex .sizing.reset-size9.size2,.css-63uqft .katex .fontsize-ensurer.reset-size9.size2{font-size:0.34722222em;}.css-63uqft .katex .sizing.reset-size9.size3,.css-63uqft .katex .fontsize-ensurer.reset-size9.size3{font-size:0.40509259em;}.css-63uqft .katex .sizing.reset-size9.size4,.css-63uqft .katex .fontsize-ensurer.reset-size9.size4{font-size:0.46296296em;}.css-63uqft .katex .sizing.reset-size9.size5,.css-63uqft .katex .fontsize-ensurer.reset-size9.size5{font-size:0.52083333em;}.css-63uqft .katex .sizing.reset-size9.size6,.css-63uqft .katex .fontsize-ensurer.reset-size9.size6{font-size:0.5787037em;}.css-63uqft .katex .sizing.reset-size9.size7,.css-63uqft .katex .fontsize-ensurer.reset-size9.size7{font-size:0.69444444em;}.css-63uqft .katex .sizing.reset-size9.size8,.css-63uqft .katex .fontsize-ensurer.reset-size9.size8{font-size:0.83333333em;}.css-63uqft .katex .sizing.reset-size9.size9,.css-63uqft .katex .fontsize-ensurer.reset-size9.size9{font-size:1em;}.css-63uqft .katex .sizing.reset-size9.size10,.css-63uqft .katex .fontsize-ensurer.reset-size9.size10{font-size:1.20023148em;}.css-63uqft .katex .sizing.reset-size9.size11,.css-63uqft .katex .fontsize-ensurer.reset-size9.size11{font-size:1.43981481em;}.css-63uqft .katex .sizing.reset-size10.size1,.css-63uqft .katex .fontsize-ensurer.reset-size10.size1{font-size:0.24108004em;}.css-63uqft .katex .sizing.reset-size10.size2,.css-63uqft .katex .fontsize-ensurer.reset-size10.size2{font-size:0.28929605em;}.css-63uqft .katex .sizing.reset-size10.size3,.css-63uqft .katex .fontsize-ensurer.reset-size10.size3{font-size:0.33751205em;}.css-63uqft .katex .sizing.reset-size10.size4,.css-63uqft .katex .fontsize-ensurer.reset-size10.size4{font-size:0.38572806em;}.css-63uqft .katex .sizing.reset-size10.size5,.css-63uqft .katex .fontsize-ensurer.reset-size10.size5{font-size:0.43394407em;}.css-63uqft .katex .sizing.reset-size10.size6,.css-63uqft .katex .fontsize-ensurer.reset-size10.size6{font-size:0.48216008em;}.css-63uqft .katex .sizing.reset-size10.size7,.css-63uqft .katex .fontsize-ensurer.reset-size10.size7{font-size:0.57859209em;}.css-63uqft .katex .sizing.reset-size10.size8,.css-63uqft .katex .fontsize-ensurer.reset-size10.size8{font-size:0.69431051em;}.css-63uqft .katex .sizing.reset-size10.size9,.css-63uqft .katex .fontsize-ensurer.reset-size10.size9{font-size:0.83317261em;}.css-63uqft .katex .sizing.reset-size10.size10,.css-63uqft .katex .fontsize-ensurer.reset-size10.size10{font-size:1em;}.css-63uqft .katex .sizing.reset-size10.size11,.css-63uqft .katex .fontsize-ensurer.reset-size10.size11{font-size:1.19961427em;}.css-63uqft .katex .sizing.reset-size11.size1,.css-63uqft .katex .fontsize-ensurer.reset-size11.size1{font-size:0.20096463em;}.css-63uqft .katex .sizing.reset-size11.size2,.css-63uqft .katex .fontsize-ensurer.reset-size11.size2{font-size:0.24115756em;}.css-63uqft .katex .sizing.reset-size11.size3,.css-63uqft .katex .fontsize-ensurer.reset-size11.size3{font-size:0.28135048em;}.css-63uqft .katex .sizing.reset-size11.size4,.css-63uqft .katex .fontsize-ensurer.reset-size11.size4{font-size:0.32154341em;}.css-63uqft .katex .sizing.reset-size11.size5,.css-63uqft .katex .fontsize-ensurer.reset-size11.size5{font-size:0.36173633em;}.css-63uqft .katex .sizing.reset-size11.size6,.css-63uqft .katex .fontsize-ensurer.reset-size11.size6{font-size:0.40192926em;}.css-63uqft .katex .sizing.reset-size11.size7,.css-63uqft .katex .fontsize-ensurer.reset-size11.size7{font-size:0.48231511em;}.css-63uqft .katex .sizing.reset-size11.size8,.css-63uqft .katex .fontsize-ensurer.reset-size11.size8{font-size:0.57877814em;}.css-63uqft .katex .sizing.reset-size11.size9,.css-63uqft .katex .fontsize-ensurer.reset-size11.size9{font-size:0.69453376em;}.css-63uqft .katex .sizing.reset-size11.size10,.css-63uqft .katex .fontsize-ensurer.reset-size11.size10{font-size:0.83360129em;}.css-63uqft .katex .sizing.reset-size11.size11,.css-63uqft .katex .fontsize-ensurer.reset-size11.size11{font-size:1em;}.css-63uqft .katex .delimsizing.size1{font-family:KaTeX_Size1;}.css-63uqft .katex .delimsizing.size2{font-family:KaTeX_Size2;}.css-63uqft .katex .delimsizing.size3{font-family:KaTeX_Size3;}.css-63uqft .katex .delimsizing.size4{font-family:KaTeX_Size4;}.css-63uqft .katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1;}.css-63uqft .katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4;}.css-63uqft .katex .nulldelimiter{display:inline-block;width:0.12em;}.css-63uqft .katex .delimcenter{position:relative;}.css-63uqft .katex .op-symbol{position:relative;}.css-63uqft .katex .op-symbol.small-op{font-family:KaTeX_Size1;}.css-63uqft .katex .op-symbol.large-op{font-family:KaTeX_Size2;}.css-63uqft .katex .op-limits>.vlist-t{text-align:center;}.css-63uqft .katex .accent>.vlist-t{text-align:center;}.css-63uqft .katex .accent .accent-body{position:relative;}.css-63uqft .katex .accent .accent-body:not(.accent-full){width:0;}.css-63uqft .katex .overlay{display:block;}.css-63uqft .katex .mtable .vertical-separator{display:inline-block;min-width:1px;}.css-63uqft .katex .mtable .arraycolsep{display:inline-block;}.css-63uqft .katex .mtable .col-align-c>.vlist-t{text-align:center;}.css-63uqft .katex .mtable .col-align-l>.vlist-t{text-align:left;}.css-63uqft .katex .mtable .col-align-r>.vlist-t{text-align:right;}.css-63uqft .katex .svg-align{text-align:left;}.css-63uqft .katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;}.css-63uqft .katex svg path{stroke:none;}.css-63uqft .katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none;}.css-63uqft .katex .stretchy{width:100%;display:block;position:relative;overflow:hidden;}.css-63uqft .katex .stretchy::before,.css-63uqft .katex .stretchy::after{content:'';}.css-63uqft .katex .hide-tail{width:100%;position:relative;overflow:hidden;}.css-63uqft .katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden;}.css-63uqft .katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden;}.css-63uqft .katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden;}.css-63uqft .katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden;}.css-63uqft .katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden;}.css-63uqft .katex .x-arrow-pad{padding:0 0.5em;}.css-63uqft .katex .cd-arrow-pad{padding:0 0.55556em 0 0.27778em;}.css-63uqft .katex .x-arrow,.css-63uqft .katex .mover,.css-63uqft .katex .munder{text-align:center;}.css-63uqft .katex .boxpad{padding:0 0.3em 0 0.3em;}.css-63uqft .katex .fbox,.css-63uqft .katex .fcolorbox{box-sizing:border-box;border:0.04em solid;}.css-63uqft .katex .cancel-pad{padding:0 0.2em 0 0.2em;}.css-63uqft .katex .cancel-lap{margin-left:-0.2em;margin-right:-0.2em;}.css-63uqft .katex .sout{border-bottom-style:solid;border-bottom-width:0.08em;}.css-63uqft .katex .angl{box-sizing:border-box;border-top:0.049em solid;border-right:0.049em solid;margin-right:0.03889em;}.css-63uqft .katex .anglpad{padding:0 0.03889em 0 0.03889em;}.css-63uqft .katex .eqn-num::before{counter-increment:katexEqnNo;content:'(' counter(katexEqnNo) ')';}.css-63uqft .katex .mml-eqn-num::before{counter-increment:mmlEqnNo;content:'(' counter(mmlEqnNo) ')';}.css-63uqft .katex .mtr-glue{width:50%;}.css-63uqft .katex .cd-vert-arrow{display:inline-block;position:relative;}.css-63uqft .katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + 0.3em);text-align:left;}.css-63uqft .katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + 0.3em);text-align:right;}.css-63uqft .katex-display{display:block;margin:1em 0;text-align:center;}.css-63uqft .katex-display>.katex{display:block;white-space:nowrap;}.css-63uqft .katex-display>.katex>.katex-html{display:block;position:relative;}.css-63uqft .katex-display>.katex>.katex-html>.tag{position:absolute;right:0;}.css-63uqft .katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto;}.css-63uqft .katex-display.fleqn>.katex{text-align:left;padding-left:2em;}.css-63uqft body{counter-reset:katexEqnNo mmlEqnNo;}.css-63uqft table{width:-webkit-max-content;width:-moz-max-content;width:max-content;}.css-63uqft .tableBlock{max-width:100%;margin-bottom:1rem;overflow-y:scroll;}.css-63uqft .tableBlock thead,.css-63uqft .tableBlock thead th{border-bottom:1px solid #333!important;}.css-63uqft .tableBlock th,.css-63uqft .tableBlock td{padding:10px;text-align:left;}.css-63uqft .tableBlock th{font-weight:bold!important;}.css-63uqft .tableBlock caption{caption-side:bottom;color:#555;font-size:12px;font-style:italic;text-align:center;}.css-63uqft .tableBlock caption>p{margin:0;}.css-63uqft .tableBlock th>p,.css-63uqft .tableBlock td>p{margin:0;}.css-63uqft .tableBlock [data-background-color='aliceblue']{background-color:#f0f8ff;color:#000;}.css-63uqft .tableBlock [data-background-color='black']{background-color:#000;color:#fff;}.css-63uqft .tableBlock [data-background-color='chocolate']{background-color:#d2691e;color:#fff;}.css-63uqft .tableBlock [data-background-color='cornflowerblue']{background-color:#6495ed;color:#fff;}.css-63uqft .tableBlock [data-background-color='crimson']{background-color:#dc143c;color:#fff;}.css-63uqft .tableBlock [data-background-color='darkblue']{background-color:#00008b;color:#fff;}.css-63uqft .tableBlock [data-background-color='darkseagreen']{background-color:#8fbc8f;color:#000;}.css-63uqft .tableBlock [data-background-color='deepskyblue']{background-color:#00bfff;color:#000;}.css-63uqft .tableBlock [data-background-color='gainsboro']{background-color:#dcdcdc;color:#000;}.css-63uqft .tableBlock [data-background-color='grey']{background-color:#808080;color:#fff;}.css-63uqft .tableBlock [data-background-color='lemonchiffon']{background-color:#fffacd;color:#000;}.css-63uqft .tableBlock [data-background-color='lightpink']{background-color:#ffb6c1;color:#000;}.css-63uqft .tableBlock [data-background-color='lightsalmon']{background-color:#ffa07a;color:#000;}.css-63uqft .tableBlock [data-background-color='lightskyblue']{background-color:#87cefa;color:#000;}.css-63uqft .tableBlock [data-background-color='mediumblue']{background-color:#0000cd;color:#fff;}.css-63uqft .tableBlock [data-background-color='omnigrey']{background-color:#f0f0f0;color:#000;}.css-63uqft .tableBlock [data-background-color='white']{background-color:#fff;color:#000;}.css-63uqft .tableBlock [data-text-align='center']{text-align:center;}.css-63uqft .tableBlock [data-text-align='left']{text-align:left;}.css-63uqft .tableBlock [data-text-align='right']{text-align:right;}.css-63uqft .tableBlock [data-vertical-align='bottom']{vertical-align:bottom;}.css-63uqft .tableBlock [data-vertical-align='middle']{vertical-align:middle;}.css-63uqft .tableBlock [data-vertical-align='top']{vertical-align:top;}.css-63uqft .tableBlock__font-size--xxsmall{font-size:10px;}.css-63uqft .tableBlock__font-size--xsmall{font-size:12px;}.css-63uqft .tableBlock__font-size--small{font-size:14px;}.css-63uqft .tableBlock__font-size--large{font-size:18px;}.css-63uqft .tableBlock__border--some tbody tr:not(:last-child){border-bottom:1px solid #e2e5e7;}.css-63uqft .tableBlock__border--bordered td,.css-63uqft .tableBlock__border--bordered th{border:1px solid #e2e5e7;}.css-63uqft .tableBlock__border--borderless tbody+tbody,.css-63uqft .tableBlock__border--borderless td,.css-63uqft .tableBlock__border--borderless th,.css-63uqft .tableBlock__border--borderless tr,.css-63uqft .tableBlock__border--borderless thead,.css-63uqft .tableBlock__border--borderless thead th{border:0!important;}.css-63uqft .tableBlock:not(.tableBlock__table-striped) tbody tr{background-color:unset!important;}.css-63uqft .tableBlock__table-striped tbody tr:nth-of-type(odd){background-color:#f9fafc!important;}.css-63uqft .tableBlock__table-compactl th,.css-63uqft .tableBlock__table-compact td{padding:3px!important;}.css-63uqft .tableBlock__full-size{width:100%;}.css-63uqft .textBlock{margin-bottom:16px;}.css-63uqft .textBlock__text-formatting--finePrint{font-size:12px;}.css-63uqft .textBlock__text-infoBox{padding:0.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:0.25rem;}.css-63uqft .textBlock__text-infoBox p{margin:0;}.css-63uqft .textBlock__text-infoBox--primary{background-color:#cce5ff;border-color:#b8daff;color:#004085;}.css-63uqft .textBlock__text-infoBox--secondary{background-color:#e2e3e5;border-color:#d6d8db;color:#383d41;}.css-63uqft .textBlock__text-infoBox--success{background-color:#d4edda;border-color:#c3e6cb;color:#155724;}.css-63uqft .textBlock__text-infoBox--danger{background-color:#f8d7da;border-color:#f5c6cb;color:#721c24;}.css-63uqft .textBlock__text-infoBox--warning{background-color:#fff3cd;border-color:#ffeeba;color:#856404;}.css-63uqft .textBlock__text-infoBox--info{background-color:#d1ecf1;border-color:#bee5eb;color:#0c5460;}.css-63uqft .textBlock__text-infoBox--dark{background-color:#d6d8d9;border-color:#c6c8ca;color:#1b1e21;}.css-63uqft .text-overline{-webkit-text-decoration:overline;text-decoration:overline;}.css-63uqft.css-63uqft{color:#2B3148;background-color:transparent;font-family:var(--calculator-ui-font-family),Verdana,sans-serif;font-size:20px;line-height:24px;overflow:visible;padding-top:0px;position:relative;}.css-63uqft.css-63uqft:after{content:'';-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0);position:absolute;border:2px solid #EA9430;border-radius:2px;inset:-8px;z-index:1;}.css-63uqft .js-external-link-button.link-like,.css-63uqft .js-external-link-anchor{color:inherit;border-radius:1px;-webkit-text-decoration:underline;text-decoration:underline;}.css-63uqft .js-external-link-button.link-like:hover,.css-63uqft .js-external-link-anchor:hover,.css-63uqft .js-external-link-button.link-like:active,.css-63uqft .js-external-link-anchor:active{text-decoration-thickness:2px;text-shadow:1px 0 0;}.css-63uqft .js-external-link-button.link-like:focus-visible,.css-63uqft .js-external-link-anchor:focus-visible{outline:transparent 2px dotted;box-shadow:0 0 0 2px #6314E6;}.css-63uqft p,.css-63uqft div{margin:0;display:block;}.css-63uqft pre{margin:0;display:block;}.css-63uqft pre code{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}.css-63uqft pre:not(:first-child){padding-top:8px;}.css-63uqft ul,.css-63uqft ol{display:block margin:0;padding-left:20px;}.css-63uqft ul li,.css-63uqft ol li{padding-top:8px;}.css-63uqft ul ul,.css-63uqft ol ul,.css-63uqft ul ol,.css-63uqft ol ol{padding-top:0;}.css-63uqft ul:not(:first-child),.css-63uqft ol:not(:first-child){padding-top:4px;} Test setup

Choose test type

t-test for the population mean, μ, based on one independent sample . Null hypothesis H 0 : μ = μ 0  

Alternative hypothesis H 1

Test details

Significance level α

The probability that we reject a true H 0 (type I error).

Degrees of freedom

Calculated as sample size minus one.

Test results

Module 13: F-Distribution and One-Way ANOVA

Test of two variances, learning outcomes.

  • Conduct and interpret hypothesis tests of two variances

Another of the uses of the F distribution is testing two variances. It is often desirable to compare two variances rather than two averages. For instance, college administrators would like two college professors grading exams to have the same variation in their grading. In order for a lid to fit a container, the variation in the lid and the container should be the same. A supermarket might be interested in the variability of check-out times for two checkers.

In order to perform a F test of two variances, it is important that the following are true: The populations from which the two samples are drawn are normally distributed. The two populations are independent of each other.

Unlike most other tests in this book, the F test for equality of two variances is very sensitive to deviations from normality. If the two distributions are not normal, the test can give higher p -values than it should, or lower ones, in ways that are unpredictable. Many texts suggest that students not use this test at all, but in the interest of completeness we include it here.

Suppose we sample randomly from two independent normal populations. Let [latex]\displaystyle{{\sigma}_{{1}}}^{{2}},{{\sigma}_{{2}}}^{{2}}[/latex] be the sample variances. Let the sample sizes be n 1 and n 2 . Since we are interested in comparing the two sample variances, we use the F ratio:

[latex]\displaystyle{F}=\frac{{{\left[\frac{{({s}{1})}^{{2}}}{{(\sigma_{1})}^{{2}}}\right]}}}{{{\left[\frac{{({s}{2})}^{{2}}}{{(\sigma_{2})}^{{2}}}\right]}}}[/latex]

F has the distribution F ~ F ( n 1 – 1, n 2 – 1)

where n 1 – 1 are the degrees of freedom for the numerator and n 2 – 1 are the degrees of freedom for the denominator.

If the null hypothesis is [latex]\displaystyle{\sigma_{{1}}^{{2}}}={\sigma_{{2}}^{{2}}}[/latex] then the F Ratio becomes [latex]\displaystyle{F}=\frac{{{\left[\frac{{({s}{1})}^{{2}}}{{(\sigma{1})}^{{2}}}\right]}}}{{{\left[\frac{{({s}{2})}^{{2}}}{{(\sigma{2})}^{{2}}}\right]}}}[/latex] = [latex]\displaystyle\frac{{({s}_{1})}^{{2}}}{{({s}_{2})}^{{2}}}[/latex]

The F ratio could also be[latex]\displaystyle\frac{{({s}_{1})}^{{2}}}{{({s}_{2})}^{{2}}}[/latex]. It depends on H a and on which sample variance is larger. If the two populations have equal variances, then [latex]\displaystyle\sigma_{{1}}^{{2}},\sigma_{{2}}^{{2}}[/latex] are close in value and F =[latex]\displaystyle\frac{{({s}_{1})}^{{2}}}{{({s}_{2})}^{{2}}}[/latex] is close to one. But if the two population variances are very different,[latex]\displaystyle\sigma_{{1}}^{{2}},\sigma_{{2}}^{{2}}[/latex]tend to be very different, too. Choosing[latex]\displaystyle\sigma_{{1}}^{{2}}[/latex] as the larger sample variance causes the ratio ( s 1 ) 2 ( s 2 ) 2 to be greater than one. If [latex]\displaystyle\sigma_{{1}}^{{2}},\sigma_{{2}}^{{2}}[/latex] are far apart, then F =[latex]\displaystyle\frac{{({s}_{1})}^{{2}}}{{({s}_{2})}^{{2}}}[/latex]is a large number.

Therefore, if F is close to one, the evidence favors the null hypothesis (the two population variances are equal). But if F is much larger than one, then the evidence is against the null hypothesis. A test of two variances may be left, right, or two-tailed.

Two college instructors are interested in whether or not there is any variation in the way they grade math exams. They each grade the same set of 30 exams. The first instructor’s grades have a variance of 52.3. The second instructor’s grades have a variance of 89.9. Test the claim that the first instructor’s variance is smaller. (In most colleges, it is desirable for the variances of exam grades to be nearly the same among instructors.) The level of significance is 10%.

[latex]\displaystyle{F}=\frac{{{\left[\frac{{({s}{1})}^{{2}}}{{(\sigma{1})}^{{2}}}\right]}}}{{{\left[\frac{{({s}{2})}^{{2}}}{{(\sigma{2})}^{{2}}}\right]}}}[/latex] =[latex]\displaystyle\frac{{({s}_{1})}^{{2}}}{{({s}_{2})}^{{2}}}[/latex]=[latex]\frac{{52.3}}{{89.9}}={0.5818}[/latex]

Distribution for the test: F 29,29 where n 1 – 1 = 29 and n 2 – 1 = 29.

Graph: This test is left tailed.

Draw the graph labeling and shading appropriately.

Graph of left-tailed test with p-value = 0.0753 shaded.

The New York Choral Society divides male singers up into four categories from highest voices to lowest: Tenor1, Tenor2, Bass1, Bass2. In the table are heights of the men in the Tenor1 and Bass2 groups. One suspects that taller men will have lower voices, and that the variance of height may go up with the lower voices as well. Do we have good evidence that the variance of the heights of singers in each of these two groups (Tenor1 and Bass2) are different?

69  72  71  74  75

Tenor1 Bass2 Tenor 1 Bass 2 Tenor 1 Bass 2
69 72 67 72 68 67
72 75 70 74 67 70
71 67 65 70 64 70
66 75 72 66
76 74 70 68
74 72 68 75
71 72 64 68
66 74 73 70
68 72 66 72

The histograms are not as normal as one might like. Plot them to verify. However, we proceed with the test in any case.

Subscripts: T1= tenor1 and B2 = bass 2

The standard deviations of the samples are s T 1 = 3.3302 and s B 2 = 2.7208.

The hypotheses are

[latex]\displaystyle{H}_{{o}}:{\sigma}_{{T1}}^{{2}}={\sigma}_{{B2}}^{{2}}[/latex] and [latex]\displaystyle{H}_{{o}}:{\sigma}_{{T1}}^{{2}}\neq{\sigma}_{{B2}}^{{2}}[/latex] (two tailed test)

The F statistic is 1.4894 with 20 and 25 degrees of freedom.

The p -value is 0.3430. If we assume alpha is 0.05, then we cannot reject the null hypothesis.

We have no good evidence from the data that the heights of Tenor1 and Bass2 singers have different variances (despite there being a significant difference in mean heights of about 2.5 inches.)

  • Introductory Statistics, Test of Two Variances. Located at : http://cnx.org/contents/[email protected] . License : CC BY: Attribution
  • Introductory Statistics . Authored by : Barbara Illowski, Susan Dean. Provided by : Open Stax. Located at : http://cnx.org/contents/[email protected] . License : CC BY: Attribution . License Terms : Download for free at http://cnx.org/contents/[email protected]

Two Sample T-Test Calculator (Pooled-Variance)

Enter sample data.

Information

t distribution left tailed

Assumptions

between the populations's average is known

Required Sample Data

, x̄ - Sample average of group1 and group2
,n - Sample size of group1 and group2
,S - Sample standard deviation of group1 and group2

User Preferences

Content preview.

Arcu felis bibendum ut tristique et egestas quis:

  • Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
  • Duis aute irure dolor in reprehenderit in voluptate
  • Excepteur sint occaecat cupidatat non proident

Keyboard Shortcuts

11.2 - when population variances are not equal.

Let's again start with the good news that we've already done the dirty theoretical work here. Recall that if you have two independent samples from two normal distributions with unequal variances \(\sigma^2_X \neq \sigma^2_Y\), then:

\(T=\dfrac{(\bar{X}-\bar{Y})-(\mu_X-\mu_Y)}{\sqrt{\dfrac{S^2_X}{n}+\dfrac{S^2_Y}{m}}}\)

follows, at least approximately, a \(t_r\) distribution where \(r\), the adjusted degrees of freedom is determined by the equation:

\(r=\dfrac{\left(\dfrac{s^2_X}{n}+\dfrac{s^2_Y}{m}\right)^2}{\dfrac{(s^2_X/n)^2}{n-1}+\dfrac{(s^2_Y/m)^2}{m-1}}\)

If r doesn't equal an integer, as it usually doesn't, then we take the integer portion of \(r\). That is, we use \(\lfloor r\rfloor\) if necessary.

With that now being recalled, if we're interested in testing the null hypothesis:

\(H_0:\mu_X-\mu_Y=0\) (or equivalently \(H_0:\mu_X=\mu_Y\))

against any of the alternative hypotheses:

\(H_A:\mu_X-\mu_Y \neq 0,\quad H_A:\mu_X-\mu_Y < 0,\text{ or }H_A:\mu_X-\mu_Y > 0\)

we can use the test statistic:

and follow the standard hypothesis testing procedures. Let's return to our fastest speed driven example.

Example 11-1 (Continued) Section  

car driving fast around a corner

A psychologist was interested in exploring whether or not male and female college students have different driving behaviors. There were a number of ways that she could quantify driving behaviors. She opted to focus on the fastest speed ever driven by an individual. Therefore, the particular statistical question she framed was as follows:

Is the mean fastest speed driven by male college students different than the mean fastest speed driven by female college students?

She conducted a survey of a random \(n=34\) male college students and a random \(m=29\) female college students. Here is a descriptive summary of the results of her survey:

Males Females

\(n = 34\)
\(\bar{x} = 105.5\)
\(s_x = 20.1\)

\(m = 29\)
\(\bar{y} = 90.9\)
\(s_y = 12.2\)

Is there sufficient evidence at the \(\alpha=0.05\) level to conclude that the mean fastest speed driven by male college students differs from the mean fastest speed driven by female college students?

This time let's not assume that the population variances are equal. Then, we'll see if we arrive at a different conclusion. Let's still assume though that the two populations of fastest speed driven for males and females are normally distributed. And, we'll again permit the randomness of the two samples to allow us to assume independence of the measurements as well.

That said, then we can test the null hypothesis:

\(H_0:\mu_M-\mu_F=0\)

against the alternative hypothesis:

\(H_A:\mu_M-\mu_F \neq 0\)

comparing the test statistic:

\(t=\dfrac{(105.5-90.9)-0}{\sqrt{\dfrac{20.1^2}{34}+\dfrac{12.2^2}{29}}}=3.54\)

to a \(T\) distribution with \(r\) degrees of freedom, where:

\(r=\dfrac{\left(\dfrac{12.2^2}{29}+\dfrac{20.1^2}{34} \right)^2}{\left( \dfrac{1}{28}\right)\left(\dfrac{12.2^2}{29} \right)^2+\left(\dfrac{1}{33}\right)\left(\dfrac{20.1^2}{34} \right)^2}=55.5\)

Oops... that's not an integer, so we're going to need to take the greatest integer portion of that \(r\). That is, we take the degrees of freedom to be \(\lfloor r\rfloor = \lfloor 55.5\rfloor=55\).

Then, the critical value approach tells us to reject the null hypothesis in favor of the alternative hypothesis if:

\(t>t_{0.025,55}=2.004\)

We reject the null hypothesis because the test statistic (\(t=3.54\)) falls in the rejection region:

There is (again!) sufficient evidence at the \(\alpha=0.05\) level to conclude that the average fastest speed driven by the population of male college students differs from the average fastest speed driven by the population of female college students.

And again, the decision is the same using the \(p\)-value approach. The \(p\)-value is 0.0008:

\(P=2\times P(T_{55}>3.54)=2(0.0004)=0.0008\)

Therefore, because \(p=0.008\le \alpha=0.05\), we reject the null hypothesis in favor of the alternative hypothesis. Again, we conclude that there is sufficient evidence at the \(\alpha=0.05\) level to conclude that the average fastest speed driven by the population of male college students differs from the average fastest speed driven by the population of female college students.

At any rate, we see that in this case, our conclusion is the same regardless of whether or not we assume equality of the population variances.

And, just in case you're interested... we'll see how to tell Minitab to conduct a Welch's \(t\)-test very soon, but in the meantime, this is what the output would look like for this example:

Two-Sample T:   For Fastest

Gender N Mean StDev SE Mean
1 34 105.5 20.1 3.4
2 29 90.9 12.2 2.3

Difference = mu (1) - mu (2) Estimate for difference: 14.6085 95% CI for difference: (6.3575, 22.8596) T-Test of difference = 0 (vs not =) :   T-Value = 3.55    P-Value = 0.001   DF = 55

hypothesis testing for two population variances calculator

A Beginner’s Guide to Hypothesis Testing

  • September 29, 2024

Hypothesis Testing

In the age of big data, both businesses and individuals rely on data to make meaningful decisions. Hypothesis testing is a core skill to have for all data scientists and even most business analysts. In hypothesis testing, we can make inferences about populations from sample data based on statistics, which is why it forms an important part of analytics and data science. The worldwide big data market is expected to expand by $103 billion by 2027, as per a report by Statista . This burgeoning trend highlights a growing dependence on data-informed decision-making and the importance of hypothesis testing.

This blog will cover what is hypothesis testing, explore types of hypothesis testing, and illustrate how data science courses can allow you to enhance upon these skills.

What is Hypothesis Testing?

To answer the fundamental question, what is hypothesis testing? - We can describe it as a statistical technique used to make inferences or decisions based on data. In a nutshell, hypothesis testing is the process of formulating a hypothesis (an assumption or a claim) about a population parameter and then testing that hypothesis with sample data.

How does it work?

  • Formulate Hypothesis : Start with a null hypothesis H₀ and an alternative hypothesis H₁. More often than not, the null hypothesis will assume no effect or no difference, while the alternative hypothesis will present the opposite.
  • Data Collection : You will collect data pertaining to the hypothesis.
  • Data Analysis : You will conduct the appropriate statistical tests so that you can determine whether your sample data accepts the null hypothesis or offers enough evidence to reject it.
  • Drawing Conclusions : From the statistical analysis, you either reject or do not reject the null hypothesis.

Assume, for example, you are testing whether a new medicine is more potent than the current one. The null hypothesis would be that there is no greater effect of this new medicine than the one that is common, whereas the alternative hypothesis suggests that there is.

Types of Hypothesis Testing

What are the types of hypothesis testing? A variety of hypothesis tests exist, and different methods are used based on the data and research question. Different types of hypothesis tests come with their own set of assumptions and applications.

A Z-test is used if the sample size is huge enough such that (n > 30) and population variance is known. It is most frequently used to check if the average value of the samples is equal to the population mean given the population follows a normal distribution.

Suppose you wanted to know whether the average salary for employees in your company has risen compared to last year, and you knew your population standard deviation—you would use a Z-test.

When the sample size is small (n < 30) or when population variance is unknown, a T-test is used. There are two types of T-tests:

  • One-sample T-test : The test is applied to know whether the mean of the sample is different from known population mean.
  • Two-sample T-test : This test compares the means of two independent samples.

T-test can be used when comparing results scores obtained by two different groups of students: one who used traditional learning methods and the other is using new educational application. 

Chi-Square Test

A Chi-square test is applied on categorical data to ascertain whether there is a significant association between two variables. For instance, a company would use the Chi-square test to establish whether customer satisfaction is related to the location of the store.

ANOVA (Analysis of Variance)

ANOVA is utilized if more than two groups are being compared to find whether at least one mean differs significantly from the others. Its application can be represented by an example when determining whether a variety of marketing strategies result in differences in customer engagement by region.

An F-test is used for comparing two population variances. The test is applied in conjunction with ANOVA to check whether all group variances are equal.

Non-Parametric Tests

If the assumptions related to a normal distribution are not satisfied, we resort to non-parametric tests, such as the Mann-Whitney U test or the Wilcoxon signed-rank test. They work well for ordinal data or skewed distributions.

Each of these types of hypothesis testing applies to a different specific use case, depending on the data at hand. The right test ensures that your results will be valid and reliable.

Why is Hypothesis Testing Important in Data Science

Application of hypothesis testing across various industries signifies its importance in data science. For example, in the healthcare industry hypothesis testing is used to verify whether a treatment or procedure, which may have been administered, was actually effective. In finance, it is applied while assessing the risk models, whereas in marketing, its use helps in estimating the effectiveness of campaigns.

For example, using hypothesis testing, a data scientist at an e-commerce company can determine if a new recommendation algorithm will increase sales. Instead of assuming that the perceived revenue increase would be caused by the algorithm, through the use of hypothesis testing, the company can determine statistically whether the variation seen was due to the algorithm or was really just a variation based on chance.

Benefits of Data Science Courses

According to Glassdoor , there are currently over 32,000 data science job openings in India. And hypothesis testing is one of the skills for data scientists which is looked upon by employers. A strong foundation in data science is needed to learn about hypothesis testing and put it into effective practice. And this is what makes enrolling in a data science course valuable. Whether you are a beginner or a professional, joining a data science course means gaining an edge in the mastery of hypothesis testing and other techniques related to data handling.

Essentially, hypothesis testing is a crucial statistical tool that is employed to test assumptions so as to make data-based decisions. Whether it is to compare the efficiency of marketing campaigns, testing new business strategies, or even machine learning models, hypothesis testing is an important tool because any conclusion reached must be based on data, not assumptions. By learning hypothesis testing, you not only enhance your analytical skills but also set yourself up for success in a world increasingly driven by data. 

Share This Post

Subscribe to our newsletter, get updates and learn from the best, more to explore.

data analytics certification course

Your data analytics course might come with a Job Interview but does it offer these things?

Your data analyst training course is incomplete without these features, our programs.

Postgraduate Program In Data Science And Analytics

Postgraduate Program In Machine Learning And Artificial Intelligence

Certification In Artificial Intelligence & Machine Learning

Keep In Touch

COMMENTS

  1. F test calculator

    The F test calculator compares the equality of two variances.. It also validates the data normality, checks the test power, identify the outliers and generates the R syntax. The F test calculator calculates the F test p-value and the effect size. When you enter the raw data, the F test calculator provides also the Shapiro-Wilk normality test ...

  2. F test for two variances calculator

    Step 6 Decision (p -value approach) This is a right-tailed test, so the p-value is the area to the left of the test statistic (F o b s = 1.2676) is p-value = 0.3674. The f test calculator p value is 0.3674 which is greater than the significance level of α = 0.05, we fail to reject the null hypothesis.

  3. Two Population Calculator with Steps

    If the two population variances are assumed to be equal, an alternative formula for computing the degrees of freedom is used. It's simply df = n1 + n2 - 2. This is a simple extension of the formula for the one population case. In the one population case the degrees of freedom is given by df = n - 1. If we add up the degrees of freedom for the ...

  4. F-test for the Equality of Two Population Variances

    Instructions: This calculator conducts an F test for two population variances in order to assess whether two population variances \\(\\sigma_1^2\\) and \\(\\sigma_1^2\\) can be assumed to be equal or not. Please select the null and alternative hypotheses, type the sample variances, the significance level, and the sample sizes, and the results of the F-test will...

  5. Two Sample t-test Calculator

    If this is not the case, you should instead use the Welch's t-test calculator. To perform a two sample t-test, simply fill in the information below and then click the "Calculate" button. Enter raw data Enter summary data. Sample 1. 301, 298, 295, 297, 304, 305, 309, 298, 291, 299, 293, 304. Sample 2.

  6. F-statistic calculator

    To calculate F-statistic, in general, you need to follow the below steps. State the null hypothesis and the alternate hypothesis. Determine the F-value by the formula of F = [(SSE₁ - SSE₂) / m] / [SSE₂ / (n−k)], where SSE is the residual sum of squares, m is the number of restrictions and k is the number of independent variables.. Find the critical value for the F-statistic as ...

  7. F-Test for Equal Variances Calculator

    F-Test for Equal Variances Calculator. An F-test is used to test whether two population variances are equal.. To perform an F-test for two samples, simply enter a list of values for each sample in the boxes below, then click the "Calculate" button: F-Value: 1.77011. P-Value: 0.35774.

  8. Hypothesis Test Calculator

    There are six steps you would follow in hypothesis testing: Formulate the null and alternative hypotheses in three different ways: H 0: θ = θ 0 v e r s u s H 1: θ ≠ θ 0. H 0: θ ≤ θ 0 v e r s u s H 1: θ> θ 0. H 0: θ ≥ θ 0 v e r s u s H 1: θ <θ 0.

  9. F-Test Calculator

    F-test calculator, work with steps, p-value, formula and practice problems to estimate if two observed samples have the same variance by using mean and standard deviation in statistics and probability. ... The F-distribution for testing two population variances has two numbers of degrees of freedom, the number of independent pieces of ...

  10. 13.4 Test of Two Variances

    Therefore, if F is close to 1, the evidence favors the null hypothesis (the two population variances are equal). But if F is much larger than 1, then the evidence is against the null hypothesis. A test of two variances may be left-tailed, right-tailed, or two-tailed.

  11. Two sample t test calculator

    Welcome to our Two Sample T Test Calculator, the ideal tool for comparing mean values from two independent samples. This calculator calculates test statistics, p-values, critical values, judgments, and conclusions using both equal and unequal variance approaches. This tool is intended to help students, researchers, and data analysts simplify ...

  12. 4.5: F-Test for Comparing Two Population Variances

    The test statistic is: F = S21 S22 = 0.087 0.073 = 1.192 (4.5.2) (4.5.2) F = S 1 2 S 2 2 = 0.087 0.073 = 1.192. The test statistic is not larger than the critical value (it does not fall in the rejection zone) so we fail to reject the null hypothesis. While the variance of Type B is mathematically smaller than the variance of Type A, it is not ...

  13. 12.2

    12.2 - Two Variances. Let's now recall the theory necessary for developing a hypothesis test for testing the equality of two population variances. Suppose \ (X_1 , X_2 , \dots, X_n\) is a random sample of size n from a normal population with mean \ (\mu_X\) and variance \ (\sigma^2_X\). And, suppose, independent of the first sample, \ (Y_1 , Y ...

  14. F Test: Simple Definition, Step by Step Examples -- Run by Hand / Excel

    If you're running an F Test using technology (for example, an F Test two sample for variances in Excel), the only steps you really need to do are Step 1 and 4 (dealing with the null hypothesis). Technology will calculate Steps 2 and 3 for you. State the null hypothesis and the alternate hypothesis. Calculate the F value.

  15. 7.4

    To compare the variances of two quantitative variables, the hypotheses of interest are: Null. H 0: σ 1 2 σ 2 2 = 1. Alternatives. H a: σ 1 2 σ 2 2 ≠ 1. H a: σ 1 2 σ 2 2> 1. H a: σ 1 2 σ 2 2 <1. The last two alternatives are determined by how you arrange your ratio of the two sample statistics.

  16. 12.1: Two Variances F Test

    The hypothesis testing procedures for testing claims about two population parameters is performed in the same way as the hypothesis testing procedures for one population parameter. ... Procedure to test a statistical claim about two population variances or standard deviations. 12.1: Two Variances F Test is shared under a not declared license ...

  17. 1.3.5.9. F-Test for Equality of Two Variances

    An F -test (Snedecor and Cochran, 1983) is used to test if the variances of two populations are equal. This test can be a two-tailed test or a one-tailed test. The two-tailed version tests against the alternative that the variances are not equal. The one-tailed version only tests in one direction, that is the variance from the first population ...

  18. Hypothesis Testing Calculator with Steps

    Hypothesis Testing Calculator. The first step in hypothesis testing is to calculate the test statistic. The formula for the test statistic depends on whether the population standard deviation (σ) is known or unknown. If σ is known, our hypothesis test is known as a z test and we use the z distribution. If σ is unknown, our hypothesis test is ...

  19. 9.4: Two Variance or Standard Deviation F-Test

    There are three types of hypothesis tests for comparing the ratio of two population variances , see Figure 9-14. Figure 9-14. If we take the square root of the variance, we get a standard deviation. Therefore, taking the square root of both sides of the hypotheses, we can also use the same test for standard deviations.

  20. t-test Calculator

    t-test calculator performs all kinds of t-tests: one-sample, two-sample, and paired. Board. Biology Chemistry ... Decide on the alternative hypothesis: Use a two-tailed t-test if you only care whether the population's mean (or, in the case of two populations, the difference between the populations' means) agrees or disagrees with the pre-set ...

  21. Variance test calculators

    Variance test calculators. F test for equality of variances - compares variances of two groups. Levene's test for equality of variances - compares variances of several groups. χ 2 test for variance - compares sample variance to expected variance. Standard deviation calculator - calculates the standard deviation with step by step calculation.

  22. Test of Two Variances

    In order to perform a F test of two variances, it is important that the following are true: The populations from which the two samples are drawn are normally distributed. The two populations are independent of each other. Unlike most other tests in this book, the F test for equality of two variances is very sensitive to deviations from normality.

  23. Two Sample T-Test Calculator (Pooled-Variance)

    Two tailed test example: A factory uses two identical machines to produce plastic plates. You would expect both machines to produce the same number of plates per minute. Let μ1 = average number of plates produced by machine1 per minute. Let μ2 = average number of plates produced by machine2 per minute. We would expect μ1 to be equal to μ2.

  24. 11.2

    10.2 - T-Test: When Population Variance is Unknown; 10.3 - Paired T-Test; 10.4 - Using Minitab; Lesson 11: Tests of the Equality of Two Means. 11.1 - When Population Variances Are Equal; 11.2 - When Population Variances Are Not Equal; 11.3 - Using Minitab; Lesson 12: Tests for Variances. 12.1 - One Variance; 12.2 - Two Variances; 12.3 - Using ...

  25. Hypothesis Testing: Key Skill for Data Scientists

    An F-test is used for comparing two population variances. The test is applied in conjunction with ANOVA to check whether all group variances are equal. Non-Parametric Tests; If the assumptions related to a normal distribution are not satisfied, we resort to non-parametric tests, such as the Mann-Whitney U test or the Wilcoxon signed-rank test.

  26. 10.1: Compare two independent sample means

    Introduction. We introduced the concept of comparing a sample statistic (mean) against a population parameter (Chapter 6.7, Normal deviate) or one-sample t-test against a specified mean (e.g., from published data or from theory, Chapter 8.5).Consider now a basic experimental design, the randomized control trial, or RCT (Fig. \(\PageIndex{1}\)), introduced in Chapter 2.4.