在R-如何绘制PDF和CDF的指数分布,给定指数分布给定lambda = 0.2或theta = 5 and n = 10?

发布于 2025-01-23 04:25:25 字数 77 浏览 2 评论 0原文

我不知道如何绘制概率分布功能(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=10observations

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬シ愛 2025-01-30 04:25:25

您要寻找的3个功能是dexp()qeark()rexp()。使用操作员为他们获取帮助页面。

每个统计分布都有等效的函数集,可定义密度,分位数(累积)和数据集。

r使用绘图(x,y)表示图。如果您使用的是rstudio,则可以使用GUI保存图像,否则您可以做:

png("name.png")
plot(x, y)
dev.off()

我对stack Overflow在回答家庭作业问题的政策上并不完全自信,但我认为这并不是要过度努力。我认为弄清楚X和Y轴上的内容构成了您应该找出的内容。

The 3 functions you are looking for are dexp(), qexp() and rexp(). 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:

png("name.png")
plot(x, y)
dev.off()

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文