Writing Multiple Functions (Introduction to Statistical Computing)

September 17, 2013
By

Lecture 5: Using multiple functions to solve multiple problems; to sub-divide awkward problems into more tractable ones; to re-use solutions to recurring problems. Value of consistent interfaces for functions working with the same object, or doing si...

Read more »

Lab: Of Big- and Small- Hearted Cats (Introduction to Statistical Computing)

September 17, 2013
By

In which we practice the arts of writing functions and of estimating distributions, while contemplating just how little room there is in the heart of a cat. Lab Introduction to Statistical Computing

Read more »

Homework: Hitting Bottom and Calling for a Shovel (Introduction to Statistical Computing)

September 17, 2013
By

In which we see how to minimize the mean squared error when there are two parameters, in the process learning about writing functions, decomposing problems into smaller steps, testing the solutions to the smaller steps, and minimization by gradient de...

Read more »

Top-Down Design (Introduction to Statistical Computing)

September 17, 2013
By

Lecture 6: Top-down design is a recursive heuristic for solving problems by writing functions: start with a big-picture view of the problem; break it into a few big sub-problems; figure out how to integrate the solutions to each sub-problem; and then ...

Read more »

LaTeX: Itemize and Enumerate

September 17, 2013
By
LaTeX: Itemize and Enumerate

Previously, we talk about paragraph, spacing, and indentation. What about listing in $\mathrm{\LaTeX}$?Just like MS Word, $\mathrm{\LaTeX}$ has both bullet and alphanumeric environment for listing. Bullet listing is constructed inside the itemize domai...

Read more »

Forecasting with daily data

September 17, 2013
By
Forecasting with daily data

I’ve had several emails recently asking how to forecast daily data in R. Unless the time series is very long, the easiest approach is to simply set the frequency attribute to 7. y <- ts(x, frequency=7) Then any of the usual time series forecasting methods should produce reasonable forecasts. For example library(forecast) fit <- ets(y) fc <- forecast(fit) plot(fc) When the time series is long enough to take in more…

Read more »

Attendance in parliament (in Italy)

September 16, 2013
By
Attendance in parliament (in Italy)

