# Throwback Thursday: What I learned about statistics from martial arts

Going through our archives, we came across this great post from MayÂ 16, 2011,â€śWhat I learned about statistics from martial artsâ€ťÂ that we wanted to share with you in case you missed it the first time around.Â

I’m doing a workshop at the San Diego SAS users group meeting on Wednesday andÂ  had suggested opening the session with a clip of my daughterâ€™s last amateur fight.Â  Someone politely commented,

â€śUh, I guess that would be okay, if it was, uh, relevant.â€ť

Fair question, how can martial arts be related to statistics or to programming?

I was world judo champion, so I think I can claim a bit of knowledge of martial arts. In teaching over the years,Â  I have seen thousands of up and coming young players, what I would consider the programming equivalent of those at the intermediate level -no longer a novice but not quite to the expert level yet, either. What the most promising of those martial artists have in common with the most promising young programmers and statisticians is, unfortunately, too often the same thing. They are in a hurry. They believe their own press.

They are enamored of the latest technique someone is doing in the Olympics or they want to do whatever the newest form of complex sampling â€“ Rasch â€“ IML â€“ hierarchical -neural network model is without nailing down the basics first.

Here is what I have learned:

1. Get off to a good start â€“ make sure that you have the correct data set. Seems pretty obvious, doesnâ€™t it? About once a year, someone sends me the wrong data, data from the previous year or month, the data set that was not corrected for invalid data, etc.
2. Nail down the basics â€“ make sure you completely understand the data you will be using. Do a reality check. Does an average income of \$120,000 a year make sense to you? Itâ€™s amazing to me the number of timesÂ  that people think not having ERROR show up in the log means that there are no errors in the program. Donâ€™t just count on automated rules like there should be a non-negative minimum for age, weight, height, etc. Some of the biggest screw-ups I have seen are because the programmer did not reverse code the items before scoring. It wasnâ€™t that the person didnâ€™t know to do this, he or she just didnâ€™t think of doing it. Just like in martial arts, the things that are fundamental should be over-learned until they are a reflex.
3. Automate what you can â€“ I did the same â€śboringâ€ť matwork drills 100 times a night for year after year until I did them almost as a reflex. When my daughter hits certain positions, she will automatically spin out and land on her feet or rotate into an armbar. With programming, itâ€™s even easier. If you do the same thing over and over, turn it into a macro.
4. Automation takes time â€“ just like the boring drills, people resist writing macros because it takes time, and it seems, when you are doing it, to take time from the really important things that are going to make you better. (I already KNOW that armbar, Sensei, why are we doing it again?) Iâ€™d be embarrassed to tell you for how many projects I wrote essentially the same code before sucking it up, taking the time to turn it into a macro and rarely thinking about it again.
5. There are many ways to the same goal. Whether you are using SAS, Ruby, SPSS or whatever your flavor of the month is, there are multiple ways to parse text, test relationships, validate your data.
6. Size matters. What works on an opponent (or data) that is really big may be inefficient or inappropriate in a smaller situation.
7. You canâ€™t learn it all from a book. This is a rather discouraging fact since I am just now writing a book on training champions in martial arts. The fact is, though, most statisticians I have met came out of graduate school unprepared for the real world. I hate that term by the way. I worked at universities for many years and if they really are an alternate universe, I think they should have flying cars and a unicorn or two. Still, one way in which universities do resemble an alternate universe is that data are all perfect and youâ€™re often told what statistical test you need to use. Itâ€™s really very weird to me â€“ youâ€™re asked a lot to prove theorems and equations, which you can look up, but the stuff you canâ€™t look up, like handling missing data or drawing conclusions based on incomplete and imperfect data, doesnâ€™t come up nearly as often as it should.
8. People can train you, but once youâ€™re an expert, youâ€™re on your own. When youâ€™re out there on the mat fighting, you need to figure out the right thing to do all on your own. Many years ago, I was visiting my former advisor. I showed him an article I was working on at the time and asked his opinion if the analysis and conclusions were correct. I was a little dismayed when he said, â€śProbably. Your guess is as good as mine. What are you asking me for? You know this stuff as well as I do. Look, there comes a point when you arenâ€™t a student any more. You can consult with other people, you can read books, but in the end, you find the answers for yourself and theyâ€™re as right as you know how to make them. Thatâ€™s it. No one has the answer key for the whole field, you know.â€ť

As they say in martial arts â€“ and then the student becomes the teacher. That can be exhilarating in many ways, but I must confess that both in statistics and in martial arts, there are days when I say to myself, â€śDamn, I wish I could find that answer key for the whole field!â€ť