Obtaining the variance-covariance matrix
39 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ahmed Abdulla
el 4 de Jun. de 2020
Comentada: Star Strider
el 4 de Jun. de 2020
i wanted to ask if by doing the result will be equal to E as in the equation shown![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/310013/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/310013/image.jpeg)
0 comentarios
Respuesta aceptada
Star Strider
el 4 de Jun. de 2020
That appears to me to be the covariance matrix of the parameters of the linear regression, so in a word, No. The cov function will not do what you want in that situation.
If you have the Statistics and Machine Learning Toolbox, use the LinearModel (specifically: fitlm) to return the CoefficientCovariance matrix for you. It will also do all the necessary calculations to estimate the confidence intervals on the parameters, so there is no need for you to code them separately.
6 comentarios
Star Strider
el 4 de Jun. de 2020
Away for a while. My apologies for the delay.
The only thing I was able to find is Bonferroni Confidence Intervals. I hadn’t heard of them previously. It seems that this would be straightforward to program. I’m not aware of any existing MATLAB function to do so.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!