January 2019
Intermediate to advanced
378 pages
8h 27m
English
Let's say we've decided from our prior analysis that we are interested in three particular ZIP codes: 10002, 10003, and 10009. How can we use our model to determine what we should pay for a given apartment? Let's now take a look.
First, we need to know what the inputs into the model looked like so that we know how to enter a new set of values. Let's take a look at our X matrix:
X.head()
The preceding code generates the following output:

What we see is that our input is coded with what are called dummy variables. To represent a ZIP code feature, since it is not numerical, dummy coding is used. If the apartment is in 10003, then ...
Read now
Unlock full access