〈租界R〉トップページ

χ二乗分布に関連する関数(dchisq, pchisq, qchisq, rchisq)

三中信宏
Copyright (c) 2004 by MINAKA Nobuhiro. All rights reserved.


●χ二乗分布の密度関数(dchisq)を表示
> x <- seq(0, 20, 0.01)
> plot(x, dchisq(x, 5), type="n")
> curve(dchisq(x, 10), type="l", add=T)


●t分布のパラメーター――自由度を変える
> x <- seq(0, 20, 0.01)
> plot(x, dchisq(x, 5), type="n")
> title("Chi-square Distribution\ndf=5 -> 10")
> for (i in 1:5) curve(dchisq(x, 5+i), type="l", add=T)

Last Modified: 8 December 2004 by MINAKA Nobuhiro