Professional Documents
Culture Documents
Wes McKinney1
1 AQR
PyCon 2010
1 / 17
Outline
Background
My perspective
Common nancial research tools
Pythons status
pandas library
Motivation
Interactive Demo
Related projects
PyCon 2010
2 / 17
PyCon 2010
3 / 17
PyCon 2010
4 / 17
Data manipulation
Combine and transform raw data series
Handle missing observations, time series of dierent frequencies, other
sources of heterogeneity
Statistical estimation
Econometric analysis: linear regression and other more advanced
models
Measuring and controlling risk: forecasting asset volatility
PyCon 2010
5 / 17
700
600
500
400
300
200
100
2005
2006
2007
2008
2009
PyCon 2010
6 / 17
Prices on 12/31/2009
700
600
500
400
300
200
100
0
AAP
GOO
MSF
YHO
PyCon 2010
7 / 17
PyCon 2010
8 / 17
PyCon 2010
9 / 17
Many tools assume clean data sets; most often not the case
Chicken and egg problem: less nancial community presence
Few tools specically for time series and cross-sectional data
My goal: help Python become a more compelling choice for nance
work and other statistical applications
PyCon 2010
10 / 17
Many tools assume clean data sets; most often not the case
Chicken and egg problem: less nancial community presence
Few tools specically for time series and cross-sectional data
My goal: help Python become a more compelling choice for nance
work and other statistical applications
PyCon 2010
10 / 17
PyCon 2010
11 / 17
PyCon 2010
11 / 17
PyCon 2010
12 / 17
Demo
PyCon 2010
13 / 17
scikits.statsmodels
scikits.timeseries
tabular
la (larry: labeled array object)
PyCon 2010
14 / 17
PyCon 2010
15 / 17
Questions / Thanks
Contact: wesmckinn@gmail.com
Website: pandas.sourceforge.net
Download from Python package index
AQR website: www.aqr.com
PyCon 2010
16 / 17
AQR Disclaimer
The views and opinions expressed herein are those of the author and do not necessarily reect the
views of AQR Capital Management, LLC its aliates, or its employees. The information set forth
herein has been obtained or derived from sources believed by author to be reliable. However, the
author does not make any representation or warranty, express or implied, as to the informations
accuracy or completeness, nor does the author recommend that the attached information serve
as the basis of any investment decision. This document has been provided to you solely for
information purposes and does not constitute an oer or solicitation of an oer, or any advice
or recommendation, to purchase any securities or other nancial instruments, and may not be
construed as such. This document is intended exclusively for the use of the person to whom it has
been delivered by the author, and it is not to be reproduced or redistributed to any other person.
PyCon 2010
17 / 17