Lesson
06 of 18
Translate

🦹🏼‍♀️Student's t-Test

One-sample, two-sample, and paired t-tests — formulas, assumptions, worked examples with greengram, potato, and Lucerne data

A breeder develops a new greengram variety expected to yield 13 quintals per hectare. She tests it on only 12 plots — too few for a Z-test. With a small sample and unknown population standard deviation, the t-test is her go-to tool for determining whether the observed yield matches the expected value.


Small Sample Tests

  • The entire large sample theory was based on the application of “normal test”. However, if the sample size “n” is small, the distribution of the various statistics, e.g., Z are far from normality and as such “normal test” cannot be applied if “n” is small (n < 30).
  • In such cases exact sample tests, we use t-test pioneered by W.S. Gosset (1908) who wrote under the pen name of “Student”, and later on developed and extended by Prof. R.A. Fisher.

The t-test (also called Student’s t-test) is one of the most widely used statistical tests in agricultural research. It is specifically designed for situations where the sample size is small and the population standard deviation is unknown.


t-test for One Samples

  • Let x1, x2, ………. xn be a random sample of size “n” has drawn from a normal population with mean μ and variance σ2 then Student’s t – is defined by the statistic.
One-sample t-test formula
One-sample t-test formula
  • This test statistic follows a t – distribution with (n-1) degrees of freedom (d.f.). To get the critical value of t we have to refer the table for t-distribution against (n-1) d.f. and the specific level of significance. Comparing the calculated value of t with critical value, we can accept or reject the null hypothesis.
  • The Range of t — distribution is -∞ to +∞. Unlike the Z-distribution, the t-distribution has heavier tails, meaning extreme values are more likely. As the sample size increases, the t-distribution approaches the normal distribution.
  • ‘T’ test is applicable when number of treatments is 2.
  • When sample size is small (n < 30) and S.D. is unknown, use ‘T’ test. This is the key condition that distinguishes the t-test from the Z-test.
  • For testing the significance of correlation coefficient, use ‘T’ test.
  • When S.D. of population is not known but sample size is more than 30, then use ‘Z’ Test.

TIP

When to use which test?

  • Z-test: n > 30 (large sample), σ known or estimated from large sample
  • t-test: n < 30 (small sample), σ unknown, also for correlation significance
  • F-test: Comparing two or more variances, ANOVA

Example:

  • Based on field experiments, a new variety of greengram is expected to give yield of 13 quintals per hectare. The variety was tested on 12 randomly selected farmer fields. The yields (quintal/hectare) were recorded as 14.3, 12.6, 13.7, 10.9,13.7, 12.0, 11.4, 12.0, 13.1, 12.6, 13.4 and 13.1. Do the results conform the expectation?

Solution:

  • Null Hypothesis: H0 : μ = μ0 = 13 i.e. the results conform the expectation
  • The test statistic becomes
t-test example formula
t-test example formula
t-test example variance calculation
t-test example variance calculation
  • Let yield = xi (say)
t-test example computation
t-test example computation
  • t-table value at (n-1) = 11 d.f. at 5 percent level of significance is 2.20. Calculated value of t < table value of t, H0 is accepted and we may conclude that the results conform to the expectation.

Since the calculated t-value is less than the critical value, we do not have sufficient evidence to say the yield is different from 13 quintals/hectare. The new variety’s performance is consistent with the expectation.


t-test for Two Samples

The two-sample t-test (also called the independent samples t-test) is used to compare the means of two independent groups when the sample sizes are small and the population standard deviation is unknown.

Assumptions:

  • Populations are distributed normally
  • Samples are drawn independently and at random

Conditions:

  • Standard deviations in the populations are same and not known
  • Size of the sample is small

Procedure:

  • If two independent samples xi (i = 1, 2, …., n1) and yj (j = 1, 2, ….., n2) of sizes n1 and n2 have been drawn from two normal populations with means μ1 and μ2 respectively.
  • Null hypothesis H0: μ1 = μ2
  • The null hypothesis states that the population means of the two groups are identical, so their difference is zero.
Two-sample t-test formula
Two-sample t-test formula
Pooled variance formula
Pooled variance formula
Two-sample t-test statistic
Two-sample t-test statistic
  • where s12 and s22 are the variances of the first and second samples respectively.
Two-sample t-test combined formula
Two-sample t-test combined formula
  • Which follows Student’s t – distribution with (n1 + n2 - 2) d.f. If calculated value of |t| < table value of t with (n1 + n2 - 2) d.f. at specified level of significance, then the null hypothesis is accepted otherwise rejected.

Note that the degrees of freedom for the two-sample t-test is (n1 + n2 - 2), which accounts for the two constraints (the two sample means).


Example:

  • Two verities of potato plants (A and B) yielded tubers are shown in the following table. Does the mean weight of tubers of the variety “A” significantly differ from that of variety “B”?
Potato variety data table
Potato variety data table

Solution:

  • Hypothesis H0 : μ1 = μ2 i.e. the mean weight of tubers of the variety “A” do not significantly differ from the variety “B”.
Potato example computation step 1
Potato example computation step 1
Potato example computation step 2
Potato example computation step 2
Potato example computation step 3
Potato example computation step 3
Potato example computation step 4
Potato example computation step 4
Potato example final result
Potato example final result
  • Calculated value of t = 3.77. Table value of t for 19 d.f. at 5 % level of significance is 2.09 Since the calculated value of t > table value of t, the null hypothesis is rejected and hence we conclude that the mean number of tubes of the variety “A” significantly differ from the variety “B”.

