I recently read an article in the December issue of Significance titled, “Does Christmas really come earlier every year?” by Nathan Cunningham of the University College of Dublin. His premise was that, by using cluster analysis of Google Trends data, we can see how people have begun thinking about the holidays earlier and earlier each year. It’s a good read: http://www.statslife.org.uk/significance/1892. I should note that Nathan graciously answered my emails asking for clarification and saw real value in this technique for emergency management work.
Wednesday, December 24, 2014
Sunday, March 16, 2014
At the end of calculating an Analysis of Variance (ANOVA), you have an F-statistic. To get the p-value of the F-Statistic, you can use R or the TI-84:
For example, in an ANOVA with treatment degrees of freedom = 1 and error degrees of freedom = 10, you calculate the F-Statistic as 2.81 and want to know its p-value (that is, what is the probability of observing this F-Statistic under the Null Hypothesis?):
# The following calculates the p-value of an F-statistic
pf(q=2.81, df1=1, df2=10, lower.tail=FALSE)
You'll get the answer:
The syntax for the Fcdf command is:
Fcdf(lower limit, upper limit, numerator degrees of freedom, denominator degrees of freedom).
Fcdf(2.81, 99999, 1, 10)
You'll get the answer:
I'm a student in the MS in Applied Statistics program and the University of the District of Columbia.
Posted by Timothy Chen Allen at 3:49 PM
Tuesday, May 28, 2013
I recently completed a video about Median Polish, an Exploratory Data Analysis technique for analyzing two-way tables invented by John Tukey. I had tried to find a Youtube video about this, without any luck. So I thought I'd better create one to fill the gap. Enjoy:
Posted by Timothy Chen Allen at 3:18 PM
Tuesday, March 27, 2012
I just got passed a document with a Microsoft Word document with a zillion comments in it. I could have deleted all the comments by hand, but it would have taken forever and there would be a good chance I would miss one. So I used Visual Basic for Applications to do it. Here are the steps:
- In MS Word, type Alt-F11 to bring up the Macro window
- At the bottom of the Macro window, there is a pane labelled "Immediate". Commands entered here are run immediately.
- On a single line in the immediate pane, type
for z = ActiveDocument.Comments.Count to 1 step -1: ActiveDocument.Comments(z).Delete : next
- Hit Enter. All of the comments in the document will be deleted.
Posted by Timothy Chen Allen at 1:55 PM
Tuesday, May 24, 2011
Thursday, December 23, 2010
I visited National Cathedral today with Daniel. If you haven't had the guided tour, you really should do this. We learned a lot of great things. Daniel was terrific, really curious about everything; he asked great questions of the docent.
After a trip up to the observation deck, we made the obligatory visit to the Gift Shop. We got a couple things, and when we rang up, the sales person asked if we wanted to donate $15 to buy a blanket for a needy DC family. Since I'm not a heartless ogre, I went ahead and ponied up.
Then I started thinking: $15 for a blanket. Every time I run, I see homeless guys out there freezing in sweatshirts. And I'd already been playing with the idea of doing another ultramarathon and having people donate blankets. But here is a ready-made mechanism for getting blankets into peoples' hands... just waiting for a knucklehead like me to drive people to it.
I'm not thinking of doing another 46 miler for this... first off, Sònia wouldn't have it. And second off, Sònia wouldn't have it! But I already do 30 mile training runs pretty regularly. I could just do a 30 mile run, get people to sign up and send money to the Cathedral, and voila: cold homeless people get warm! A dollar a mile pledge would equal two blankets per donation. And the block around National Cathedral is just at one mile and a bit... I could actually run the thing around the Cathedral! So I'm giving some actual thought to this. I'm not saying it's a done deal... I'm just saying it sounds do-able. Really. Hmmm.
Friday, November 12, 2010
The Oyster-Adams Community Counsel folks have added up the donations made for the Daddy's Crazy 46-Miler, and so far we have raised at least $1075 for Oyster-Adams Bilingual School. You can still donate! Click here to make a donation. Thanks to all who have donated so far.
Sunday, November 7, 2010
"God's will be done," said Sancho. "I'll believe all your worship says, but straighten yourself a bit in the saddle...."
Friday, November 5, 2010
Saturday, October 30, 2010
I'm down to seven days until the Daddy's Crazy 46-Miler. I feel like I'm ready: my training has gone well, I have my route well thought out, I know what my strategy is for the run. I even got interviewed by the Washington Post Express-- it should be on the newstands next Tuesday, I think. And yet it doesn't feel very real for me yet. When I did this a year and a half ago... it just feels like my life has changed so much since that time. We bought a house and moved from Woodley Park to Glover Park. Sonia started working at the State Department and I started walking Daniel to school in the mornings. The big snow came. I got a big promotion at FEMA. We adopted Sparky.