varcov

版本 0.01 (2.5 KB) 作者: Meade
Calculate the VARIANCE-COVARIANCE matrix from the outputs of the |fit| function.
21.0 次下载
更新时间 2019/8/5

查看许可证

VARCOV calculates the variance-covariance matrix for a regression created with the Matlab |fit| function.
This matrix is not otherwise directly accessible through the |fit| function, though it is used in the lease-squares optimization and referenced in the documentation as well as in alternative fitting algorithms (like |nlinfit|).

This algorithm does NOT use the primary input-output scatter matrix to calculate and thus the output of VARCOV will be dependent on the goodness of fit of your regression. There are numerous alternatives to calculate this directly, i.e. |cov|.

For reasons that are unclear to me, the VARCOV is not available directly from the least-squares fitting algorithm used in |fit|. However, the relationship between the Jacobian and error Residuals is referenced in the documentation. Credit to Mark L. Stone on StackExchange for an excellent answer that provided the framework to figure this out.
<https://stats.stackexchange.com/users/78964/mark-l-stone), Relation between Covariance matrix and Jacobian in Nonlinear Least Squares, URL (version: 2016-08-27): https://stats.stackexchange.com/q/231886>

Feedback welcome.

引用格式

Meade (2024). varcov (https://www.mathworks.com/matlabcentral/fileexchange/72372-varcov), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
0.01