Click here to download the code.
The things that you must have a decent knowledge on:
* Python
* Linear Algebra
* Calculus
- This project is fully based on python. So, the necessary modules needed for computaion are:
* Numpy
* Sklearn
* Matplotlib
* Pandas
- The commands needed for installing the above modules on windows platfom are:
pip install numpy
pip install sklearn
pip install matplotlib
- we can verify the installation of modules by importing the modules. For example:
import numpy
from sklearn.decomposition import kernelPCA
import matplotlib.pyplot as plt
-
Here were performing linear regression on the Boston house pricing dataset.
-
The details of the dataset are:
-
Title: Boston Housing Data
-
Sources: (a) Origin: This dataset was taken from the StatLib library which is maintained at Carnegie Mellon University. (b) Creator: Harrison, D. and Rubinfeld, D.L. 'Hedonic prices and the demand for clean air', J. Environ. Economics & Management, vol.5, 81-102, 1978. (c) Date: July 7, 1993
-
Past Usage:
- Used in Belsley, Kuh & Welsch, 'Regression diagnostics ...', Wiley, 1980. N.B. Various transformations are used in the table on pages 244-261.
- Quinlan,R. (1993). Combining Instance-Based and Model-Based Learning. In Proceedings on the Tenth International Conference of Machine Learning, 236-243, University of Massachusetts, Amherst. Morgan Kaufmann.
-
Relevant Information:
Concerns housing values in suburbs of Boston.
-
Number of Instances: 506
-
Number of Attributes: 13 continuous attributes (including "class" attribute "MEDV"), 1 binary-valued attribute.
-
Attribute Information:
- CRIM per capita crime rate by town
- ZN proportion of residential land zoned for lots over 25,000 sq.ft.
- INDUS proportion of non-retail business acres per town
- CHAS Charles River dummy variable (= 1 if tract bounds river; 0 otherwise)
- NOX nitric oxides concentration (parts per 10 million)
- RM average number of rooms per dwelling
- AGE proportion of owner-occupied units built prior to 1940
- DIS weighted distances to five Boston employment centres
- RAD index of accessibility to radial highways
- TAX full-value property-tax rate per $10,000
- PTRATIO pupil-teacher ratio by town
- B 1000(Bk - 0.63)^2 where Bk is the proportion of black by town
- LSTAT % lower status of the population
- MEDV Median value of owner-occupied homes in $1000's
-
Missing Attribute Values: None.
-
-
Click here to find the program LinearRegression_BOSTON_Dataset.py
click here to see the program LinearRegression_DIABETES_Dataset.py implementing linear regression on Diabetes dataset.
- Performed Linear Regression on BOSTON house pricing and Diabetes dataset.
This project is licensed under the MIT License - see the LICENSE.md