-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathweek6.html
More file actions
191 lines (170 loc) · 8.53 KB
/
week6.html
File metadata and controls
191 lines (170 loc) · 8.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Week 6: Lasso and Ridge Regression in Finance</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">Data Analytics I</a>
</div>
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<div style="height: 80px;"></div>
<main class="container">
<h2>Week 6: Lasso and Ridge Regression for Financial Analysis</h2>
<section>
<h3>Learning Objectives:</h3>
<ul>
<li>Understand overfitting and the need for regularization in finance</li>
<li>Master the fundamentals of Lasso (L1) and Ridge (L2) regularization</li>
<li>Implement regularized regression for financial applications</li>
<li>Optimize model parameters using cross-validation</li>
<li>Interpret and utilize feature selection from Lasso</li>
</ul>
</section>
<section>
<h3>Core Resources:</h3>
<h4>1. Theoretical Foundations</h4>
<ul>
<li><a href="https://www.jstor.org/stable/2346178">Original Ridge Regression Paper - Hoerl & Kennard (1970)</a></li>
<li><a href="https://www.jstor.org/stable/2335738">The Lasso Method - Tibshirani (1996)</a></li>
</ul>
<h4>2. Technical Implementation</h4>
<ul>
<li><a href="https://scikit-learn.org/stable/modules/linear_model.html">Scikit-learn Linear Models Documentation</a></li>
<li><a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html">Lasso Implementation Guide</a></li>
<li><a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Ridge.html">Ridge Implementation Guide</a></li>
<li><a href="https://scikit-learn.org/stable/modules/cross_validation.html">Cross-Validation Methods</a></li>
</ul>
<h4>3. Financial Applications</h4>
<ul>
<li><b>Data Sources and Tools:</b>
<ul>
<li><a href="https://wrds-www.wharton.upenn.edu/">WRDS Platform</a>
<ul>
<li><a href="https://wrds-www.wharton.upenn.edu/pages/support/data-analytics/">Analytics Tools</a></li>
<li><a href="https://wrds-www.wharton.upenn.edu/pages/support/applications/python-programming/">Python Integration</a></li>
</ul>
</li>
<li><a href="https://glassnode.com/">Glassnode</a>
<ul>
<li><a href="https://docs.glassnode.com/">Documentation</a></li>
<li><a href="https://docs.glassnode.com/basic-api/api-guides">Implementation Guides</a></li>
</ul>
</li>
</ul>
</li>
<li><b>Research Papers and Repositories:</b>
<ul>
<li><a href="https://www.sciencedirect.com/science/article/abs/pii/S0304405X19300595">Machine Learning in Asset Pricing - Gu, Kelly, Xiu (2020)</a></li>
<li><a href="https://github.com/mk0417/open-asset-pricing-download">Open Asset Pricing</a></li>
</ul>
</li>
</ul>
</section>
<section>
<h2>Weekly Assignment</h2>
<div class="alert alert-info">
<strong>Due:</strong> End of Week 6
</div>
<h3>Option 1: Predicting Stock Returns with Regularization</h3>
<ol>
<li>Data Preparation
<ul>
<li>Use WRDS to obtain monthly stock returns and firm characteristics</li>
<li>Include standard factors: Size, Book-to-Market, Momentum</li>
<li>Add accounting ratios: ROE, Leverage, Asset Growth</li>
<li>Prepare a panel dataset spanning at least 10 years</li>
</ul>
</li>
<li>Model Implementation
<ul>
<li>Implement both Lasso and Ridge for return prediction</li>
<li>Use expanding window cross-validation (to respect time series nature)</li>
<li>Compare with standard OLS using out-of-sample R²</li>
<li>Document the impact of different λ values</li>
</ul>
</li>
<li>Analysis
<ul>
<li>Which features survive Lasso's variable selection?</li>
<li>How do Ridge coefficients differ from OLS?</li>
<li>Does prediction improve in high volatility periods?</li>
</ul>
</li>
</ol>
<h3>Option 2: Research-Based Application</h3>
<p>Design your own application of regularization in finance. Some suggestions:</p>
<ul>
<li>Risk Factor Selection
<ul>
<li>Start with a large set of potential risk factors</li>
<li>Use Lasso to identify the most important ones</li>
<li>Compare with Fama-French factors</li>
</ul>
</li>
<li>Credit Risk Assessment
<ul>
<li>Predict corporate defaults using accounting ratios</li>
<li>Compare Lasso/Ridge with traditional models</li>
<li>Evaluate prediction accuracy</li>
</ul>
</li>
</ul>
<div class="alert alert-warning">
<strong>Submission Requirements:</strong>
<ul>
<li>Code with clear documentation</li>
<li>Brief report including:
<ul>
<li>Problem motivation and relevance</li>
<li>Methodology and implementation details</li>
<li>Results and interpretation</li>
<li>Challenges encountered and solutions</li>
</ul>
</li>
<li>If choosing Option 2, include references to papers of similar applications</li>
</ul>
</div>
</section>
<section>
<h3>Implementation Tips:</h3>
<div class="alert alert-info">
<strong>Key Considerations:</strong>
<ul>
<li>Scale features before applying regularization</li>
<li>Use TimeSeriesSplit for financial data</li>
<li>Consider the trade-off between bias and variance</li>
<li>Document parameter selection process</li>
<li>Be mindful of look-ahead bias in financial applications</li>
<li>Consider computational efficiency for large datasets</li>
</ul>
</div>
</section>
<div style="text-align: center; margin-top: 20px;">
<a href="week5.html">← Previous Week</a>
|
<a href="week7.html">Next Week →</a>
</div>
<div class="back-to-home">
<a href="index.html">← Back to Home</a>
</div>
</main>
<footer class="container text-center">
<p>© 2024 Cinder Zhang. All rights reserved. Contact us at <a href="mailto:xzhang@walton.uark.edu">xzhang at walton uark</a></p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</body>
</html>