Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Python for Finance
  • Toc
  • feedback
Python for Finance

Python for Finance

By : Yuxing Yan
3.9 (22)
close
Python for Finance

Python for Finance

3.9 (22)
By: Yuxing Yan

Overview of this book

A hands-on guide with easy-to-follow examples to help you learn about option theory, quantitative finance, financial modeling, and time series using Python. Python for Finance is perfect for graduate students, practitioners, and application developers who wish to learn how to utilize Python to handle their financial needs. Basic knowledge of Python will be helpful but knowledge of programming is necessary.
Table of Contents (14 chapters)
close
13
Index

Installing Pandas and statsmodels

In the previous chapter, we used ActivePython. Although this package includes Pandas using PyPm to install, statsmodel is unavailable in PyPm. Fortunately, we could use Anaconda, introduced in Chapter 4, 13 Lines of Python Code to Price a Call Option. The major reason that we recommend Anaconda is that the package includes NumPy, SciPy, matplotlib, Pandas, and statsmodels. The second reason is its wonderful editor called Spyder.

To install Anaconda, perform the following two steps:

  1. Go to http://continuum.io/downloads.
  2. According to your machine, choose an appropriate package, such as Anaconda-1.8.0-Windows-x86.exe for a Windows version.

There are several ways to launch Python. After clicking on Start | All Programs, search Anaconda; we will see the following hierarchy:

Installing Pandas and statsmodels

In the following three sections, we show different ways to launch Python.

Launching Python using the Anaconda command prompt

For launching Python using the Anaconda command prompt, perform the following...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete