Database Reference
In-Depth Information
There's moreā€¦
For more about boostrapping, Bootstrap: A Statistical Method by Kesar Singh and Minge Xie is
a good, general introduction ( http://www.stat.rutgers.edu/home/mxie/rcpapers/
bootstrap.pdf )
Modeling linear relationships
When doing data analysis, we're often looking for relationships in our data. Does one variable
correlate with another? If we have more of one thing, do we have less of something else?
Does, say, a person's body mass index (BMI) have a relationship to the longevity of her life?
This isn't always obvious just by looking at a graph. A relationship that seems obvious to our
eyes may not be signiicant.
Linear regression is a way of inding a linear formula that matches the relationship between
an independent variable (the BMI) and a dependent variable (longevity). It also tells us how
well that formula explains the variance in the data and how signiicant that relationship is.
Getting ready
For this, we'll need these dependencies:
(defproject statim "0.1.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[incanter "1.5.5"]])
We'll use this set of requirements:
(require
'[incanter.core :as i]
'incanter.io
'[incanter.stats :as s]
'[incanter.charts :as c])
We'll use the Virginia census race data ile that we can download from http://www.
ericrochester.com/clj-data-analysis/data/all_160_in_51.P35.csv :
(def data-file "data/all_160_in_51.P35.csv")
 
Search WWH ::




Custom Search