在R-如何绘制PDF和CDF的指数分布,给定指数分布给定lambda = 0.2或theta = 5 and n = 10?
我不知道如何绘制概率分布功能(PDF)和给定的累积λ= 1/5
n = 10
观察值
I don't know how to plot the probability distribution function (PDF) and the cumulative one given λ = 1/5
for N=10
observations
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要寻找的3个功能是
dexp()
,qeark()
和rexp()
。使用?
操作员为他们获取帮助页面。每个统计分布都有等效的函数集,可定义密度,分位数(累积)和数据集。
r使用
绘图(x,y)
表示图。如果您使用的是rstudio,则可以使用GUI保存图像,否则您可以做:我对stack Overflow在回答家庭作业问题的政策上并不完全自信,但我认为这并不是要过度努力。我认为弄清楚X和Y轴上的内容构成了您应该找出的内容。
The 3 functions you are looking for are
dexp()
,qexp()
andrexp()
. Use the?
operator to get the help page for them.Each stat distribution has the equivalent set of functions that define the density, quantiles (cumulative) and a data set.
R uses
plot(x, y)
notation to make a plot. If you are using Rstudio, you can use the GUI to save the image, else you can do:I'm not wholly confident on stack overflow's policy on answering homework questions, but I think this isn't overstepping. I think figuring out what goes on the x and y axes constitutes what you're supposed to figure out.