当前位置: 首页 > news >正文

公益事业单位网站建设方案网络销售每天做什么

公益事业单位网站建设方案,网络销售每天做什么,建筑工程网正保,做电子手环网站需求分析连续随机量的生成-基于分布函数 1. 概率积分变换方法(分布函数)2. Python编程实现指数分布的采样 1. 概率积分变换方法(分布函数) Consider drawing a random quantity X X X from a continuous probability distribution with …

连续随机量的生成-基于分布函数

  • 1. 概率积分变换方法(分布函数)
  • 2. Python编程实现指数分布的采样

1. 概率积分变换方法(分布函数)

Consider drawing a random quantity X X X from a continuous probability distribution with the distribution function F F F. We know F F F is a continues nondecreasing function if F F F has an inverse F − 1 F^{-1} F1, then Z = F − 1 ( U ) Z=F^{-1}(U) Z=F1(U), where U U U is a random quantity drawn from U ( [ 0 , 1 ] ) U([0,1]) U([0,1]), is a random quantity as desired. Indeed,
P ( X ⩽ z ) = P ( F − 1 ( U ) ⩽ z ) = P ( U ⩽ F ( z ) ) = F ( z ) , ∀ z ∈ R P(X \leqslant z)=P\left(F^{-1}(U) \leqslant z\right)=P(U \leqslant F(z))=F(z), \forall z \in \mathbb{R} P(Xz)=P(F1(U)z)=P(UF(z))=F(z),zR

Example: Exponential distribution Exp ⁡ ( 1 ) \operatorname{Exp} (1) Exp(1).
Exp (1) has a probability density function: f ( z ) = { e − z , z ⩾ 0 , 0 , z < 0. f(z)= \begin{cases}e^{-z}, & z \geqslant 0, \\ 0, & z<0 .\end{cases} f(z)={ez,0,z0,z<0.
Its distribution function is F ( z ) = { 1 − e − z , z ⩾ 0 , 0 , z < 0. F(z)= \begin{cases}1-e^{-z}, & z \geqslant 0, \\ 0, & z<0 .\end{cases} F(z)={1ez,0,z0,z<0.
We only need to concentrate on F ( z ) F(z) F(z) on [ 0 , ∞ ) [0, \infty) [0,), and have
F − 1 ( z ) = − log ⁡ ( 1 − z ) . F^{-1}(z)=-\log (1-z). F1(z)=log(1z).
So F − 1 ( U ) = − log ⁡ ( 1 − U ) F^{-1}(U)=-\log (1-U) F1(U)=log(1U) has a probability distribution Exp ( 1 ) (1) (1). Because 1 − U ∼ U ( [ 0 , 1 ] ) 1-U \sim U([0,1]) 1UU([0,1]), we have − log ⁡ U ∼ Exp ⁡ ( 1 ) -\log U \sim \operatorname{Exp}(1) logUExp(1).

For a distribution function which does not have an inverse, we define a generalized inverse as the following:
F − ( z ) = inf ⁡ { x ∈ R : F ( x ) ⩾ z } . F^{-}(z)=\inf \{x \in \mathbb{R}: F(x) \geqslant z\} . F(z)=inf{xR:F(x)z}.

2. Python编程实现指数分布的采样

Assignment: Sample a random quantity Z ∼ Exp ⁡ ( λ ) Z \sim \operatorname{Exp}(\lambda) ZExp(λ) for some λ > 0 \lambda>0 λ>0.

import numpy as np
import matplotlib.pyplot as plt# Parameter for the exponential distribution
lambda_value = 0.5# Generate random quantity using CDF method
u = np.random.rand(1000)  # Uniform random numbers between 0 and 1
Z = -np.log(1 - u) / lambda_value# Plot histogram
plt.hist(Z, bins=30, density=True, alpha=0.6, color='b', label='Sampled Data')
plt.xlabel('Value')
plt.ylabel('Density')
plt.title('Histogram of Exponential Distribution (Generated using CDF)')
plt.legend()
plt.grid(True)
plt.show()
http://www.yidumall.com/news/101049.html

相关文章:

  • 军事的网站应如何建设小网站怎么搜关键词
  • 网站的导航栏怎么做互动营销
  • 医院做网站的好处中国女排联赛排名
  • 用asp做的网站有多少以图搜图百度识图
  • 漳州做网站公司wordpress自助建站
  • 重庆网站制作外包公司各大网站收录查询
  • 微服务网站网站推广计划书范文500字
  • 网站用什么技术做刷网站关键词工具
  • 设计网站开发方案流程图网上推广用什么平台推广最好
  • 婚恋网站应聘做销售百度账号客服24小时人工电话
  • 湖南城乡建设网站开展网络营销的企业
  • 潍坊网站做的好的公司关键词优化哪个好
  • 漳州城乡住房建设部网站有免费做网站的吗
  • 内部券网站怎么做微信软文推广怎么做
  • 怎么做网站链接的快捷方式sem竞价托管代运营
  • 做网站的能赚多少钱国际新闻大事
  • app开发公司名字网站页面排名优化
  • 灵溪网站建设企业推广方法
  • 手机wap网站怎么做做关键词优化
  • a5网站诊断免费的电脑优化软件
  • 太原市网站建设网站35个成功的市场营销策划案例
  • 专业网站建设供应商王通seo
  • wordpress avada汉化天津seo选天津旗舰科技a
  • 几个做ppt的网站知乎百度搜索风云榜人物
  • 阿里巴巴网站做推广效果怎么样如何搜索网页关键词
  • 做的最好的宠物网站厦门seo网站推广
  • 宁晋县建设局网站网站百度手机端排名怎么查询
  • 用织梦模板做网站鸣蝉智能建站
  • 建设工程规范在哪个网站下载网站快速排名
  • 怎么看网站的建站公司是哪个seo课程多少钱