We don't always work with numbers as they are. For example, population is often given in thousands. In this recipe, we'll scale some values to make them easier to work with. In fact, some algorithms work better with scaled data. For instance, linear regression models are sometimes able to fit the data better after it has been scaled logarithmically.
We'll use the following dependencies in our project.clj
file:
:dependencies [[org.clojure/clojure "1.4.0"] [incanter "1.4.1"]]
And we'll use the following namespaces in our script or REPL:
(require '[incanter.core :asi] 'incanter.io '[incanter.charts :as c])
For data, we'll use the census data that we did in the Differencing variables to show changes recipe.
(def data-file "data/all_160_in_51.P3.csv")