Earlier today, I found some interesting data on Italian MPs voting records in the current parliament (which was opened last April). The data are available for both Houses (the Italian system has a lower house, called Camera $-$ effectively the same as ...

Read more »

Visualizing a normal distribution as outcomes from a spinner

September 16, 2013
By
Visualizing a normal distribution as outcomes from a spinner

Mike Meredith has a new blog post showing an animation that converts a spinner to a normal distribution. It shows hows segments of the spinner map to regions under the normal distribution. Give it a look!(Mike Meredith is also the fellow who created th...

Read more »

Data Analysis in the top 9 courses in lifetime enrollment at Coursera!

September 16, 2013
By
Data Analysis in the top 9 courses in lifetime enrollment at Coursera!

Holy cow I just saw this, my Coursera class is in the top 9 by all time enrollment! Top 9 courses on #coursera by lifetime enrollment current as of 9/16- check out & enroll: http://t.co/2X0EJoetoC! pic.twitter.com/d0Sko1KhoD — Coursera (@coursera) September … Continue reading →

Read more »

He’s adult entertainer, Child educator, King of the crossfader, He’s the greatest of the greater, He’s a big bad wolf in your neighborhood, Not bad meaning bad but bad meaning good

September 16, 2013
By
He’s adult entertainer, Child educator, King of the crossfader, He’s the greatest of the greater, He’s a big bad wolf in your neighborhood, Not bad meaning bad but bad meaning good

An offhand mention in this recent post motivated me to google Evilicious. And this is what I found: From the prologue: The idea I [Hauser] develop is that evildoers are made in much the same way that addicts are made. Both processes start with unsatisfied desires. Whether it is a taste for violence or a […]The post He’s adult entertainer, Child educator, King of the crossfader, He’s the greatest of…

Read more »

Lunch and talk on Wednesday

September 16, 2013
By
Lunch and talk on Wednesday

Note: This is a cross-post from Junk Charts. I will be the luncheon speaker at INFORMS NYC on Wednesday in NYC. The talk will provide some context for my new book Numbersense (link), and discuss a few examples from the book. You can pre-register here. INFORMS is the professional society for Operations Research and Management Science people. For some years, I have attended these regularly and learned a lot from…

Read more »

Lunch and talk Wednesday

September 16, 2013
By
Lunch and talk Wednesday

I will be the luncheon speaker at INFORMS NYC on Wednesday in NYC. The talk will provide some context for my new book Numbersense (link), and discuss a few examples from the book. You can pre-register here. INFORMS is the...

Read more »

What versions of R are supported by SAS?

September 16, 2013
By
What versions of R are supported by SAS?

SAS has supported calling R from the SAS/IML language since 2009. The interface to R is part of the SAS/IML language. However, there have been so many versions of SAS and R since 2009, that it is hard to remember which SAS release supports which versions of R. The following [...]

Read more »

Profile Likelihood for New Jersey U.S. Senate Special Election

September 16, 2013
By
Profile Likelihood for New Jersey U.S. Senate Special Election

As it stands right now Cory Booker has a very good chance of winning the New Jersey Special U.S. Senate election on October 16 to replace Frank Lautenberg and fill the remainder of his term for the next 15 months.  So with the election only about a month away I took advantage of some of […]

Read more »

Data Visualization and Journalism Event in San Francisco on September 26

September 16, 2013
By
Data Visualization and Journalism Event in San Francisco on September 26

Visual.ly is hosting an event on data visualization and journalism on September 26 in San Francisco, under the rather clever heading of DV’n'J (think PB&J). I’m one of the speakers. I will be talking about my research on storytelling and where I see visualization going in journalism. Given the audience, The new Story Points feature […]

Read more »

How to learn statistics (Part 2)

September 15, 2013
By
How to learn statistics (Part 2)

Some more help (preaching?) for students of statistics Last week I outlined the first five principles to help people to learn and study statistics. They focussed on how you need to practise in order to be good at statistics and … Continue reading →

Read more »

60 Seconds on Measurement vs. Theory in all the Sciences

September 15, 2013
By

At Penn we have something of a unique tradition, an ongoing series of "60-Second Lectures." Four Penn profs speak each semester, outdoors, at noon on four consecutive Wednesdays. And yes, each of the four lectures is capped at 60 seconds.60-Second...

Read more »

Swiss Jonah Lehrer update

September 15, 2013
By

Nassim Taleb adds this link to the Dobelli story.I’m confused. I thought Swiss dudes were supposed to plagiarize their own stuff, not rip off other people’s. Whassup with that?The post Swiss Jonah Lehrer update appeared first on Statistic...

Read more »

JAGS users: runjags has been updated

September 15, 2013
By
JAGS users: runjags has been updated

Image credit: http://www.potracksgalore.com/accessories/hanging-chains/premierpotrackchains.cfm The package runjags by Matt Denwood has been recently updated. The runjags package has many nice facilities for running JAGS, especially a seamless interfac...

Read more »

The it-gets-me-so-angry-I-can’t-deal-with-it threshold

September 15, 2013
By

I happened to be looking at Slate (I know, I know, but I’d already browsed Gawker and I was desperately avoiding doing real work) and came across this article by Alice Gregory entitled, “I Read Everything Janet Malcolm Ever Published. I’m in awe of her.” I too think Malcolm is an excellent writer, but (a) […]The post The it-gets-me-so-angry-I-can’t-deal-with-it threshold appeared first on Statistical Modeling, Causal Inference, and Social Science.

Read more »

Lab: Only the Answers Have Changed (Introduction to Statistical Computing)

September 15, 2013
By

In which we try our hand at controlling the flow of our code, and learn about the reproducibility of randomized procedures. Lab, R code Introduction to Statistical Computing

Read more »

Writing and Calling Functions (Introduction to Statistical Computing)

September 15, 2013
By

Lecture 4: Just as data structures tie related values together into objects, functions tie related commands together into objects. Declaring functions. Arguments (inputs) and return values (outputs). Named arguments, defaults, and calling functions....

Read more »

Homework: Tweaking Resource-Allocation-by-Tweaking (Introduction to Statistical Computing)

September 15, 2013
By

In which we make incremental improvements to our code for planning by incremental improvements. Assignment, code. Introduction to Statistical Computing

Read more »


Subscribe

Email:

  Subscribe