Re: [問題] 最小平方法??已回收

看板MATLAB作者 (Steven)時間15年前 (2010/05/11 23:50), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
※ 引述《metaldr (metaldr)》之銘言: : 各位大大好 小弟初學matlab : 但很多東西還搞不清楚 老師的作業也做不出來 : 一直有錯誤 所以想請教一下 : 請問最小平方法的計算 如下面這種問題該怎麼解?? 謝謝 : ------------------------------------------------------------------ : 2. : 1 資料表如下:用最小平方法求出nonlinear model y=ax^b的方程式 兩邊取log logY = loga + b*logX Y = b0 + b1 * X 將原始資料取log 用線性OLS估計b0及b1 a=exp(b0) b=b1 畫圖部份請爬文 : 2 write M-file with MATLAB to solve a , b and plot the transformed : and power equation curves and data. : i 1 2 3 4 5 6 : Xi 1 2 3 3.2 3.5 3.8 : yi 1.2 5.2 13 15.1 19 23 : 3. : 1 資料表如下:用最小平方法求nonlinear model y=ae^bx 一樣轉成線性模式估計參數 : 2 write M-file to solve a , b and plot transformed data line : and exponential curves. : i x y : 1 0 1.1 : 2 1 3.0 : 3 2 8.12 : 4 3 22 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.167.59.233

05/11 23:58, , 1F
感謝!!還在研究中...QQ
05/11 23:58, 1F
文章代碼(AID): #1BwNpY-g (MATLAB)
文章代碼(AID): #1BwNpY-g (MATLAB)