Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära t-test Mathematically | Statistical Testing
Learning Statistics with Python
course content

Kursinnehåll

Learning Statistics with Python

Learning Statistics with Python

1. Basic Concepts
2. Mean, Median and Mode with Python
3. Variance and Standard Deviation
4. Covariance vs Correlation
5. Confidence Interval
6. Statistical Testing

book
t-test Mathematically

The task of the t-test is to determine whether the difference between the two samples' means is significant. What should you take into consideration to perform it?

Obviously, you should consider the difference between the means itself.

As shown in the image below, the variance matters too.

Also, the size of each sample should be taken into consideration.

To account for the difference between the means, simply calculate that difference:

The situation becomes more complex when it comes to variance. The t-test assumes that the variance is equal for both samples. This will be explored further in the t-test assumptions chapter. To estimate the variance from two samples, the pooled variance formula is applied.

And to account for the size, it needs sample sizes:

Put it all together into t-statistic.

Sample sizes may not always be used in the most intuitive manner. However, this approach ensures that t follows the t-distribution, which will be explored in the next chapter.

question mark

What sample properties does the t-test take into account?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 6. Kapitel 3

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

course content

Kursinnehåll

Learning Statistics with Python

Learning Statistics with Python

1. Basic Concepts
2. Mean, Median and Mode with Python
3. Variance and Standard Deviation
4. Covariance vs Correlation
5. Confidence Interval
6. Statistical Testing

book
t-test Mathematically

The task of the t-test is to determine whether the difference between the two samples' means is significant. What should you take into consideration to perform it?

Obviously, you should consider the difference between the means itself.

As shown in the image below, the variance matters too.

Also, the size of each sample should be taken into consideration.

To account for the difference between the means, simply calculate that difference:

The situation becomes more complex when it comes to variance. The t-test assumes that the variance is equal for both samples. This will be explored further in the t-test assumptions chapter. To estimate the variance from two samples, the pooled variance formula is applied.

And to account for the size, it needs sample sizes:

Put it all together into t-statistic.

Sample sizes may not always be used in the most intuitive manner. However, this approach ensures that t follows the t-distribution, which will be explored in the next chapter.

question mark

What sample properties does the t-test take into account?

Select the correct answer

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 6. Kapitel 3
Vi beklagar att något gick fel. Vad hände?
some-alt