F-Test

版本 1.0.0.0 (2.7 KB) 作者: James Conder
Test whether addition of model parameters is warranted by improvement of data misfits.
862.0 次下载
更新时间 2013/5/16

查看许可证

This function uses an F-test to determine the likelihood that an observed improvement of a fit to data warrants the use of additional parameters.

Usage:
>> [ p, Fstat, df1, df2 ] = ftest(n,np1,np2,chi1,chi2)

The function requires five inputs: n is the number of data to be fit. np1 & np2 are the numbers of free parameters used in the two models. chi1 and chi2 are sums of the squares of the misfits to the data for the two models.

Primary output is p. p is the probability (between 0 and 1) that the improvement of the fit is due to chance. Therefore a small value of p means a high confidence that the additional parameters are warranted.

Function written for (and examples may be found in):
Anderson, K.B., and Conder, J.A., 2011, Discussion of Multicyclic Hubbert modeling as a method for forecasting future petroleum production, Energy and Fuels, dx.doi.org/10.1021/ef1012648.

引用格式

James Conder (2024). F-Test (https://www.mathworks.com/matlabcentral/fileexchange/41775-f-test), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

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