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

相关文章

Python实现无痛修改第三方库源码的方法详解

《Python实现无痛修改第三方库源码的方法详解》很多时候,我们下载的第三方库是不会有需求不满足的情况,但也有极少的情况,第三方库没有兼顾到需求,本文将介绍几个修改源码的操作,大家可以根据需求进行选择... 目录需求不符合模拟示例 1. 修改源文件2. 继承修改3. 猴子补丁4. 追踪局部变量需求不符合很

Python Dash框架在数据可视化仪表板中的应用与实践记录

《PythonDash框架在数据可视化仪表板中的应用与实践记录》Python的PlotlyDash库提供了一种简便且强大的方式来构建和展示互动式数据仪表板,本篇文章将深入探讨如何使用Dash设计一... 目录python Dash框架在数据可视化仪表板中的应用与实践1. 什么是Plotly Dash?1.1

基于Flask框架添加多个AI模型的API并进行交互

《基于Flask框架添加多个AI模型的API并进行交互》:本文主要介绍如何基于Flask框架开发AI模型API管理系统,允许用户添加、删除不同AI模型的API密钥,感兴趣的可以了解下... 目录1. 概述2. 后端代码说明2.1 依赖库导入2.2 应用初始化2.3 API 存储字典2.4 路由函数2.5 应

Python GUI框架中的PyQt详解

《PythonGUI框架中的PyQt详解》PyQt是Python语言中最强大且广泛应用的GUI框架之一,基于Qt库的Python绑定实现,本文将深入解析PyQt的核心模块,并通过代码示例展示其应用场... 目录一、PyQt核心模块概览二、核心模块详解与示例1. QtCore - 核心基础模块2. QtWid

Python中ModuleNotFoundError: No module named ‘timm’的错误解决

《Python中ModuleNotFoundError:Nomodulenamed‘timm’的错误解决》本文主要介绍了Python中ModuleNotFoundError:Nomodulen... 目录一、引言二、错误原因分析三、解决办法1.安装timm模块2. 检查python环境3. 解决安装路径问题

如何解决mysql出现Incorrect string value for column ‘表项‘ at row 1错误问题

《如何解决mysql出现Incorrectstringvalueforcolumn‘表项‘atrow1错误问题》:本文主要介绍如何解决mysql出现Incorrectstringv... 目录mysql出现Incorrect string value for column ‘表项‘ at row 1错误报错

最新Spring Security实战教程之Spring Security安全框架指南

《最新SpringSecurity实战教程之SpringSecurity安全框架指南》SpringSecurity是Spring生态系统中的核心组件,提供认证、授权和防护机制,以保护应用免受各种安... 目录前言什么是Spring Security?同类框架对比Spring Security典型应用场景传统

Spring 中 BeanFactoryPostProcessor 的作用和示例源码分析

《Spring中BeanFactoryPostProcessor的作用和示例源码分析》Spring的BeanFactoryPostProcessor是容器初始化的扩展接口,允许在Bean实例化前... 目录一、概览1. 核心定位2. 核心功能详解3. 关键特性二、Spring 内置的 BeanFactory

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

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

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

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