-
May 08, 2008
Stats Project: Sociability of Musical Instruments Using Facebook Data
For my SI 544: Stats class this semester, I worked with two cool dudes, Jim Laing and Sameer Halai. Our project involved using data gathered from a Facebook application to test a hypothesis about the perceived sociability of certain musical instruments.
If you recall, I wrote a blog post a few months ago about the viral vs. non-viral growth of Facebook applications that I had developed. One of those apps, Musical Instruments, lets you list which musical instruments you play. It’s kind of fun because some people play really whacked-out instruments (I play pianica and soprano trombone). I think playing instruments is typically a pretty social experience, which sort of led me to think about comparing the “sociability” of certain instruments to each other with the data gathered from this app.
Users input their instruments via an autocompleting text field. If an instrument already exists in the database (and at least 3 or so users have claimed it), it will autocomplete. In the above screenshot, I’ve typed “Trumpet” and you can see there’s many different types of trumpet to choose from. A user can also type an instrument that doesn’t yet exist in the database and it’ll be added automatically. This kind of free vocabulary is nice because it doesn’t require an administrator to continuously accept new instruments.
The data that the application has access to are:
- The user’s FBID (Their unique Facebook user ID in the form of a number)
- The instruments that the user claims to play
- The number of friends that the user has
We ended up getting 8603 rows of data (user/instrument pairs). After getting a bunch of free text instruments, we went to work classifying many of them into groups and subgroups. So Piccolo is in the group “Flute” and subgroup “Woodwind.”
We then generated a survey for people to rank 16 instruments in order of sociability. That is, people who play x instrument probably have more friends than y instrument.
The survey results showed that people thought Vocalists had the most friends and that Guitar was pretty popular too.
From the application data and survey results, we formed a hypothesis. We hypothesized that the instruments given high sociability rank would also have statistically higher mean numbers of friends. So people who played Guitar would have more friends than people who played Flute.
First, we did some basic analysis of the data using R, the free stats program that we were using for class assignments and labs.
This figure shows the histogram of frequency of number of friends. Basically, many people have 0-100 friends, less people have 101-200 friends, etc. This probably follows a power law curve, but we didn’t think it would be really important to find the alpha or anything for our purposes.
This is a graph of the mean number of friends, by instrument. This looks like a pretty standard normal distribution and it shows off the central limit theorem that Lada is always talking about in class.
This is just a boxplot of all of the classified instruments and their # of friends. There are some crazy outliers; people who have 1000 friends. From this boxplot, it’s hard to make out whether or not any of the means are actually statistically significant.
Finally, we ran pairwise t-tests on each set of instruments. We could see that there was a significant difference in the mean number of friends for certain instruments. For example, Guitar and Horn, Guitar and Oboe, and Guitar and Saxophone. Looking at the mean number of friends for these instruments, Saxophone players had on average 20 more friends than Guitar players. This is interesting because Saxophone was ranked 10.7 (not very sociable) and Guitar was ranked very sociable.
The scope of this project was pretty small, and given some more time, I think we could’ve come up with some more interesting conclusions. Stuff like “is flute really a girly instrument?” by looking at the average number of female flute players vs male flute players and “do guitar players get more chicks?” by looking at relationship status of guitar players vs. something like trumpet players (personal burn!).
I was glad my Facebook app actually provided some interesting data. I’ve always been sort of skeptical to the ability of Facebook apps to be profitable. I think the data that the apps provide is very valuable in the context of social network research. Anyway, I hope you found this post to be somewhat entertaining. I’ve also uploaded the project report and presentation slides in PDF if you want to check them out.
Many thanks to Jim and Sameer for sharing much of the work in this project. I ended up providing data, formatting it, and presenting the final presentation, so props to my teammates!
-
May 07, 2008
KVM DVI Switches: Why So Expensive!?
Right now I’m using a Dell 24-inch screen with my hand-built Windows box. But I also have a 13-inch Macbook that I’ve been using for school and software development (Unix is simply a nicer environment than Windows). I’ve been wanting to get the Mac on the 24-inch screen, but I only have a mini-dvi to DVI adapter. So I was thinking of getting one of those nifty KVM switches that let you use one set of input devices for multiple computers.
A KVM switch that supports DVI video inputs costs like, $175! Why so expensive!? I’m not an electrical engineer (or computer engineer even), but it doesn’t make sense that the hardware can cost so much. Couldn’t you just rig something up that just physically “switches” the wiring? Maybe the switch requires some power, but I can’t imagine the logic being that terribly complex. In comparison, a lot of the VGA KVM switches I’ve looked at cost maybe $25. What’s the difference, besides a few extra signals being re-routed?
So my short term cheapo fix will probably be to buy a $19 Mini-dvi to VGA adapter for my Macbook. My monitor has multiple inputs (VGA, DVI, Component, Composite, S-Video) so I can just switch from VGA to DVI for Mac to PC. The video quality might suffer, but I probably won’t be able to tell the difference anyway (my older brother claims he can).
-
May 05, 2008
Jackie Chan iGoogle Theme
I use iGoogle a lot. One of the more recent things that has come along with iGoogle is the introduction of artist themes. I guess they’re there to break up the monotony of a boring home page.
I was going through the gallery when one such theme caught my eye: Jackie Chan! The theme is a cartoony (but not like the Jackie Chan cartoon… and on a side note, isn’t it kind of ridiculous that they needed to hire a voice actor for the cartoon to play Jackie with a fake Chinese American accent!?) fictionalization of Jackie Chan apparently filming a movie where he fights ninjas. That’s fine, but who the heck drew this? If you told me Jackie drew it, I’d believe you. And it’s also the only way I’d forgive the slanty-eyed caricature of Jackie. May is Asian Heritage Month, people!
Anyway, I’m using it as my iGoogle theme, because it’s funny and I like Jackie Chan. Even if he does look a bit like a racist stereotype. Oh well!
-
May 04, 2008
MapsKrieg in a Mashup Contest – Vote For Me!
I keep forgetting to mention this. A while back there was this cryptic ad on Facebook about mashups and it led to a Dice.com sponsored contest. I figured I would enter MapsKrieg and I sort of forgot about it. Checking the visitor stats, I noticed some people were coming from a contest poll page. So MapsKrieg was chosen as a finalist in this contest!
The prize is $4000, which is pretty neat. So please check out the finalists and vote (preferably for me)! Mine is #2, “Home & Apartments.” I wonder why they just didn’t label it “MapsKrieg?”
-
May 03, 2008
Advance Wars: Days of Ruin
I got Advance Wars: Days of Ruin from Amazon.com yesterday because it was on sale for like $16. I’d played Advance Wars 2 and it was pretty cool, and I skipped Advance Wars Dual Strike.
One thing that kind of seemed weird to me for the Advance Wars games was that the fighting always seemed unmotivated. Like here’s some random countries, let’s go to war! Also, the cartoony quality of the graphics led to some weird cognitive dissonance as I led my cute dudes with their tanks off to die in gruesome battle.
Days of Ruin sort of fixes this by making the graphics more gritty and changing the setting to a post-apocalyptic world. So everyone is fighting for food and survival instead of just for the hell of it. Unfortunately, the setting is not like Mad Max, where everyone is hoarding hockey pads and crossbows and gas. Seriously, you have factories that make tanks, but you can’t make food!? Get your priorities straight!!!
So far, it’s been pretty fun, but the challenge level just seems really low. I think I probably just need to complete some more missions and get further in the game.