Loading…

Inferences About B

Statistics • Simple Linear Regression

View all topics

Inferences about B (Slope of the Population Regression Line)

Confidence interval and hypothesis test for the regression slope, using the t distribution.

1) Data (x, y)

If the file has a header row, it will be ignored automatically.
Paste box accepts mixed separators as well.
Ready
This calculator estimates the regression line from the sample, then makes inferences about the population slope B using df = n − 2.

2) Inference settings

Used for both the confidence interval and the hypothesis test.
This field is display-only; it updates from α.
H0: B = B0.
Controls the p-value and rejection region on the t curve.
What gets computed?
• Sample regression: ŷ = a + bx
• Standard deviation of errors: se = √(SSE/(n−2))
• Standard error of slope: sb = se/√SSxx
• Test statistic: t = (b − B0)/sb, with df = n − 2
• Confidence interval for B: b ± tα/2·sb (two-sided)

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is B in simple linear regression?

B is the population slope in the model y = A + Bx + error. It represents the average change in y for a one-unit increase in x.

How does this calculator test the slope in regression?

It tests H0: B = B0 using the test statistic t = (b - B0)/sb with df = n - 2. The p-value depends on whether you choose a two-sided, right-tailed, or left-tailed alternative.

How is the confidence interval for the slope computed?

For a two-sided interval, it uses b ± t(alpha/2, n-2) x sb, where sb is the standard error of the slope. The confidence level shown is based on the chosen alpha.

Why are the degrees of freedom n - 2 in slope inference?

Two parameters (intercept and slope) are estimated from the data, leaving n - 2 degrees of freedom for estimating the error variation. The t distribution with df = n - 2 is then used for inference.

What sample size do I need for this slope inference calculator?

You need at least 3 data points (n >= 3) so that df = n - 2 is at least 1 and the error variation can be estimated. More data generally improves precision and narrows the confidence interval.