I have several predictive features in my data which was randoemly sampled from a population. I've trained a linear regression model and got the coefficients vector.
Coefficients: [ 0.05695075 0.56977067 2.43343221 4.14751194 1.20493825 0.63284814 6.00986742 5.12038658 -1.92726791 7.23478794 4.32105771 2.45407473 0.3934679 5.66396219 4.01368824] However, the coefficients are random variables and of course might change, and we don't know them we can just estimate them.
I have an assignemt to find the conficance intervals for the coefficients $\beta_0^* .. \beta_k^*$ (those are the real coefficients which we don't know and want to calculate their CI).
The formula to calculate the CI, assuming $\alpha = 0.05$ ,is as follows:
$$[\hat{\beta}_j - 1.96 * \hat{S.E}(\hat{\beta}_j)]$$
or
$$[\hat{\beta}_{j} - 2 * \hat{\sigma_{\epsilon}} \sqrt{(X^TX)_{jj}^{-1}}, \hat{\beta}_{j} + 2 * \hat{\sigma_{\epsilon}} \sqrt{(X^TX)_{jj}^{-1}} ]$$
Now what should I do? how do I find the CI for each coefficient in the data?