Note One Case Study About T-Test

This is a quiz in inference statistic at udacity

In this quiz, we want to study : Who has more shoes - males or females?

Firstly, we set a null hypothesis that : Males and Femals have the same number of shoes. So, alternative hypothesis is Males and Femals have not the same number of shoes.

This data table is collected in Udacity company (employer)

To check our hypothesis is true or false, we test in this data.
We calculate avarage and SD (Standard Deviation) of two groups.

We have a sign:

Then, we calculate SE (Standard Error) based on formular:

Then, we calculate t-statistic based on formular:

Select alpha = 0.05 and find in t-table:
We can find t-critical-value = 2.120

We have total 7 females and 11 males, so we have 18 person. To calculate Degrees of Freedom, we subtract this sum to 2 because Degrees of Freedom = N -1:
- total of Degrees of Freedom = N -1 + M -1 = N + M - 2 = 16

Because , we select alpha = 0.05 and calculate in 2- dimensional (males-females), alpha must be divided 2 and results is 0.025.

So select column and row have alpha = 0.025 and df = 16, we have t-critical = 2.120.
We have -2.120 < t-statistic = 0.96 < 2.120. So, we accept null hypothesis .

So, we can conclude that the number of shoes of males and females are same (least in Udacity company). This is briefly way to check a hypothesis base on t-test and sample data.