Blog

GormAnalysis on Data Science

Quick Guide to Regex in Python

This guide is to help bridge the gap between understanding what a regular expression is and understanding how to use them in Python. If you’re brand new to regular expressions, I highly recommend checking out RegexOne. For this guide, we’ll use...

Quick Guide to Regex in R

This guide is to help bridge the gap between understanding what a regular expression is and understanding how to use them in R. If you’re brand new to regular expressions, I highly recommend checking out RegexOne. Hadley Wickham’s stringr package makes...

Logistic Regression Fundamentals

Logistic regression is a generalized linear model most commonly used for classifying binary data.  It’s output is a continuous range of values between 0 and 1 (commonly representing the probability of some event occurring), and its input can be a multitude...

R – Data.Table Rolling Joins

Rolling joins are commonly used for analyzing data involving time. A simple example – suppose you have a table of product sales and a table of commercials. You might want to associate each product sale with the most recent commercial that aired prior to the...

R – Introduction to Data.Table Joins

The data.table package in R provides fast methods for handling large tables of data with very simplistic syntax. The following is an introduction to the basic join operations available using the data.table package. Suppose you have two data.tables – a table of...

R – Introduction to Factors Tutorial

A factor variable (commonly called a categorical variable outside of R) is a variable that takes on a limited set of values. For example, days of the week {Sunday, Monday, etc.} or the set of colors {Red, Blue, Green} should be a factor. By contrast, a vector of...

A Concrete Example Of What An Actuary Does

When I was in high school, I knew I wanted to pursue a career involving math. I did an internship working for some mechanical engineers at an oil platform consultant company, but I never witnessed my mentors do more than basic geometry or algebra. That’s when I...