Cluster Silhouettes

March 4, 2011
By
Cluster Silhouettes

The book is done! All 822 pages of the third edition of Data Mining Techniques for Marketing, Sales, and Customer Relationship Management will be hitting bookstore shelves later this month or you can order it now. To celebrate, I am returning to the bl...

Read more »

SMC^2 algorithm for state-space models

February 28, 2011
By
SMC^2 algorithm for state-space models

Hi again, With Nicolas Chopin and Omiros Papaspiliopoulos, we’ve just submitted a paper called SMC^2: a sequential Monte Carlo algorithm with particle Markov chain Monte Carlo updates. You can read the article online on arXiv here. This algorithm allows to estimate the parameters in a state space models, without any assumptions of linearity or gaussianity. [...]

Read more »

Collider Example

February 24, 2011
By
Collider Example

library (MASS) covar<-mvrnorm(250, c(0, 0), matrix(c(1, 0.00, 0.00, 1), 2, 2)) mydata<-data.frame(covar) names(mydata)<-c("sat", "mot") mydata$admin<- mydata$sat + mydata$mot mydata$admin2<- ifelse (mydata$admin >=quantile(mydata$admin, .85), "pass", "fail")   library(ggplot2) qplot(sat,mot, data = mydata, color = admin2) Created by Pretty R at inside-R.org

Read more »

The real data mining battle: Watson vs Google

February 17, 2011
By
The real data mining battle: Watson vs Google

Again, IBM showed us our limits. This time with the help of some fine data mining. But is Watson the only reasonable opponent of the human brain out there? How about Google? This article shows a spotlight of a battle between Watson and [...]

Read more »

Computing the vector norm

February 15, 2011
By

Update: a fast and stable norm was added to scipy.linalg in August 2011 and will be available in scipy 0.10 Last week I discussed with Gael how we should compute the euclidean norm of a vector a using SciPy. Two approaches suggest themselves, either ca...

Read more »

Smells like hacker spirit

February 11, 2011
By
Smells like hacker spirit

I was last weekend in FOSDEM presenting scikits.learn (here are the slides I used at the Data Analytics Devroom). Kudos to Olivier Grisel and all the people who organized such a fun and authentic meeting!

Read more »

How to make SPSS produce all tables in APA format automatically!

February 3, 2011
By
How to make SPSS produce all tables in APA format automatically!

Formatting a graph that was exported from SPSS to Microsoft Word can be an absolute pain. Since neither program is known for it's simplicity or "user-friendliness", the interaction between the two can be predictably tedious and frustrating. The process of converting a standard SPSS table to APA format might be bearable, when you are talking about a single table, but can become overwhelming when you have an entire manuscript worth…

Read more »

How to make SPSS produce all tables in APA format automatically!

February 3, 2011
By
How to make SPSS produce all tables in APA format automatically!

Formatting a graph that was exported from SPSS to Microsoft Word can be an absolute pain. Since neither program is known "user-friendliness", the interaction between the two can be predictably tedious and frustrating. The process of converting a standa...

Read more »

Plotting images on a grid using R or Python

February 2, 2011
By
Plotting images on a grid using R or Python

A thread depicting how to insert a png image in a plot, thanks to Stackoverflow: plotting-images-on-a-grid. A very basic tip, still useful to someone.

Read more »

Stirling’s formula for R

February 1, 2011
By
Stirling’s formula for R

I am sure it is out there but for my record keeping purposes and for anyone interested here is a quick function to find Stirling’s approximation of all possible permutations Stirling<- function (n)((2*pi*n)^.5)*(n/exp(1))^n Created by Pretty R at inside-R.org

Read more »

Bayesian Computation with SAS (2)

February 1, 2011
By
Bayesian Computation with SAS (2)

In Chapter 2 of the book "Bayesian Computation with R" by Jim Albert, the philosoph of Bayesian statistics is introduced using an example where a parameter regarding proportion of heavy sleeping college students, i.e. those have more than 8 hours sleep...

Read more »

Pseudo R Square Values in R

January 26, 2011
By
Pseudo R Square Values in R

R does not give a Pseudo R square value and neither does Mplus. As such, here is a real quick R function to calculate McFadden’s and Adjusted McFadden’s Pseudo R square value:   #Pesudo R square #x = full model … Continue reading →

Read more »

R: An introduction for psychologists

January 13, 2011
By
R: An introduction for psychologists

Here are the slides from the Introduction to R session Danny Kaye and I ran at the BPS Mathematics, Statistics & Computing section CPS Workshop (13 December 2010, Nottingham Trent University).

Read more »

Bayesian Computation with SAS (1).

January 4, 2011
By
Bayesian Computation with SAS (1).

The book "Bayesian Computation with R" by Jim Albert is an easy to read entry level book on applied Bayesian Statistics. While the book was written for R users, it is not difficult to translate the languages between R and SAS and I believe it is a good...

Read more »

New examples in scikits.learn 0.6

December 31, 2010
By

Latest release of scikits.learn comes with an awesome collection of examples. These are some of my favorites: Faces recognition `This example`_ by Olivier Grisel, downloads a 58MB faces dataset from Labeled Faces in the Wild, and is able to perform PC...

Read more »

R Journal 2/2

December 31, 2010
By
R Journal 2/2

The last gift of 2010: R Journal 2/2 is out! Get it from here.

Read more »

Kendall Rank Coefficient

December 7, 2010
By
Kendall Rank Coefficient

The correlation coefficient is a measurement of correlation between two random variables. While its computation is straightforward, it is not readily applicable to non-parametric statistics. read more

Read more »

Weighted samples for SVMs

November 29, 2010
By
Weighted samples for SVMs

Based on the work of libsvm-dense by Ming-Wei Chang, Hsuan-Tien Lin, Ming-Hen Tsai, Chia-Hua Ho and Hsiang-Fu Yu I patched the libsvm distribution shipped with scikits.learn to allow setting weights for individual instances. The motivation behind this ...

Read more »

Hierarchical Cluster Analysis

November 25, 2010
By
Hierarchical Cluster Analysis

With the distance matrix found in previous tutorial, we can use various techniques of cluster analysis for relationship discovery. For example, in the data set mtcars, we can run the distance matrix with hclust, and plot a dendrogram that displays a ...

Read more »

Coming soon …

November 24, 2010
By

`|scikits.learn 0.6|`_ Highlights for this release: * New stochastic gradient descent module by Peter Prettenhofer * Improved svm module: memory efficiency, automatic class weights. * Wrap for liblinear's Multi-class SVC (option multi_class in LinearSV...

Read more »

memory efficient bindigs for libsvm

November 19, 2010
By

scikits.learn.svm now uses LibSVM-dense instead of LibSVM for some support vector machine related algorithms when input is a dense matrix. As a result most of the copies associated with argument passing are avoided, giving 50% less memory footprint and...

Read more »

Additional Functions for the MatchIt Package – Part 2

November 13, 2010
By
Additional Functions for the MatchIt Package – Part 2

I have reworked the graphing and summarizing functions I wrote for the matchit package to be cleaner and to provide more information. Currently I have functions for a sorted by size summary table of the post matching mean differences: meandifftable<- … Continue reading →

Read more »

A R wrapper for Google Prediction API

November 8, 2010
By
A R wrapper for Google Prediction API

Since I got the chance to access to both Google Storage for Developers and Google Prediction API (more details here and here), I decided to create a simple wrapper (just 4 basic functions until now) to be capable to play with the Google Prediction API ...

Read more »


Subscribe

Email:

  Subscribe