微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用转移概率模型拟合 HMM

如何解决使用转移概率模型拟合 HMM

由于我目前正在从 R 切换到 Python,因此我想找到一个具有挑战性的问题,我可以在该问题上学习如何估计隐藏的马尔可夫模型。我阅读了我在学校记得的一篇经济学论文,该论文适用于 HMM(Taylor,M. (2002),官方汇率干预有效吗?)。

但是,我看到除了“排放”变量的模型外,论文还有一个转换概率模型。具体来说,

formula

其中 D(S_t) 只是状态长度的计数器。基本上,重点是状态概率取决于某些东西(f 中给出的形式),并且 p_t 有一定的函数形式可以估计。

我以前从未见过这样的 HMM 规范。是否有允许我这样做的 HMM 包?

当然,我不希望有人帮助我实际估算此模型,我只是希望了解要使用的包/方法。我不知道这是否可以用 processData = function() { $.ajax({ url: "Admin/Massupload/processErrorsThroughAPI.cfm",type: "POST",dataType: "json",success: function (data) { console.log("data stringified: " + JSON.stringify(data)); if (data.length > 0) {//There are rows in the table to delete or error messages to update $.each(data,function(index,item){ if (item.ERRORMESSAGE == "") {//Record passed validation. Remove this row from the data table. oTable.fnDeleteRow($('#'+item.IMPORTERRORID)[0]); oTable.fnDraw(); } else {//Record did not pass validation,display new error message in the data table $('#Row'+item.IMPORTERRORID+'ErrorMsg').text(item.ERRORMESSAGE); } //console.log(index); console.log("item.IMPORTERRORID = " + item.IMPORTERRORID); console.log("item.ERRORMESSAGE = " + item.ERRORMESSAGE); }); } else {//No items to process,so nothing to display var divInfo = '<div class="container-fluid"> <div class="row-fluid"> <div class="well well-clear span6 offset3">'; divInfo += 'Any errors associated with the uploading of the spreadsheet have been corrected.<br/>'; divInfo += '<button type="button" onclick="selectExcelFile()">Go back to hire import</button><br/>'; divInfo += '</div> </div> </div>'; $('#hireImportTab').html(divInfo); } },error: function (xhr,ajaxOptions,thrownError) { console.log(xhr.status); console.log(thrownError); } }); } Hmmlearn 完成。 为这种模型指定对数似然函数将是一项艰巨的任务......

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。