## In which I complain about factor analysis

Factor analysis, like almost all forms of data analysis, is just matrix factorization. Let be a matrix containing observations of variables (or indicators). We suppose that the variables in can be written as linear combinations of unobserved (or latent) factors, … Read more

## solitaiRe encryption in R

Out of sheer boredom, I decided to try my hand at implementing the Solitaire encryption algorithm in R. Solitaire was developed by Bruce Schneier for Neil Stephenson’s Crytonomicon, and is designed to be implemented using only a deck of … Read more

## Multiple hypothetical comparisons

You don’t actually have to do multiple comparisons to have a multiple comparisons problem — comparisons that you might hypothetically have done maybe if the data had been different perhaps will do it. I’ll show you.

Suppose that you’re conducting … Read more

## Experimenting with IGT factorization

The Iowa Gambling Task has always been one of my favorite tasks, if only because it’s so much fun to analyze. In the standard version of the task, subjects select a card on each trial from one of four decks … Read more

## MSMVSampEn: Multiscale Multivariate Sample Entropy in R

A while back, a friend of mine asked me to help out in a longitudinal project trying to predict cognitive decline in (otherwise healthy) older adults (Mulligan, Areshenkoff, & Smart, 2015). One of the measures we used was resting state … Read more

## Bayes Factors and Stopping Rules

One can argue the choice of when to stop collecting data should be irrelevant to our choice of parameter estimates, since all information should be contained in the likelihood function. This principle underlies some criticisms of standard hypothesis testing, where … Read more

## TensorGrasp

One major research program in our lab aims to understand how the motor system makes use of task related and perceptual information when planning and executing movement. For example, a right handed “reach and grasp” action is executed more quickly … Read more

## Misconceptions and useful counterexamples in statistics

This page contains an assortment of useful or informative examples/counterexamples in probability and statistics. I plan to continue updating this page as I come across new examples.

### A Bayes factor which contradicts the posterior

The following is an example of … Read more

## On the importance of plotting; or — Psych. Science will publish anything

Edit (05/11/15): The article has been retracted.

Psychological Science recently published a paper — Sadness Impairs Color Perception1 — which has been causing a bit of a ruckus on the statistics blogosphere. Psych Science already has a bit … Read more

## Quantile models with random effects

More experimenting with the quantile regression model described here. Good regression models are multi-level, so I’ve been playing around at validating a quantile model with random effects.

### The data

In the validation of the simple quantile regression model, we … Read more