SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
D E N N I S H A R V E Y
1 0 / 1 1 / 2 0 1 6
Computational Investing
using Python
Credits
!  Based on the Georgia Tech Coursera course:
!  https://www.coursera.org/learn/computational-investing
!  Instructor: Tucker Balch
Schools of thought
!  The market is efficient and random
!  You can’t really beat or time it
!  The best solutions are a diversified set of funds
"  Exchange Traded Funds (ETFs)
"  Low fees
"  iShares, BlackRock
"  https://www.ishares.com/us/lp/ishares-vs-vanguard-fees
!  Winning the Loser's Game, 6th edition: Timeless
Strategies for Successful Investing
!  By Charles Ellis
Schools of thought
!  High frequency trading (HFT)
!  Flash Boys: A Wall Street Revolt, by Michael Lewis
!  Renaissance Technologies LLC (Rentec) is an
investment management company dedicated to
producing superior returns for its clients and
employees by adhering to mathematical and
statistical methods.
!  Founded by James Simons, 1982
!  Renaissance's flagship Medallion fund is famed for one of the
best records in investing history, returning more than 35
percent annualized over a 20-year span.
Schools of Thought
!  “Wide diversification is only required when
investors don’t understand what they are doing”
!  Warren Buffett
!  “We believe that according the name ‘Investors’ to
institutions that trade actively is like calling
someone who repeatedly engages in one-night
stands a ‘romantic’.”
!  Warren Buffett
Fees
!  Example: $100K invested for 20 years at 7%
!  Assume “admin” fees of 1.5%
!  Investment grows to $387K at 7%
!  But you get only 5.5%
!  Which grows to $293K
!  Wealth mgr or mutual fund takes $94K or 24%
"  Based on your money; they have no money at risk
!  http://www.nytimes.com/2016/04/07/your-money/new-
rules-for-retirement-accounts-financial-advisers.html
Who’s Right?
!  Possibly both?
!  The diversified, ETF approach is probably good for most
investors
!  Computer driven trading appears to be lucrative for a small
number of investment companies and traders
Capital Assets Pricing Model (CAPM)
!  A model that describes the relationship between risk and
expected return and that is used in the pricing of risky
securities.
!  Investors need to be compensated in two ways: time
value of money and risk. 
ri =  beta * rM + alpha 
Where:
beta is measure of risk relative to the market
!  alpha is residual value
!  Nobel prize in 1990: Markowitz, Miller and Sharpe
Stock Betas
Medallion Fund
NumPy (numpy.org)
!  NumPy is the fundamental package for scientific
computing with Python.
!  It contains among other things:
!  a powerful N-dimensional array object
!  sophisticated (broadcasting) functions
"  How numpy treats arrays with different shapes during arithmetic
operations.
!  useful linear algebra, Fourier transform, and random number
capabilities
Pandas (pandas.pydata.org)
!  Set of labeled array data structures: Series and DataFrame
!  Index objects enabling both simple axis indexing and multi-level /
hierarchical axis indexing
!  An integrated group by engine for aggregating and transforming
data sets
!  Date range generation (date_range) and custom date offsets
enabling the implementation of customized frequencies
!  Input/Output tools: loading tabular data from flat files (CSV,
delimited, Excel 2003), and saving and loading pandas objects from
the fast and efficient PyTables/HDF5 format.
!  Memory-efficient “sparse” versions of the standard data structures
for storing data that (mostly) missing or constant
!  Moving window statistics (rolling mean, rolling standard deviation,
etc.)
!  Static and moving window linear and panel regression
QuantSoftware ToolKit
!  QSToolKit (QSTK) is a Python-based open source
software framework designed to support portfolio
construction and management.
!  http://wiki.quantsoftware.org/index.php?
title=QuantSoftware_ToolKit
Let’s look at some code …
Our test model
!  Identify stocks on the SP500 between 2008-1-1 and
2009-12-31 that drop below $8
!  Buy 100 shares, hold for 5 days, and then sell.
Market Simulator
Historical
Data
Event
Definition
Events &
Orders
Buy/Sell
Market
Simulator
(python)
Holdings
Portfolio
Value
Market
Simulator
(python)
Event
Profiler
(python)
Simulated
Fund
Results
Thank you
!  rdennisharvey@gmail.com
!  @harveyrd

Weitere ähnliche Inhalte

Ähnlich wie Computational Investing: Presentation to SC Python Meetup

What we learned from running a quant crypto hedge fund
What we learned from running a quant crypto hedge fundWhat we learned from running a quant crypto hedge fund
What we learned from running a quant crypto hedge fundYingdan (Mora) Liang
 
