Are first babies more likely to be light?

November 30, 2011
By
Are first babies more likely to be light?

Way back in February I analyzed data from the National Survey of Family Growth (NSFG) and answered the question "Are first babies more likely to be late?"  Now I am getting back to that data to look at the related question, "Are first babies more ...

Read more »

Example 9.16: Small multiples

November 29, 2011
By
Example 9.16: Small multiples

Small multiples are one of the great ideas of graphics visionary Edward Tufte (e.g., in Envisioning Information). Briefly, the idea is that if many variations on a theme are presented, differences quickly become apparent. Today we offer general guida...

Read more »

Bad logic, but good statistics

November 28, 2011
By

Ad hominem arguments are bad logic, but good (Bayesian) statistics. A statement isn’t necessarily false because it comes from an unreliable source, though it is more likely to be false. Some people are much more likely to know what they’re talking about than others, depending on context. You’re more likely to get good medical advice [...]

Read more »

Estimating the age of renal tumors

November 28, 2011
By
Estimating the age of renal tumors

UPDATE April 2, 2012: I wrote a paper describing this work and submitted it to arXiv. You can download it here. Abstract: We present a Bayesian method for estimating the age of a renal tumor given its size. We use a model of tumor growth based on...

Read more »

Working with isTRUE

November 25, 2011
By
Working with isTRUE

This week I was running computations transforming some input files into output files. The problem was that it was a repeated process. If new input files were generated or old ones were updated I needed to calculate new output files. The transformation ...

Read more »

Lexical scope and function closures in R

November 23, 2011
By
Lexical scope and function closures in R

Introduction R is different to many “easy to use” statistical software packages – it expects to be given commands at the R command prompt. This can be intimidating for new users, but is at the heart of its power. Most powerful software tools have an underlying scripting language. This is because scriptable tools are typically [...]

Read more »

Statistics comic

November 23, 2011
By
Statistics comic

Saturday Morning Breakfast Cereal has a rather accurate representation of statisticians:

Read more »

Misleading Statistics: Too much risk without a financial adviser?

November 22, 2011
By
Misleading Statistics: Too much risk without a financial adviser?

This popular article references a report by financial consulting firms that makes a fairly convincing argument (even though they mostly neglect inferential statistics, and some parts of their argument are misleading, or otherwise not convincing) that 401(k) participants who accept "help" from financial experts take less risk and have better returns than those who do [...]

Read more »

Example 9.15: Bar chart with error bars ("Dynamite plot")

November 22, 2011
By
Example 9.15: Bar chart with error bars ("Dynamite plot")

The "dynamite plot", a bar chart plotting the a mean with a error bar, is one of the most reviled types of image among statisticians. Reasons to dislike them are numerous, and are nicely summarized here. (Edward Tufte also suggests they be avoided.) ...

Read more »

Correlation and R-Squared

November 22, 2011
By
Correlation and R-Squared

What is R2? In the context of predictive models (usually linear regression), where y is the true outcome, and f is the model’s prediction, the definition that I see most often is: In words, R2 is a measure of how much of the variance in y is explained by the model, f. Under “general conditions”, [...] Related posts: The Simpler Derivation of Logistic Regression Living in A Lognormal World “I…

Read more »

Comment on "Racism and Meritocracy"

November 21, 2011
By
Comment on "Racism and Meritocracy"

WARNING:  This article is on a topic that elicits emotional reactions.  I welcome comments, but please make them thoughtful and keep them civil. Eric Ries wrote an article for TechCrunch last week, talking about racism and meritocracy a...

Read more »

Career advice regarding tools

November 21, 2011
By
Career advice regarding tools

A few weeks ago, J. D. Long gave some interesting advice in a Google+ discussion. He starts out Lunch today with an analyst 13 years my junior made me think about things I wish I had known about the technical analytical profession when I was 25. Here’s some things that popped into my head: The [...]

Read more »

randu dataset, part 2

November 19, 2011
By
randu dataset, part 2

In my last post I have plotted randu dataset to show that all its points lie on 15 parallel planes. But I was not fully satified with the solution and decided to show this numerically.It can be done in four steps:identifying four points lying...

Read more »

Plotting randu dataset

November 19, 2011
By
Plotting randu dataset

Recently I have stumbled on help description of randu data from datasets package. It contains pseudorandom numbers that are flawed. Help says that "In three dimensional displays it is evident that the triples fall on 15 paralle...

Read more »

Why balloons are better than balls (in urn schemes)

November 18, 2011
By

The below is taken from a work in progress: The Polya urn is a heuristic associated with Dirichlet process mixtures. We present the scheme in a modified format, using balloons instead of balls, where the probability of drawing a balloon from the urn is proportional to its volume. Balloons are preferred because their volume may [...]

Read more »

BioMart Gene ID Converter

November 18, 2011
By
BioMart Gene ID Converter

BioMart recently got a facelift. I'm not sure if this was always available in the old BioMart, but there's now a link to a gene ID converter that worked pretty well for me for converting S. cerevisiae gene IDs to standard gene names. It looks like the ...

Read more »

GEO2R: Web App to Analyze Gene Expression in GEO Datasets Using R

November 17, 2011
By
GEO2R: Web App to Analyze Gene Expression in GEO Datasets Using R

Gene Expression Omnibus is NCBI's repository for publicly available gene expression data with thousands of datasets having over 600,000 samples with array or sequencing data. You can download data from GEO using FTP, or download and load the data direc...

Read more »

Bayesian vs. Frequentist Intervals: Which are more natural to scientists?

November 17, 2011
By

I don't know, of course, because the evidence at hand is based on my experience. But, I'll leave the reader to consider whether these observations generalize. Proponents of Bayesian statistical inference argue that Bayesian credible intervals are more intuitive than the frequentist confidence intervals, because the Bayesian inference is a probability statement about a parameter. [...]

Read more »

Review of “Parallel R” by McCallum and Weston

November 16, 2011
By
Review of “Parallel R” by McCallum and Weston

Introduction This is the first book review I’ve done on this blog, and I don’t intend to make it a regular feature, but I ordered a copy of “Parallel R” a few days ago. It arrived today, and I’m quite disappointed with it, so I wanted to write a quick review to provide some additional [...]

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 [now] well-known [to me] sports result provided in a 2000 Nature paper by Sandra Savaglio and Vincenzo […]

Read more »

Using PROC CANCORR to solve large scale PLS problem

November 16, 2011
By
Using PROC CANCORR to solve large scale PLS problem

Partial Least Square (PLS) is a powerful tool for discriminant analysis with large number of predictors [1].PLS extracts latent factors that maximize the covariance between independent variables and dependent variables. This process is equivalent to Ge...

Read more »

Weather forecast and good development practices

November 16, 2011
By
Weather forecast and good development practices

Inspired by this tutorial, I thought that it would be nice to have the possibility to have access to weather forecast directly from the R command line, for example for a personalized start-up message such as the one below:Weather summary for Trieste, F...

Read more »

Landscape figures in Sweave

November 15, 2011
By

This post is a quick follow up from my initial article on Sweave to add a note on how to get a plot in landscape orientation to fill the whole page, plus a little example of using BibTex.Just to clarify  my … Continue reading →

Read more »


Subscribe

Email:

  Subscribe