【源码】HFMRD:用于检测对冲基金报告中错误回报的框架

2023-11-08 19:30

本文主要是介绍【源码】HFMRD:用于检测对冲基金报告中错误回报的框架,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

640?wx_fmt=jpeg


此脚本表示了一个完整的功能框架,用于通过以下测试检测对冲基金报告中的错误回报

This script represents a full-featured framework for detecting misreported returns in hedge funds through the following tests:


> Low Correlation with Other Assets (Bollen & Pool, 2008-2010): 

==> IndexRSQ 

==> MaxRSQ or SwitchRSQ with change-point regression (as per Andrews et al., 1996) 

> Serial Correlation (Bollen & Pool, 2008-2010): 

==> Unconditional 

==> Conditional 

> Bias Ratio (Abdulali, 2002) 

> December Spike (Agarwal et al., 2011) 

> Discontinuity At Zero / Kink (Bollen & Pool, 2008-2010) 

> Digits Conformity (Bollen & Pool, 2008-2010): 

==> Benford's Law Conformity of First Digits 

==> Uniform Distribution Conformity of Last Digits 

> Data Quality (Straumann, 2008): 

==> Number of Negative Returns 

==> Number of Zero Returns 

==> Number of Unique Returns 

==> Number of Pairs of Identical Returns 

==> Maximum Length of Adjacent Identical Returns


They are all based on the normality assumption of returns.


# USAGE #


1) Create a properly structured database (see the paragraph below). 

2) Edit the "run.m" script following your needs. 

3) Execute the "run.m" script.


The "Test Results" plot created by the "plot_results" function is interactive and based on a singleton pattern. Detailed plots concerning a specific test for a specific hedge fund can be displayed by clicking on the corresponding table cell.


# DATASET #


Datasets must be structured like the default one included in every release of the framework ("Datasets/Example.xlsx"). The latter, based on the US financial sector, defines the following entities:


> Benchmark (BM) & Risk-Free Rate (RF) 

The benchmark is represented by the market proxy defined in Fama & French, 1993: the value-weighted returns of all the US CRSP firms listed on the AMEX, NASDAQ or NYSE that have a CRSP share code of 10 or 11 at the beginning of month t, good shares and price data at the beginning of t, and good return data for t. The 1M treasury bill rate is taken as the risk-free rate.


> Hedge Funds (3): 

==> The Growth Fund of America - Class A (AGTHX) 

==> The Gateway Fund - Class A (GATEX) 

==> The Fairfield Sentry Fund of Bernard Madoff (SENTRY)


> Style Factors (18): 

==> MRKEXC: the excess return on the market, calculated as benchmark minus risk-free rate. 

==> Fama & French 5 Factors from the French Data Library (10) 

====> CMA: conservative minus aggressive, the average return on two conservative investment portfolios minus the average return on two aggressive investment portfolios. 

====> HML: high minus slow, the average return on two value portfolios minus the average return on two growth portfolios. 

====> MF: the momentum factor, the average return on two high prior return portfolios minus the average return on two low prior return portfolios. 

====> RMW: robust minus weak, the average return on two robust operating profitability portfolios minus the average return on two weak operating profitability portfolios. 

====> SMB: small minus big, the average return on nine small stock portfolios minus the average return on nine big stock portfolios. 

====> The squared values of the above factors, proposed by Bollen & Pool to capture nonlinearities in exposure generated by dynamic trading and/or derivatives. 

==> Fung & Hsieh Trend-following Factors from the Hsieh Website (7) 

====> PTFSBD: the returns of a portfolio of options on bonds, based on a primitive trend-following strategy. 

====> PTFSFX: the returns of a portfolio of options on foreign currencies, based on a primitive trend-following strategy. 

====> PTFSCO: the returns of a portfolio of options on commodities, based on a primitive trend-following strategy. 

====> PTFSIR: the returns of a portfolio of options on short−term interest rates, based on a primitive trend-following strategy. 

====> PTFSST: the returns of a portfolio of options on stock indices, based on a primitive trend-following strategy. 

====> TBR10Y: the 10Y treasury bond rate. 

====> CRESPR: the change in the credit spread (the BAA corporate bond rate minus the 10Y treasury bond rate).


For what concerns the financial time series: 

> they must be based on a monthly frequency; 

> they must contain enough observations to run consistent calculations (a minimum of 120 observations for at least 3 hedge funds is required); 

