calculatorgate.com
Home
/Hypothesis Test

Hypothesis Test Calculator (T-Test, Z-Test)

Perform statistical hypothesis testing with T-test and Z-test, calculate p-value and confidence interval.

What You Need to Know About Hypothesis Testing

Statistical significance and decision making

Hypothesis testing is a statistical method to determine whether the difference between a sample or two samples is due to chance or is real. H₀ (null hypothesis) = no difference, H₁ (alternative hypothesis) = there is a difference.

T-Test vs Z-Test difference: T-test is used when sample is small (typically n<30) or population standard deviation is unknown. Z-test is used for large samples or when population standard deviation is known. Reject H₀ if p-value < α (difference is significant).

Applications and examples: Testing drug effectiveness (new drug → old drug comparison), marketing campaign evaluation (pre → post campaign sales), educational research (comparing different teaching methods), quality control (compliance with production standards).

Frequently asked questions

Short answers to common questions

What does p-value mean?

P-value is the probability of obtaining the observed result or more extreme, assuming H₀ hypothesis is true. Small p-value (e.g., <0.05) allows us to reject H₀.

Should I use T-test or Z-test?

Use T-test if sample is small (n<30) or population standard deviation is unknown, use Z-test if sample is large or population standard deviation is known.

What should significance level (α) be?

Typically 0.05 is used. This means you accept a 5% risk of error. You can use 0.01 to be more conservative.

What is confidence interval?

Confidence interval specifies the range where the population mean lies. 95% confidence interval = in 95 out of 100 samples, the true mean will be in this range.