This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
特定のパラメーターに対して、さまざまな種類の pdf (ノーマル、ベータ、ワイブルなど) のプロットを作成する必要があります。私は R に非常に慣れていません。私が見つけることができた他のすべてのリソースは、これらの分布をデータに適合させる方法を示しています。分布を個別にプロットする方法が見つかりません。それ、どうやったら出来るの?
## Normal PDF
x <- seq(-4,4,.001)
y <- dnorm(x)
plot(x,y)
## Beta PDF
x <- seq(0,1,.001)
y <- dbeta(x,2,5)
plot(x,y)
# Can also do with line instead of points
x <- seq(0,1,.001)
y <- dbeta(x,2,5)
plot(x,y,type='n')
lines(x,y)