Paired t – test

The paired t-test is used when the two samples are not independent but are related — typically measurements taken on the same subject before and after a treatment or under two different conditions.

  • The paired t-test is generally used when measurements are taken from the same subject before and after some manipulation such as injection of a drug.
  • For example, you can use a paired t test to determine the significance of a difference in blood pressure before and after administration of an experimental pressure substance.

Assumptions

  • Populations are distributed normally
  • Samples are drawn independently and at random

Conditions

  • Samples are related with each other
  • Sizes of the samples are small and equal
  • Standard deviations in the populations are equal and not known

Hypothesis

  • H0: μd = 0

This null hypothesis states that the mean difference between paired observations is zero, i.e., there is no effect of the treatment.

  • Under H0, the test statistic becomes,
Paired t-test formula
Paired t-test formula
Paired t-test variance formula
Paired t-test variance formula
  • Where
    • S2 is variance of the deviations
    • n = sample size; where di = xi - yi (i = 1,2, ……, n)
  • If calculated value of |t| < table value of t for (n-1) d.f. at α % level of significance, then the null hypothesis is accepted and hence we conclude that the two samples may belong to the same population. Otherwise, the null hypothesis rejected.

Example

  • The average number of seeds set per pod in Lucerne were determined for top flowers and bottom flowers in ten plants.
  • The values observed were as follows:
Lucerne seed data table
Lucerne seed data table
  • Test whether there is any significant difference between the top and bottom flowers with respect to average numbers of seeds set per pod.

Solution:

  • Null Hypothesis H0: μd = 0
  • Under H0 becomes, the test statistic is
Paired t-test example step 1
Paired t-test example step 1
Paired t-test example step 2
Paired t-test example step 2
Paired t-test example result
Paired t-test example result
  • Calculated value of t = 1.65
  • Table value of t for 9 d.f. at 5% level of significance is 2.26
  • Calculated value of t < table value of t, the null hypothesis is accepted and we conclude that there is no significant difference between the top and bottom flowers with respect to average numbers of seeds set per pod.

Since the calculated t (1.65) is well below the critical value (2.26), the observed difference is likely due to random variation rather than a genuine difference in seed setting between top and bottom flowers.


Summary Table

Test TypeWhen to Used.f.Hypothesis
One-sample t-testCompare sample mean with known valuen - 1H0: μ = μ0
Two-sample t-testCompare means of two independent groupsn1 + n2 - 2H0: μ1 = μ2
Paired t-testCompare paired/related measurementsn - 1H0: μd = 0
ConceptKey PointExam Tip
DiscovererW.S. Gosset (“Student”), extended by R.A. FisherPen name = Student
When to usen < 30, σ unknownSmall sample, unknown S.D.
Range-∞ to +∞Heavier tails than Z
Number of treatments2 maximumUse F-test/ANOVA for more
vs Z-testn < 30 → t-test; n > 30 and σ known → Z-testKey decision criterion
For correlationUse t-test to test significance of rd.f. = n - 2

TIP

Quick decision guide: Sample small (n < 30) and σ unknown? Use t-test. Sample large (n > 30)? Use Z-test. More than 2 groups? Use F-test (ANOVA).


Summary Cheat Sheet

Concept / TopicKey Details
Student’s t-testPioneered by W.S. Gosset (1908, pen name “Student”)
Extended byProf. R.A. Fisher
When to usen < 30 (small sample), σ unknown
Range of t-∞ to +∞ (heavier tails than Z-distribution)
Max treatments2 — use F-test/ANOVA for more
One-sample t-testCompare sample mean with known value; d.f. = n - 1
Two-sample t-testCompare means of two independent groups; d.f. = n₁ + n₂ - 2
Paired t-testCompare related/paired measurements; d.f. = n - 1
Paired t-test H₀μ_d = 0 (mean difference = zero)
Two-sample assumptionsNormal populations, independent random samples, equal unknown σ
Pooled variances² = (SS₁ + SS₂) / (n₁ + n₂ - 2)
For correlationt-test tests significance of r; d.f. = n - 2
vs Z-testn < 30 → t-test; n > 30 and σ known → Z-test
Decision rule
t approaches ZAs sample size increases, t-distribution → normal
Practical useGreengram yield testing, potato variety comparison, Lucerne seed set
Key distinctiont-test for small samples with unknown S.D.
🔐

Pro Content Locked

Upgrade to Pro to access this lesson and all other premium content.

Pro Popular
199 /mo

₹2388 billed yearly

  • All Agriculture & Banking Courses
  • AI Lesson Questions (100/day)
  • AI Doubt Solver (50/day)
  • Glows & Grows Feedback (30/day)
  • AI Section Quiz (20/day)
  • 22-Language Translation (30/day)
  • Recall Questions (20/day)
  • AI Quiz (15/day)
  • AI Quiz Paper Analysis
  • AI Step-by-Step Explanations
  • Spaced Repetition Recall (FSRS)
  • AI Tutor
  • Immersive Text Questions
  • Audio Lessons — Hindi & English
  • Mock Tests & Previous Year Papers
  • Summary & Mind Maps
  • XP, Levels, Leaderboard & Badges
  • Generate New Classrooms
  • Voice AI Teacher (AgriDots Live)
  • AI Revision Assistant
  • Knowledge Gap Analysis
  • Interactive Revision (LangGraph)

🔒 Secure via Razorpay · Cancel anytime · No hidden fees

Lesson Doubts

Ask questions, get expert answers

Lesson Doubts is a Pro feature.Upgrade