Cameras and Lens on 500px

I want to buy a camera, and wonder what equipments are the beautiful pictures on 500px made with.

閱讀全文 »

Signs and Nobel Prize 诺贝尔奖与星座

First I’d like to state that I’m not really a fan of signs(astrology). I just hear people talking about it. This post is done just for fun, do not take it as serious.

This post is originally posted at Wechat in Chinese, and I’m not planning to translate it here. But you can read the images. Still I’ve translated the only import part, that is, do not take seriously, relax, read and forget.

閱讀全文 »

Speedup Python

Python is not known as a very fast language, but you have some options to speed up your programs.

閱讀全文 »

R-GZ

上周末参加了R会议广州会场,干货没有期待的那么多,尤其是感兴趣的量化方面。有感于一些内容,这里也分享一下自己对量化的工具集的看法。

閱讀全文 »

Popular R Packages and Some Stats - from Jan. 2015 to May. 2015

I’m switching to R recently, and one of the challenges is to get the right package from the mass world. Rstudio provides CRAN download logs from 2012-10-01, which contain all hits to http://cran.rstudio.com/ related to packages.

閱讀全文 »

ADF Test and Half-Life with Python

I am reading Chen’s Algorithmic Trading and plan to rewrite the strategies in Python. This is the first post of this series. I’ll put the core code here. For the result and comparison with the original Matlab code please refer to my ipython notebook here.

閱讀全文 »

Power Up Algorithmic Trading with Predictive Modeling -- A Demo

Algorithmic Trading with Python

I found a Python package for quant trading called zipline, which is currently used in production as the backtesting engine powering Quantopian.

閱讀全文 »

Speedup Python with Cython, compared with Python C API and Julia and Dlang

Recently I read a wonderful series of posts about using Python C API to speedup python scripts. But I’m not a C fun and I used Cython to ease the work. So I wonder how much could I get using Cython instead of Python C API?

閱讀全文 »

Convert Coutinuous Variable to Categorical

Suppose x is a continuous variable, we want to convert it to categorical. For example, we want to assign 1 to top 30%, 2 to middle 40%, and 3 to last 30%.

閱讀全文 »

Renv: environement/version management for R

About Renv

Renv lets you be able to install multiple R versions and choose which to use globally or per-project.

閱讀全文 »