When a researcher needs to compare means for a variable grouped into two categories based on some less-than interval variable, a t-test is appropriate.
To add, The analysis of two populations means through the use of statistical examination is called a t-test. Small sample sizes commonly use a t-test with two samples. What statisticians call as test statistics are identified as t-values. A systematized value that is calculated from sample data during a hypothesis test is called a test statistic. The procedure that calculates the test statistic compares your data to what is expected under the null hypothesis.
You already have an experience with the basic principles behind a t-test if you’ve tried to communicated with a distracted teenager.