Re: [問題] var(array)已回收

看板MATLAB作者 (幹嘛要暱稱)時間15年前 (2010/09/07 09:37), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《johsieh (ii)》之銘言: : 請問 : 若matrix x=[1;2;3] : 為什麼var(x)=1 呢 : 請問是根據什麼公式呢?? : 我只知道 var(x,1)是根據<(x-<x>)平方> : >< : 可以請高手回一下嗎 : 謝謝 請看var的說明 var normalizes V by N-1 if N>1, where N is the sample size. This is an unbiased estimator of the variance of the population from which X is drawn, as long as X consists of independent, identically distributed samples. For N=1, V is normalized by N. 你的例子中 mean是2 var(x)=(1-2)^2+(2-2)^2+(3-2)^2 /(3-1) = 1 如果你要母體變異數 自己乘上 (n-1)/n 就好 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.109.134.47

09/07 11:09, , 1F
thx
09/07 11:09, 1F

09/07 13:05, , 2F
var(array)跟var(array,1) 後者會自動*(n-1)/n
09/07 13:05, 2F
文章代碼(AID): #1CXPTmM_ (MATLAB)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1CXPTmM_ (MATLAB)