Posts Tagged ‘ R ’

Robert Brown and Pollen Particles

March 15, 2010
By
Robert Brown and Pollen Particles

In 1827, the botanist Robert Brown was studying pollen particles as they floated in water. When viewed through a microscope, he observed that the particles seemed to move around as if the were alive. Although he couldn’t have known at the time, the seemingly random motion was caused by the collision of water molecules

Read more »

Visualizing droughts with R

March 15, 2010
By
Visualizing droughts with R

Physicist and weather scientist Joe Wheatley used R to design and create a useful visual representation of how drought affects a region over long time-scales. Instead of charting absolute rainfall (or lack thereof), he instead charts the Standardized Precipitation Index (SPI), where extreme values (above 2 or below -2) indicate extreme wetness or dryness compared to the usual precipitation...

Read more »

Weighting model fit with ctree in party

March 15, 2010
By
Weighting model fit with ctree in party

Conditional inference trees (ctree) in package party allows weighting which is useful when one classification outcome is more important than another. Useful examples are not difficult to imagine: in a marketing direct mailing, a false positive (non-res...

Read more »

t-walk on the banana side

March 14, 2010
By
t-walk on the banana side

Following my remarks on the t-walk algorithm in the recent A General Purpose Sampling Algorithm for Continuous Distributions, published by Christen and Fox in Bayesian Analysis that acts like a general purpose MCMC algorithm, Darren Wraith tested it on the generic (10 dimension) banana target we used in the cosmology paper. Here is an output

Read more »

\pi day!

March 14, 2010
By
\pi day!

It’s π-day today so we gonna have a little fun today with Buffon’s needle and of course R. A well known approximation to the value of $latex \pi$ is the experiment tha Buffon performed using a needle of length,$latex l$. What I do in the next is only to copy from the following file the function

Read more »

Google spreadsheets + google forms + R = Easily collecting and importing data for analysis

March 13, 2010
By

Someone on the R mailing list (link) asked: how can you easily (daily) collect data from many people into a spreadsheet and then analyse it using R. The answer people gave to it where on various ways of using excel.  But excel files (at least for now),  are not “on the cloud”.  A better answer might be to create a...

Read more »

Rosetta language popularity

March 13, 2010
By
Rosetta language popularity

Rosetta Code is a community wiki which presents how to solve various programming tasks by different programming languages. Thus, it serves as a dictionary between programming languages, but also as cookbook of programming recipes for a specific languag...

Read more »

Wrong puzzle of the week [w10]?!

March 12, 2010
By
Wrong puzzle of the week [w10]?!

In the weekend supplement to Le Monde, the solution of the rectangle puzzle is given as 32 black squares. I am thus… puzzled!, since my R program there provides a 34 square solution. Am I missing a hidden rectangle in the above?! Given that the solution in Le Monde is not based on a precise

Read more »

Happy Anniversary NYC R Meetup

March 12, 2010
By
Happy Anniversary NYC R Meetup

Today is the one year anniversary of the NYC R Statistical Meetup. Starting as a small group meeting in a crowded conference room, Josh Reich established the meetup as the premiere gathering of data geeks in the tri-state area. Over the past year we have had 10 meetups, and two more upcoming on the

Read more »

Variations in the literal representation of Pi

March 11, 2010
By
Variations in the literal representation of Pi

The numbers system I am developing attempts to match numeric literals contained in a file against a database of interesting numbers. One of the things I did to quickly build a reasonably sized database of reliable values was to extract numeric literals from a few well known programs that I thought I could trust. R

Read more »