Internship presentation
Internship presentationInternship presentation
Internship presentationnikita kapil
 
Big Data, Machine Learning and Capital Markets
Big Data, Machine Learning and Capital MarketsBig Data, Machine Learning and Capital Markets
Big Data, Machine Learning and Capital MarketsPrabhat Vaish
 
Deep Quant Finance brochure.pdf for mba student
Deep Quant Finance brochure.pdf for mba studentDeep Quant Finance brochure.pdf for mba student
Deep Quant Finance brochure.pdf for mba studenter sanjeev jha
 
Price optimization for high-mix, low-volume environments | Using R and Tablea...
Price optimization for high-mix, low-volume environments | Using R and Tablea...Price optimization for high-mix, low-volume environments | Using R and Tablea...
Price optimization for high-mix, low-volume environments | Using R and Tablea...Wil Davis
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...Quantopian
 
Applications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus RealityApplications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus RealityGanes Kesari
 
Market Surveillance
Market SurveillanceMarket Surveillance
Market SurveillanceRaja Das
 
John Thomas 2010
John Thomas 2010John Thomas 2010
John Thomas 2010John Thomas
 
Spark-Zeppelin-ML on HWX
Spark-Zeppelin-ML on HWXSpark-Zeppelin-ML on HWX
Spark-Zeppelin-ML on HWXKirk Haslbeck
 
AbleOverview 20161107
AbleOverview 20161107AbleOverview 20161107
AbleOverview 20161107Steve Krawciw
 
Spark machine learning
Spark machine learningSpark machine learning
Spark machine learningsajet05
 
Financial quantitative strategies using artificial intelligence
Financial quantitative strategies using artificial intelligenceFinancial quantitative strategies using artificial intelligence
Financial quantitative strategies using artificial intelligenceStefan Duprey
 
Digital (Robo) Investment using Exchange Traded Funds
Digital (Robo) Investment using Exchange Traded FundsDigital (Robo) Investment using Exchange Traded Funds
Digital (Robo) Investment using Exchange Traded FundsDrago Indjic
 
Machine learning for factor investing
Machine learning for factor investingMachine learning for factor investing
Machine learning for factor investingQuantUniversity
 

Ähnlich wie Computational Investing: Presentation to SC Python Meetup (20)

What we learned from running a quant crypto hedge fund
What we learned from running a quant crypto hedge fundWhat we learned from running a quant crypto hedge fund
What we learned from running a quant crypto hedge fund
 
Internship presentation
Internship presentationInternship presentation
Internship presentation
 
Big Data, Machine Learning and Capital Markets
Big Data, Machine Learning and Capital MarketsBig Data, Machine Learning and Capital Markets
Big Data, Machine Learning and Capital Markets
 
Deep Quant Finance brochure.pdf for mba student
Deep Quant Finance brochure.pdf for mba studentDeep Quant Finance brochure.pdf for mba student
Deep Quant Finance brochure.pdf for mba student
 
Price optimization for high-mix, low-volume environments | Using R and Tablea...
Price optimization for high-mix, low-volume environments | Using R and Tablea...Price optimization for high-mix, low-volume environments | Using R and Tablea...
Price optimization for high-mix, low-volume environments | Using R and Tablea...
 
Ags AIforTrading
Ags AIforTradingAgs AIforTrading
Ags AIforTrading
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
 
Applications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus RealityApplications of AI in Supply Chain Management: Hype versus Reality
Applications of AI in Supply Chain Management: Hype versus Reality
 
Market Surveillance
Market SurveillanceMarket Surveillance
Market Surveillance
 
John Thomas 2010
John Thomas 2010John Thomas 2010
John Thomas 2010
 
Spark-Zeppelin-ML on HWX
Spark-Zeppelin-ML on HWXSpark-Zeppelin-ML on HWX
Spark-Zeppelin-ML on HWX
 
AbleOverview 20161107
AbleOverview 20161107AbleOverview 20161107
AbleOverview 20161107
 
Machine Learning - Intro
Machine Learning - IntroMachine Learning - Intro
Machine Learning - Intro
 
ACOS_Fund_Mgmt1.0
ACOS_Fund_Mgmt1.0ACOS_Fund_Mgmt1.0
ACOS_Fund_Mgmt1.0
 
Spark machine learning
Spark machine learningSpark machine learning
Spark machine learning
 
Financial quantitative strategies using artificial intelligence
Financial quantitative strategies using artificial intelligenceFinancial quantitative strategies using artificial intelligence
Financial quantitative strategies using artificial intelligence
 
