【源码】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

相关文章

SpringBoot项目启动错误:找不到或无法加载主类的几种解决方法

《SpringBoot项目启动错误:找不到或无法加载主类的几种解决方法》本文主要介绍了SpringBoot项目启动错误:找不到或无法加载主类的几种解决方法,具有一定的参考价值,感兴趣的可以了解一下... 目录方法1:更改IDE配置方法2:在Eclipse中清理项目方法3:使用Maven命令行在开发Sprin

Python结合Flask框架构建一个简易的远程控制系统

《Python结合Flask框架构建一个简易的远程控制系统》这篇文章主要为大家详细介绍了如何使用Python与Flask框架构建一个简易的远程控制系统,能够远程执行操作命令(如关机、重启、锁屏等),还... 目录1.概述2.功能使用系统命令执行实时屏幕监控3. BUG修复过程1. Authorization

前端bug调试的方法技巧及常见错误

《前端bug调试的方法技巧及常见错误》:本文主要介绍编程中常见的报错和Bug,以及调试的重要性,调试的基本流程是通过缩小范围来定位问题,并给出了推测法、删除代码法、console调试和debugg... 目录调试基本流程调试方法排查bug的两大技巧如何看控制台报错前端常见错误取值调用报错资源引入错误解析错误

SpringBoot集成图片验证码框架easy-captcha的详细过程

《SpringBoot集成图片验证码框架easy-captcha的详细过程》本文介绍了如何将Easy-Captcha框架集成到SpringBoot项目中,实现图片验证码功能,Easy-Captcha是... 目录SpringBoot集成图片验证码框架easy-captcha一、引言二、依赖三、代码1. Ea

Gin框架中的GET和POST表单处理的实现

《Gin框架中的GET和POST表单处理的实现》Gin框架提供了简单而强大的机制来处理GET和POST表单提交的数据,通过c.Query、c.PostForm、c.Bind和c.Request.For... 目录一、GET表单处理二、POST表单处理1. 使用c.PostForm获取表单字段:2. 绑定到结

部署Vue项目到服务器后404错误的原因及解决方案

《部署Vue项目到服务器后404错误的原因及解决方案》文章介绍了Vue项目部署步骤以及404错误的解决方案,部署步骤包括构建项目、上传文件、配置Web服务器、重启Nginx和访问域名,404错误通常是... 目录一、vue项目部署步骤二、404错误原因及解决方案错误场景原因分析解决方案一、Vue项目部署步骤

Python如何实现PDF隐私信息检测

《Python如何实现PDF隐私信息检测》随着越来越多的个人信息以电子形式存储和传输,确保这些信息的安全至关重要,本文将介绍如何使用Python检测PDF文件中的隐私信息,需要的可以参考下... 目录项目背景技术栈代码解析功能说明运行结php果在当今,数据隐私保护变得尤为重要。随着越来越多的个人信息以电子形

在MySQL执行UPDATE语句时遇到的错误1175的解决方案

《在MySQL执行UPDATE语句时遇到的错误1175的解决方案》MySQL安全更新模式(SafeUpdateMode)限制了UPDATE和DELETE操作,要求使用WHERE子句时必须基于主键或索引... mysql 中遇到的 Error Code: 1175 是由于启用了 安全更新模式(Safe Upd

修改若依框架Token的过期时间问题

《修改若依框架Token的过期时间问题》本文介绍了如何修改若依框架中Token的过期时间,通过修改`application.yml`文件中的配置来实现,默认单位为分钟,希望此经验对大家有所帮助,也欢迎... 目录修改若依框架Token的过期时间修改Token的过期时间关闭Token的过期时js间总结修改若依

SpringBoot中的404错误:原因、影响及解决策略

《SpringBoot中的404错误:原因、影响及解决策略》本文详细介绍了SpringBoot中404错误的出现原因、影响以及处理策略,404错误常见于URL路径错误、控制器配置问题、静态资源配置错误... 目录Spring Boot中的404错误:原因、影响及处理策略404错误的出现原因1. URL路径错