其實這也不是多複雜的功能
不過這次作業用到的關係
把這個指令稍微瞭解了一點
在這邊整理一下
[p,S,mu] = polyfit(x,y,n)
x 指的是預測變數值 independent variable
y 是被預測變數 dependent variable
n 是指polynomial 到的指數次方…{1,2,…}
得到的
p 是係數
S 是一些output例如df ss的值
mu 是標準化相關的值
此外還可以利用polyval得到預測值
pre_y = polyval(p,x)
差距的誤差: dif = y-pre_y
參考連結:
1. http://www.mathworks.com/help/techdoc/ref/polyfit.html
2. http://www.mathworks.com/help/techdoc/ref/polyval.html
2010年12月6日 星期一
2010年5月14日 星期五
[學習]_Empirical distribution function
參考 http://en.wikipedia.org/wiki/Empirical_distribution_function
最近寫231報告的時候用到的
好像無母數分析裡面常常使用
當我們不確定資料的分布狀況時
給定一組資料
可以用cdf來逼近分布的狀況
就叫做empirical distribution
ps: Matlab 中相關的指令 given x is a set of data
ecdf(x)
cdfplot(x)
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/ecdf.html
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/cdfplot.html
最近寫231報告的時候用到的
好像無母數分析裡面常常使用
當我們不確定資料的分布狀況時
給定一組資料
可以用cdf來逼近分布的狀況
就叫做empirical distribution
ps: Matlab 中相關的指令 given x is a set of data
ecdf(x)
cdfplot(x)
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/ecdf.html
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/cdfplot.html
訂閱:
文章 (Atom)