1011 search results for "LaTeX"

Predicting Gender

November 28, 2011
By
Predicting Gender

If there are two (can be generalized to n) classes and both follow the same distribution (but with different parameters) it is possible to predict which class an observations comes from. Here I’ll try to predict a sample’s gender based on their height. The distribution of a person’s height is more or less normal. There

Read more »

Deductive imputation with the deducorrect package

November 26, 2011
By
Deductive imputation with the deducorrect package

Missing data hinders statistical analyses. Estimating missing values (imputation) prior to analysis is one way to deal with that. In some cases however, the missings need not be estimated at all, since they can be derived with certainty from other … Continue reading →

Read more »

The ‘swst’ package to print statistical results in Sweave

November 23, 2011
By

When I was making the slides for a lecture on using Sweave to incorporate R and LaTeX I was unpleasantly surprised at how tedious it can be to extract statistical values and print them in proper LaTeX code. For example, consider a … Continue reading →

Read more »

Interactive presentations with deck.js

November 20, 2011
By
Interactive presentations with deck.js

Data analysis is often an iterative and interactive process. However, when I present about this subject, I feel often limited by the presentation software I use. It doesn't matter if I use LaTeX/PDF, PowerPoint or Keynote. In all cases it is either ver...

Read more »

Tikz absolute positioning

November 20, 2011
By

When working with a tikz drawing within LaTeX document we might want to locate an object using an absoute position on the page rather than leaving LaTeX to make the decision for us. The use of nodes and the current.page label in conjunction with some other parameters attached to the tikz drawing will allow us

Read more »

Keep your files in sync for free

November 19, 2011
By
Keep your files in sync for free

It is not uncommon to have two computers at work, four at home and a server out on the wild, wild internet (that's what we have, anyway ... wait, we forgot one in London). How to keep all these files in sync? Here are our file synchronization tips.

Read more »

Power-laws: choose your x and y variables carefully

November 16, 2011
By
Power-laws: choose your x and y variables carefully

This is a follow-up of the post Power of running world records As suggested by Andrew, plotting running world records could benefit from a change of variables. More exactly the use of different variables sheds light on a well-known sports result provided in a 2000 Nature paper by Sandra Savaglio and Vincenzo

Read more »

Lambert’s W function and the generalised logarithm

November 16, 2011
By
Lambert’s W function and the generalised logarithm

Yesterday I ran into an equation that was a sum of an exponential and a linear term: It doesn’t take long to figure out that there is no analytical solution, and so I set out to write some crappy numerical code. After wasting some time with a fixed point iteration that did not really work,

Read more »

Black-Litterman Model

November 15, 2011
By
Black-Litterman Model

The Black-Litterman Model was created by Fisher Black and Robert Litterman in 1992 to resolve shortcomings of traditional Markovitz mean-variance asset allocation model. It addresses following two items: Lack of diversification of portfolios on the mean-variance efficient frontier. Instability of portfolios on the mean-variance efficient frontier: small changes in the input assumptions often lead to

Read more »

Grrr…

November 15, 2011
By
Grrr…

I’ve been working through Gelman et al.’s otherwise excellent Bayesian Data Analysis and it’s going reasonably well. My statistics is a little bit rusty so it’s taken time to work through all of the exercises and really understand what’s going on. But I...

Read more »