Welcome to “Math for Political Scientists,” affectionately known as “math camp.” This course is meant as a math refresher for incoming graduate students to the Department of Government. Everything for the course is hosted on github.
|Monday||N/A||Functions & Intro to calculus|
|Wednesday||Matrix algebra||Scientific computing with R|
|Thursday||Set theory & combinatorics||Best practices|
|Friday||Probability||Scientific computing, continued|
|Tuesday||Wrap-up, methods at UT||N/A|
Homework problems will be uploaded here the day they’re assigned.
- Assumed knowledge
- Matrix algebra
- Sets and combinatorics
R & Rstudio
R is the language we’ll use for statistical computing and graphics. It is free and open source. Installation of R is very easy. Linux users can install using their package manager. Mac and Windows users can navigate here and follow the instructions for their OS.
Rstudio is an editor that you can write code with. Go ahead and install it using the link (again, Linux users can use their package manager). You’ll want the open-source desktop version.
Make sure it works
After installing R and Rstudio, and ensuring that your computer is connected to the internet make sure it all works by doing the following:
- Open Rstudio
- You should see three (maybe four) panes. In the left pane (bottom left if you see four), you should see some text, then
>followed by a cursor. This is where you should type.
3+3and hit enter.
- R should say
install.packages("gapminder")and hit enter. If prompted about using a personal library, respond “yes”.
- Wait for R to download and install that package.
library(gapminder)and hit enter. After doing so, you should see a new
>but no other output.
If any of the above steps cause an error for you, email me and let me know so that we can sort out most of these issues before the course starts.