Things One Should Know before Having a Pet Turtle

I got my one-month-old red-eared turtle from PetSmart yesterday and learned a lot from the staff there. Keeping a pet turtle actually needs more work and preparation than I initially expected. Here is a summary of the things I learned and I believe everyone should know when considering having a …

more ...

Ordinary Least Squares Regression in Python from Scratch

This article introduces how to calculate the coefficients for an Ordinary Least Squares regression in Python using only the NumPy package. NumPy is the fundamental package for scientific computing with Python. It performs in some way similar to R. First, let us import the NumPy package.

# Import NumPy
import numpy …
more ...

How to Install Rpy2 in Windows 10

Rpy2 is a popular Python interface to R. It allows Python users to enjoy the breadth and depth of R packages in Python. Yet, unlike in UNIX-like operating systems, it is not straightforward to install and set up rpy2 in Windows. This article shows a simple way to install the …

more ...