当前位置:网站首页>R 语言马尔可夫链蒙特卡洛:实用介绍
R 语言马尔可夫链蒙特卡洛:实用介绍
2022-06-26 01:31:00 【Mrrunsen】
马尔可夫链和成本函数
马尔可夫链是对本质上“无记忆”的某一类进程的特殊术语。这意味着系统的演变不取决于系统的位置。为了说明这一点,请考虑掷硬币。在每次翻转时,他们都有 50/50 的机会让两边直立。这是一个马尔科夫过程。现在不符合这个标准的可能是流感的传播。在试图预测下周有多少人会感染流感时,你最好考虑一下现在有多少人感染了流感。对于流感,过去的趋势对于预测未来事件的进程非常有帮助,但在抛硬币的马尔可夫过程中则完全没有帮助。
在抛硬币的情况下,我们已经在不知不觉中讨论了成本函数的概念。当我们说硬币有 50/50 的正面朝上机会时,我们直觉地意识到正面朝上和反面朝上对于硬币来说同样困难。如果你是一枚公平的硬币,你不会在乎你以哪种方式降落。因此,成本函数只是一个黑匣子(我们只关心),它告诉我们某个结果的成本有多大,例如在决定如何最好地避开上班路上的交通时。对于一枚硬币,这个成本函数是平坦的,或者对任何一个结果都无关紧要。
该成本函数通过描述与每个选项相关的权重来告诉马尔可夫链如何及时演化。回到我们之前谈到的优化,成本函数应该始终为我们指明正确的方向,以便随着时间的推移提供越来越好的解决方案。
让我们首先设置一个域或区域进行探索。我们将使用一个众所周知的测试函数,它应该提供我们需要的复杂性。
test = function (x,y) 边栏推荐
- Share some remote office experience in Intranet operation | community essay solicitation
- 100002nd prime
- Breadth first traversal of Graphs
- How to improve code execution efficiency with arm pipeline
- Consumer of microservices
- 【系统架构】-如何评估软件架构
- Wechat launched a web version transmission assistant. Is it really easy to use?
- Blazor University (33) form - editcontext, fieldidentifiers
- Here comes the official zero foundation introduction jetpack compose Chinese course!
- Cow sequencing problem
猜你喜欢

Share some remote office experience in Intranet operation | community essay solicitation

音视频与CPU架构

In depth good article: what is supernetting?

无法上网问题解决过程

数字商品DGE--数字经济的财富黑马

Ardiuno smart mosquito racket

基于邻接表的深度优先遍历

How did the thief unlock the password after the iPhone was stolen? After reading the long knowledge

基于邻接表的广度优先遍历

win32
随机推荐
Back to top case
Redis linked list
WPF 窗口居中 & 变更触发机制
用指南针交易股票安全吗?指南针是如何交易股票的,需要开户吗
Unexpected output super efficiency SBM model matlab code
工作一年闲记
二分查找
vs2015+PCL1.8.1+qt5.12-----(1)
Blazor University (33)表单 —— EditContext、FieldIdentifiers
Is it safe to open a securities account at the school of Finance and business in 2022?
Audio video and CPU architecture
Advanced cross platform application development (23): an article approaching the launch of testlight
Cvpr2022 𞓜 future transformer with long-term action expectation
哪个证券公司手机股票开户更好更安全?
Breadth first traversal based on adjacency matrix
Markov decision process (MDP): Blackjack problem (mc-es)
Eureka注册信息配置备忘
Graduation summary of cloud native training camp
Redis Lua sandbox bypass command execution (cve-2022-0543)
为 ServiceCollection 实现装饰器模式