One-sample t-test
A one-sample t-test asks: "Is the mean of my sample significantly different from a specific value μ₀?" For example, you measure the weight of 10 packages and want to know if the mean differs from the labelled weight of 500 g.
t = (x̄ − μ₀) / (s / √n), where x̄ is the sample mean, μ₀ is the hypothesised mean, s is the sample standard deviation, and n is the sample size. The t-statistic is compared against the t-distribution with df = n − 1 to obtain a two-tailed p-value.