当前位置:网站首页>R 语言设某电子元件的寿命X(年)服从λ=3的指数分布,求该电子元件寿命为两年的概率。
R 语言设某电子元件的寿命X(年)服从λ=3的指数分布,求该电子元件寿命为两年的概率。
2022-08-08 00:43:00 【Mrrunsen】
使用R语言stats程序包中的dexp函数可以计算指数分布的概率,其语法格式如下。
dexp(x,rate=1,log=FALSE)
# x:接受 vector,表示需要计算指数分布的数据。无默认值
# rate:接受numeric,表示λ。默认为1
设某电子元件的寿命X(年)服从λ=3的指数分布,求该电子元件寿命为两年的概率。
(expon <- dexp(0:10, 3)) # 寿命为0-10年分别的概率
expon[3] <边栏推荐
- Is it safe to snowball account!
- Eureka基础知识
- 第三章 矩阵压缩
- 2 Param 注解的使用规范
- In-depth Synchronized various usage methods
- 【自然语言】------朴素贝叶斯对新闻进行预测分类
- 带你刷(牛客网)C语言百题(第五天)
- 永远不停歇
- Seaborn调用load_dataset时,出现错误。 urllib.error.URLError: urlopen error [WinError 10054] 远程主机强迫关闭了
- Antdv+Asp.net WebApi Development of Student Information Management System (1)
猜你喜欢
随机推荐
Rdkit常用命令/参数设置
高层次综合(HLS)
同花顺上面可以开户吗?开户安全吗
存储系统架构演变
SVG基本图形
RT-Thread uses arm_math
TensorFlow(六):循环神经网络
MySQL笔记-05 数据表操作
Good news | Hongshi data has obtained CMMI level 3 certification!Welcome to the self-developed unified operation and maintenance monitoring platform!
PyTorch 源码解读之 torch.utils.data:解析数据处理全流程(非常好,一篇足够)
OpenFeign简介和使用详解
solidworls view and model and drawing operation shortcuts
Distributed agreement of Lease mechanism
提升领导力的有效方法
Seaborn调用load_dataset时,出现错误。 urllib.error.URLError: urlopen error [WinError 10054] 远程主机强迫关闭了
将一句话的单词进行倒置,标点不倒置。
JMeter
带你刷(牛客网)C语言百题(第五天)
pycharm connect to remote server
二分查找









