Re: [問題] var(array)已回收
※ 引述《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
09/07 11:09, 1F
推
09/07 13:05, , 2F
09/07 13:05, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):