This can be done using the formula for the standard deviation of the predicted value of $y$ in a simple linear regression, which is given by:
$$
s_{\hat{y}} = s \sqrt{\frac{1}{n} + \frac{(x - \bar{x})^2}{\Sigma (x_i - \bar{x})^2}}
$$
where $s$ is the standard
Show more…