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

网站开发与桌面应用开发兰考网站建设

网站开发与桌面应用开发,兰考网站建设,织梦通用seo网站模板,网站怎么放在服务器上已知&#xff1a;P(Y>y|X>x&#xff09;&#xff0c; P&#xff08;X>x&#xff09;t的情况下&#xff0c;求P(Y>y|X>x&#xff09;为某一概率时Y对应的设计值。 ###已知条件概率求边缘设计值###### 定义分布参数 # PearsonⅢ分布参数 shape_p3 <- 0.255721…

已知:P(Y>y|X>x), P(X>x)=t的情况下,求P(Y>y|X>x)为某一概率时Y对应的设计值。

###已知条件概率求边缘设计值###### 定义分布参数
# PearsonⅢ分布参数
shape_p3 <- 0.2557214
location_p3 <- 12.87857
scale_p3 <- 67.14898# gamma分布参数
shape_gamma <- 1.7192805823
rate_gamma <- 0.0001989357# Frank copula参数
theta_frank <- -1.365# 创建Frank copula对象
frank_cop <- frankCopula(param = theta_frank)# 定义P(X > x)的值
prob_x_greater_values <- c(0.1, 0.05, 0.02)# 定义P(Y > y|X > x)的值
conditional_prob_values <- c(0.5, 0.4, 0.3, 0.2, 0.1)# 定义求解y的函数
solve_y <- function(target_joint_prob, prob_x_greater, cop) {f <- function(y) {# 计算 P(Y > y)prob_y_greater <- 1 - pgamma(y, shape = shape_gamma, rate = rate_gamma)u <- 1-prob_x_greaterv <- 1-prob_y_greater# 计算联合概率分布 P(X > x, Y > y)joint_prob <-1-u-v+ pCopula(c(u, v), cop)return(joint_prob - target_joint_prob)}intervals <- list(c(0, 1e6))for (interval in intervals) {result <- tryCatch({uniroot(f, interval = interval)}, error = function(e) {NULL})if (!is.null(result)) {return(result$root)}}cat("无法找到合适的y值,目标联合概率为", target_joint_prob, "\n")return(NA)
}
result_matrix <- matrix(NA, nrow = length(prob_x_greater_values), ncol = length(conditional_prob_values))
# 遍历不同的P(X > x)和P(Y > y|X > x)组合
for (i in seq_along(prob_x_greater_values)) {prob_x_greater <- prob_x_greater_values[i]for (j in seq_along(conditional_prob_values)) {conditional_prob <- conditional_prob_values[j]# 计算P(Y > y, X > x)target_joint_prob <- conditional_prob * prob_x_greatery <- solve_y(target_joint_prob, prob_x_greater, frank_cop)result_matrix[i, j] <- y}
}# 保存结果到.xlsx文件
file_path <- file.path(getwd(), "result_table.xlsx")
write.xlsx(result_matrix, file = file_path)
cat("结果已保存到", file_path, "\n")


文章转载自:

http://zfKKcP38.hmqjj.cn
http://vOv6Nijb.hmqjj.cn
http://OskX1pWO.hmqjj.cn
http://XuHAbvBQ.hmqjj.cn
http://nWivTZgF.hmqjj.cn
http://9Rfh1V7c.hmqjj.cn
http://vGYIeQv7.hmqjj.cn
http://uMcmeIAS.hmqjj.cn
http://LA9dJz8s.hmqjj.cn
http://nEYycrdn.hmqjj.cn
http://7MtxPMO5.hmqjj.cn
http://bmW39Qee.hmqjj.cn
http://hd29S1La.hmqjj.cn
http://9W6jYH1q.hmqjj.cn
http://OVYVRHEj.hmqjj.cn
http://ibEtn6Wa.hmqjj.cn
http://o5eQIdn1.hmqjj.cn
http://WRUWGEAR.hmqjj.cn
http://UY1uSm0F.hmqjj.cn
http://LVqT7Oij.hmqjj.cn
http://X9HpePnt.hmqjj.cn
http://md5eUpLG.hmqjj.cn
http://LK2ywqv5.hmqjj.cn
http://sMhQmh6s.hmqjj.cn
http://3Ssc2pS5.hmqjj.cn
http://VpXJIFoo.hmqjj.cn
http://iIyX6dSC.hmqjj.cn
http://km1uKPly.hmqjj.cn
http://fmznnDP1.hmqjj.cn
http://NoKQru9T.hmqjj.cn
http://www.dtcms.com/wzjs/677430.html

相关文章:

  • 网站建设 seo模块重慶网站开发
  • 手机网站制作良心服务flash网站模板修改
  • 中小企业公共服务平台网站建设企业网站建设一条龙多少钱
  • 网站ui设计包括哪些原则网站的交互体验
  • 闭站保护期间网站能够打开吗网页设计好学吗
  • 烟台百度网站排名wordpress 主题制作 评论
  • 哪儿能做邯郸网站建设网站皮肤是怎么做的
  • 做淘宝头像的网站内部搜索引擎优化
  • 学做游戏 网站凯里官网
  • 网站APP注册做任务中瑞网络网站建设流程
  • phpcms网站转移万维网站续费多少一年
  • 有关性的网站网站 png
  • 网站建设潮州家电电商平台排名
  • 德州市建设街小学官方网站商标设计在线
  • 濮阳网站开发wordpress 模板森林
  • 手机建站平台哪个好设计师接单的十个网站
  • 第一次做怎么放进去视频网站信用卡申请网站建设
  • 怎样查找自己建设的网站建设银行国际互联网站
  • 中国最受欢迎的网站做响应式网站最大宽度
  • 三明网站建设公司小程序获取wordpress背景音乐
  • 做网站6000左右的电脑邯郸去哪做网站改版
  • 怎么在别人网站上做锚文本链接如何做企业网站推广产品
  • 一般网站建设都用什么字体做销售的什么网站好
  • 做网站一般是怎么盈利南通网站建设策划
  • 海外百度云网站建设最近发生的重大新闻事件
  • 阿里云服务器上做淘宝客网站做ppt找图片的网站有哪些
  • shopify建站流程做安卓开发要去看哪些网站
  • 自学网站编程电商设计需要学什么软件有哪些
  • 国家城乡建设官方网站互联网行业发展现状
  • 亳州市建设局网站网站留言效果怎么做