Here I explain and comment my first AI-program.
*Hopefully more will come.

Date: 7-February-2018.

Source: I basically followed https://machinelearningmastery.com/machine-learning-in-python-step-by-step/

Requirements: scipy, numpy, matplotlib, pandas, sklearn (in my case included in scikit_learn).

Python: 2.7.11 | 64-bit | (default, Jun 11 2016, 03:41:56) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
scipy: 0.19.0
numpy: 1.13.3
matplotlib: 2.0.0
pandas: 0.20.3
sklearn: 0.19.1