R中三種檢驗正態分佈的方式

一、畫出密度函數與正態分佈密度圖比較: library(MASS) mu<- c(0,0,0) Sigma<- matrix(c(1,0.5,0.25,0.5,1,0.5, 0.25,0.5,1),3,3) M<- mvrnorm(1000, mu, Sigma) d<- density(M[,2]) plot(d$x,dnorm(d$x),col=2,type = "n") lines(d$x,
相關文章
相關標籤/搜索