Apex sd1
Apex sd1Apex sd1
Apex sd1
 
030211 econ investing part 2 100m
030211 econ investing part 2 100m030211 econ investing part 2 100m
030211 econ investing part 2 100m
 
Digital (Robo) Investment using Exchange Traded Funds
Digital (Robo) Investment using Exchange Traded FundsDigital (Robo) Investment using Exchange Traded Funds
Digital (Robo) Investment using Exchange Traded Funds
 
Machine learning for factor investing
Machine learning for factor investingMachine learning for factor investing
Machine learning for factor investing
 

Kürzlich hochgeladen

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 

Kürzlich hochgeladen (20)

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 

Computational Investing: Presentation to SC Python Meetup

  • 1. D E N N I S H A R V E Y 1 0 / 1 1 / 2 0 1 6 Computational Investing using Python
  • 2. Credits !  Based on the Georgia Tech Coursera course: !  https://www.coursera.org/learn/computational-investing !  Instructor: Tucker Balch
  • 3. Schools of thought !  The market is efficient and random !  You can’t really beat or time it !  The best solutions are a diversified set of funds "  Exchange Traded Funds (ETFs) "  Low fees "  iShares, BlackRock "  https://www.ishares.com/us/lp/ishares-vs-vanguard-fees !  Winning the Loser's Game, 6th edition: Timeless Strategies for Successful Investing !  By Charles Ellis
  • 4. Schools of thought !  High frequency trading (HFT) !  Flash Boys: A Wall Street Revolt, by Michael Lewis !  Renaissance Technologies LLC (Rentec) is an investment management company dedicated to producing superior returns for its clients and employees by adhering to mathematical and statistical methods. !  Founded by James Simons, 1982 !  Renaissance's flagship Medallion fund is famed for one of the best records in investing history, returning more than 35 percent annualized over a 20-year span.
  • 5. Schools of Thought !  “Wide diversification is only required when investors don’t understand what they are doing” !  Warren Buffett !  “We believe that according the name ‘Investors’ to institutions that trade actively is like calling someone who repeatedly engages in one-night stands a ‘romantic’.” !  Warren Buffett
  • 6. Fees !  Example: $100K invested for 20 years at 7% !  Assume “admin” fees of 1.5% !  Investment grows to $387K at 7% !  But you get only 5.5% !  Which grows to $293K !  Wealth mgr or mutual fund takes $94K or 24% "  Based on your money; they have no money at risk !  http://www.nytimes.com/2016/04/07/your-money/new- rules-for-retirement-accounts-financial-advisers.html
  • 7. Who’s Right? !  Possibly both? !  The diversified, ETF approach is probably good for most investors !  Computer driven trading appears to be lucrative for a small number of investment companies and traders
  • 8. Capital Assets Pricing Model (CAPM) !  A model that describes the relationship between risk and expected return and that is used in the pricing of risky securities. !  Investors need to be compensated in two ways: time value of money and risk.  ri =  beta * rM + alpha  Where: beta is measure of risk relative to the market !  alpha is residual value !  Nobel prize in 1990: Markowitz, Miller and Sharpe
  • 11. NumPy (numpy.org) !  NumPy is the fundamental package for scientific computing with Python. !  It contains among other things: !  a powerful N-dimensional array object !  sophisticated (broadcasting) functions "  How numpy treats arrays with different shapes during arithmetic operations. !  useful linear algebra, Fourier transform, and random number capabilities
  • 12. Pandas (pandas.pydata.org) !  Set of labeled array data structures: Series and DataFrame !  Index objects enabling both simple axis indexing and multi-level / hierarchical axis indexing !  An integrated group by engine for aggregating and transforming data sets !  Date range generation (date_range) and custom date offsets enabling the implementation of customized frequencies !  Input/Output tools: loading tabular data from flat files (CSV, delimited, Excel 2003), and saving and loading pandas objects from the fast and efficient PyTables/HDF5 format. !  Memory-efficient “sparse” versions of the standard data structures for storing data that (mostly) missing or constant !  Moving window statistics (rolling mean, rolling standard deviation, etc.) !  Static and moving window linear and panel regression
  • 13. QuantSoftware ToolKit !  QSToolKit (QSTK) is a Python-based open source software framework designed to support portfolio construction and management. !  http://wiki.quantsoftware.org/index.php? title=QuantSoftware_ToolKit
  • 14. Let’s look at some code …
  • 15. Our test model !  Identify stocks on the SP500 between 2008-1-1 and 2009-12-31 that drop below $8 !  Buy 100 shares, hold for 5 days, and then sell.