# Posts

### The squared error has friends, too!

I was invited to the SFU/UBC Joint Seminar in Spring 2019 where I gave this talk. ## Warning: package 'ggplot2' was built under …

### Factor Analysis

## Here's a little tutorial on how to use the factanal function for Factor Analysis. ## Let's make a data frame using actual …

### Contour Plots

This tutorial introduces contour plots, and how to plot them in ggplot2. What is a contour plot? Suppose you have a map of a …

### Mixture distributions

This tutorial introduces the concept of a mixture distribution. We’ll look at a basic example first, using intuition, and then describe …

### BAIT 509 Class Meeting 05

Outline Classification and Regression Trees Motivation Some problems (or at least potential problems) with the local methods …

### BAIT 509 Class Meeting 07

Motivation: why ensembles? Because a classification or regression tree alone tends to be a poor competitor against other machine …

### BAIT 509 Class Meeting 09

Overview Maximal Margin Classifier, and hyperplanes Support Vector Classifiers (SVC) Support Vector Machines (SVM) Extensions to …

### Collaboration with Version Control: Git and GitHub

Does this happen to you? What about bouncing files back and forth amongst collaborators through email? Or even keeping track of your …

### DSCI 562 Lab 4 Tutorial: GAM

Generalized Additive Models To fit a GAM in R, we could use: the function gam in the mgcv package, or the function gam in the gam …

### DSCI 563 Lab1 Tutorial: k-means

This tutorial discusses the implementation of $$k$$-means (and variants) in R. Let’s use a simulated dataset. Throughout, we’ll take …