全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 python论坛
6575 25
2014-12-15
Python for Econometrics



New material added to the second edition on July 4, 2014




Python is a widely used general purpose programming language, which happens to be well suited to econometrics, data analysis and other more general numeric problems. These notes provide an introduction to Python for a beginning programmer. They may also be useful for an experienced Python programmer interested in using NumPy, SciPy, matplotlib and pandas for numerical and statistical analysis (if this is the case, much of the beginning can be skipped).

Second edition update:

  • Improved Cython and Numba sections
  • Added sections discussing interfacing with C code
  • Added sections to the chapter on running code in Parallel covering IPython's cluster server and joblib
  • Further improvements in the installation based on feedback from the Python Course
  • Updated Anaconda to 1.9
  • Added information about using Spyder as an initial IDE.
  • Added packages for Spyder to the installation instructions.

New in second edition:

  • The preferred installation method is now Continuum Analytics' Anaconda. Anaconda is a complete scientific stack and is available for all major platforms.
  • New chapter on pandas. pandas provides a simple but powerful tool to manage data and perform basic analysis. It also greatly simplifies importing and exporting data.
  • New chapter on advanced selection of elements from an array.
  • Numba provides just-in-time compilation for numeric Python code which often produces large performance gains when pure NumPy solutions are not available (e.g. looping code).
  • Addition to performance section covering line_profiler for profiling code.
  • Dictionary, set and tuple comprehensions.
  • Numerous typos fixed.
  • All code has been verified working against Anaconda 1.7.0.
Contents [hide]

Notes

Introduction to Python for Econometrics, Statistics and Numerical Analysis: Second Edition

Code

Code and Data for Introduction to Python for Econometrics, Statistics and Numerical Analysis
This is the code directly from the notes. It has been directly stripped from the master document, and allows for simple copy-and-paste execution.

Solutions for Introduction to Python for Econometrics, Statistics and Numerical Analysis
These solutions files contain answer to the exercises at the end of the chapters. They are formatted for IPython's Demo module, and instructions for use are located in the docstring.

Add Python to the Windows Registry
This file allows a particular Python installation to become the default by changing registry. It is useful for virtual environments and allows binary installers to be used with any location.

IPython Notebooks

Example: GARCH
Example: Fama-MacBeth Regression

Data

FTSE 1984-2012 (zipped csv)
Fama-French Data (zipped csv)

Video DemonstrationsSetupIPython
  • Core IPython - Key features of the IPython console including syntax highlighting, autocompletion, the command history and cell model.
  • IPython Magics - Magic keywords provide a wide range of features including on-the-fly configuration changes, file system manipulation, running Python programs and timing code.
  • Configuring IPython - Coming Soon. A brief introduction to customizing the IPython environment using configuration files.
IPython Notebook


Category:


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-16 09:29:14
感谢lz的资源!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-16 10:25:17
感谢lz的资源!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-16 10:46:32
xiexiefenxiang
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-16 10:51:04
谢谢楼主
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-16 12:17:47
谢谢分享~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群