首页 > > 详细

代写CQF Exam Three Machine Learning代做Python语言

项目预算:   开发周期:  发布时间:   要求地区:

CQF Exam Three

Machine Learning

June 2024 Cohort

Instructions: The submitted report must present work and outputs clearly separated by Question. Submit ONLY ONE zip file named LASTNAME.zip that includes pdf file, code, html, data and any other supporting or working files. Python notebook with auxiliary output (data, plots) is not an analytical report: such submission will receive a deduction.

Please do not discuss this assignment in groups or messengers. Raise a support ticket for your queries. Only clarifying questions are allowed.

Introduction: Short-term asset return is a challenging quantity to predict. Efficient markets produce near-Normal daily returns with no significant correlation between rt , rt−1. This exam is a limited exercise in supervised learning. You are expected to explore multiple features or may use a set of features from Table 1 without an expectation of predictive powers. Original and final selected features should be sufficiently large.

Objective

Your objective is to produce a model to predict positive moves (up trend) using machine learning models as specified in the below section. Your proposed solution should be comprehensive with the detailed feature engineering and model architecture.

• Choose one ticker of your interest from the index, equity, ETF, crypto token, or commodity.

• Predict trend only, for a short-term return (example: daily, 6 hours). Limit prediction to binomial classification: the dependent variable is best labeled [0, 1]. Avoid using [-1, 1] as class labels.

• Analysis should be comprehensive with detailed feature engineering, data pre-processing, model building, and evaluation.

Devise your own approach on how to categorise extremely small near-zero returns (drop from training sample, group with positive/negative). The threshold will strongly depend on your ticker. Example: small positive returns below 0.25% can be labelled as negative.

Table 1: Features List

Feature

Formula

Description

O-C, H-L

Open - Close, High - Low

intraday price range

Sign

sign [rt = ln Pt(P)-t 1 ]

sign of return or momentum

Past Returns

rt-1 , rt-2 , . . .

lagged returns

Momentum

Pt - Pt-k

price change over k period

Moving Average

SMAi =  ε0(-1) Pt-i

simple moving average

Exponential MA

EMAi = EM At-1  + α[Pt - EM At-1]

recursive, α = 2/(Nobs + 1)

Number of features to include is a design choice. There is no one recommended set of features for all assets. Length of dataset is another design choice. If predicting short-term return sign (for daily move), then training and testing over up to 5-year period should be sufficient. Making sense of instructions below is part of the task: the tutor will not assist in designing your computational implementation.

Questions

1. What is the cost function of Logistic Regression? Explain in Detail. [20 Marks]

2. What are voting classifiers in ensemble learning? [10 Marks]

3. Follow the 7-steps to model building for your selected ticker, [70 Marks]

(a) produce a model to predict positive moves (up trend) using Support Vector Machine (SVM) model.

(b) tune hyperparameters for the estimator and present the best model.

(c) investigate the prediction quality using area under ROC curve, confusion matrix and classification report.

Note: Choice of kernels and number of hyperparameters to be optimized for the best model are design choices.





软件开发、广告设计客服
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 9951568
© 2021 www.rj363.com
软件定制开发网!