> they must have been previously validated and preprocessed by removing rows with NaNs or filling the gaps with an interpolation approach; 

> a minimum of 3 style factors is required; 

> groups are optional, hence their sheet must be removed from the dataset if all the hedge funds are assumed to belong to the same style.


完整资料领取请加QQ群免费下载:

640?wx_fmt=png

这篇关于【源码】HFMRD:用于检测对冲基金报告中错误回报的框架的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/371999

相关文章

Spring 框架之Springfox使用详解

《Spring框架之Springfox使用详解》Springfox是Spring框架的API文档工具,集成Swagger规范,自动生成文档并支持多语言/版本,模块化设计便于扩展,但存在版本兼容性、性... 目录核心功能工作原理模块化设计使用示例注意事项优缺点优点缺点总结适用场景建议总结Springfox 是

C++ 检测文件大小和文件传输的方法示例详解

《C++检测文件大小和文件传输的方法示例详解》文章介绍了在C/C++中获取文件大小的三种方法,推荐使用stat()函数,并详细说明了如何设计一次性发送压缩包的结构体及传输流程,包含CRC校验和自动解... 目录检测文件的大小✅ 方法一:使用 stat() 函数(推荐)✅ 用法示例:✅ 方法二:使用 fsee

Python的端到端测试框架SeleniumBase使用解读

《Python的端到端测试框架SeleniumBase使用解读》:本文主要介绍Python的端到端测试框架SeleniumBase使用,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全... 目录SeleniumBase详细介绍及用法指南什么是 SeleniumBase?SeleniumBase

OpenCV实现实时颜色检测的示例

《OpenCV实现实时颜色检测的示例》本文主要介绍了OpenCV实现实时颜色检测的示例,通过HSV色彩空间转换和色调范围判断实现红黄绿蓝颜色检测,包含视频捕捉、区域标记、颜色分析等功能,具有一定的参考... 目录一、引言二、系统概述三、代码解析1. 导入库2. 颜色识别函数3. 主程序循环四、HSV色彩空间

SpringBoot排查和解决JSON解析错误(400 Bad Request)的方法

《SpringBoot排查和解决JSON解析错误(400BadRequest)的方法》在开发SpringBootRESTfulAPI时,客户端与服务端的数据交互通常使用JSON格式,然而,JSON... 目录问题背景1. 问题描述2. 错误分析解决方案1. 手动重新输入jsON2. 使用工具清理JSON3.

如何解决Druid线程池Cause:java.sql.SQLRecoverableException:IO错误:Socket read timed out的问题

《如何解决Druid线程池Cause:java.sql.SQLRecoverableException:IO错误:Socketreadtimedout的问题》:本文主要介绍解决Druid线程... 目录异常信息触发场景找到版本发布更新的说明从版本更新信息可以看到该默认逻辑已经去除总结异常信息触发场景复

Python struct.unpack() 用法及常见错误详解

《Pythonstruct.unpack()用法及常见错误详解》struct.unpack()是Python中用于将二进制数据(字节序列)解析为Python数据类型的函数,通常与struct.pa... 目录一、函数语法二、格式字符串详解三、使用示例示例 1:解析整数和浮点数示例 2:解析字符串示例 3:解

CentOS 7 YUM源配置错误的解决方法

《CentOS7YUM源配置错误的解决方法》在使用虚拟机安装CentOS7系统时,我们可能会遇到YUM源配置错误的问题,导致无法正常下载软件包,为了解决这个问题,我们可以替换YUM源... 目录一、备份原有的 YUM 源配置文件二、选择并配置新的 YUM 源三、清理旧的缓存并重建新的缓存四、验证 YUM 源

python3 pip终端出现错误解决的方法详解

《python3pip终端出现错误解决的方法详解》这篇文章主要为大家详细介绍了python3pip如果在终端出现错误该如何解决,文中的示例方法讲解详细,感兴趣的小伙伴可以跟随小编一起了解一下... 目录前言一、查看是否已安装pip二、查看是否添加至环境变量1.查看环境变量是http://www.cppcns

C++ HTTP框架推荐(特点及优势)

《C++HTTP框架推荐(特点及优势)》:本文主要介绍C++HTTP框架推荐的相关资料,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录1. Crow2. Drogon3. Pistache4. cpp-httplib5. Beast (Boos