T-stat sampling

This example is similar to the previous example, with two changes: we are calculating the t-statistic instead of simply the difference in the means, and the function to calculate the t-stat is pre-defined and used in the sapply function. The Central Limit Theorem approximation looks pretty good for sample sizes as small as 12.

Leave a Reply

Your email address will not be published. Required fields are marked *