| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | -186.302648 | 47.3081367 | -3.938068 | 0.0009641 |
| hgt | 1.507037 | 0.2759548 | 5.461175 | 0.0000346 |
bdims body measurement dataset, available hereage, weight (wgt), height (hgt), sex, 21 body girth variables (e.g., hip girth)bdims dataObservations of wgt vs. hgt and least squares line for first sample of 20.
Sample 1
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | -186.302648 | 47.3081367 | -3.938068 | 0.0009641 |
| hgt | 1.507037 | 0.2759548 | 5.461175 | 0.0000346 |
Observations of wgt vs. hgt and least squares lines for first two samples of 20.
Sample 2
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | -118.634720 | 42.7824360 | -2.772977 | 0.0125415 |
| hgt | 1.102269 | 0.2468542 | 4.465263 | 0.0002991 |
Observations of wgt vs. hgt and least squares lines for first three samples of 20.
Sample 3
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | -117.085702 | 26.2230835 | -4.464986 | 0.0002993 |
| hgt | 1.067681 | 0.1513807 | 7.052953 | 0.0000014 |
Least squares lines for 100 random samples of 20.
Dotplot of slopes of least squares lines from 100 random samples.
| n | mean | sd |
|---|---|---|
| 100 | 1.009732 | 0.220826 |
Note
When the null hypothesis is true and the following conditions are met, the \(T\) score has a \(t\)-distribution with \(df=n-2\) degrees of freedom.
One way to check conditions is to look at residual plots.
restNYC dataset1Price (USD, includes tip and drink)Food (rating: 1 to 30)Scatter plot of Price vs Food with least squares line.
Linearity? Independent observations? Normality of residuals? Constant variability?
Residual plot.
| term | estimate | std.error | statistic | p.value |
|---|---|---|---|---|
| (Intercept) | -17.83215 | 5.8631197 | -3.04141 | 0.0027375 |
| Food | 2.93896 | 0.2833809 | 10.37106 | 0.0000000 |
Price) to simulate the null hypothesisPrice and FoodHistogram of slopes from different random permultations of Price (null distribution).
p-value \(\approx0\)
A 95% confidence interval for the slope is given by \[b_1\pm t^{\ast}_{df}\times SE\]
\(SE=0.283\) (from regression output)
We can use the Randomize module in Jamovi to calculate \(t^{\ast}_{116}=1.974\) for a 95% CI
The 95% CI is \(2.94\pm1.974\times0.283\).
95% confident that slope is between 2.38 and 3.49.
95% bootstrap percentile confidence interval: (2.38, 3.45)