Analysis in R: Introduction to Probability Distribution Commands

This section introduces commands for the normal, binomial, chi-square, and F distributions.

Command

See the command and package help for details.

###normal distribution#####
Nomal <- dnorm(x = 1:10, mean = 5, sd = 1)

#Plot
plot(1:10, Nomal, type = "l")
#######

###binomial distribution#####
Binomial <- dbinom(x = 1:20, size = 30, prob = 0.25)

#Plot
plot(1:20, Binomial, type = "l")
#######

###chi-square distribution#####
Chisquare <- dchisq(x = 1:20, df = 10)

#Plot
plot(1:20, Chisquare, type = "l")
#######

###F distribution#####
FDist <- df(x = 1:20, df1 = 10, df2 = 20)

#Plot
plot(1:20, FDist, type = "l")
#######

I hope this makes your analysis a little easier !!

価格および発送可能時期は、変更される場合があります。購入時には、商品詳細ページに表示されている価格および発送可能時期が適用されます。
本サイト上に表示されるコンテンツは、Amazonによって提供されています。このコンテンツは、現状のまま提供され、変更または削除される場合があります。
Amazonのアソシエイトとして、からだにいいものは適格販売により収入を得ています。
Copied title and URL