Analysis in R: Introduction to Probability Distribution Commands

RAnalytics
スポンサーリンク

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 audibleの登録の紹介

プライム会員限定で2024年7月22日まで3か月無料体験キャンペーン開催中です。無料体験後は月額1,500円で聞き放題です。なお、聞き放題対象外の本はAudible会員であれば非会員価格の30%引きで購入することが可能です。

Amazon audibleはプロのナレーターが朗読した本をアプリで聞くことができるサービスで、オフライン再生も可能です。通勤や作業のお供にAmazon audibleのご登録はいかがでしょうか。

・AmazonのAudible

https://amzn.to/3L4FI5o

Copied title and URL