Statistics [13]: t Test - Comparing Two Samples
Published:
test is usually used in comparing two groups of samples, including two independent samples and paired sampels.
Comparing Two Independent Samples
Assume is drawn from a normal distribution and that an independent sample is drawn from a normal distribution , compare the two samples.
For the general case Assume and , the problem remains unsolved. Thus, we further assume that . In this case,
If is known, a confidence level for can be based on
which follows a standard distribution. The caonfidence level would be
Generally, is not known and must estimated from the data by
and it can be seen that
Let
The statistic
follows a distribution with degrees of freedom.
Therefore, the confidence level would be
Comparing Paired Samples
Assume that the differences are a sample from a normal distribution with
Generally, is unknown, and inferences will be based on
which follows a distribution with degrees of freedom. The confidence level would be
If the sample size n is large, the approximate validity of the confidence interval and hypothesis test follows from the central limit theorem. If the sample size is small and the true distribution of the differences is far from normal, the stated probability levels may be considerably in error.
Table of Contents
- Probability vs Statistics
- Shakespear’s New Poem
- Some Common Discrete Distributions
- Some Common Continuous Distributions
- Statistical Quantities
- Order Statistics
- Multivariate Normal Distributions
- Conditional Distributions and Expectation
- Problem Set [01] - Probabilities
- Parameter Point Estimation
- Evaluation of Point Estimation
- Parameter Interval Estimation
- Problem Set [02] - Parameter Estimation
- Parameter Hypothesis Test
- t Test
- Chi-Squared Test
- Analysis of Variance
- Summary of Statistical Tests
- Python [01] - Data Representation
- Python [02] - t Test & F Test
- Python [03] - Chi-Squared Test
- Experimental Design
- Monte Carlo
- Variance Reducing Techniques
- From Uniform to General Distributions
- Problem Set [03] - Monte Carlo
- Unitary Regression Model
- Multiple Regression Model
- Factor and Principle Component Analysis
- Clustering Analysis
- Summary
Comments