Abalone_Dataset

Given a data file abalone.csv. Abalones are marine snails. The dataset has been prepared with the aim of making age predictions easier. Customarily, the age of abalone is determined by cutting the shell through the cone, staining it, and counting the number of rings through a microscope. But it is a tedious and time-consuming task. Therefore, other measurements, which are easier to obtain, are used to predict age.

The code:

  • Loads the dataset into the Spyder Enviornment.
  • Applys Linear Regression between the traget attribute and the attribute wihich has the highest pearson cofficient with the target attribute(Fitting a Straight line Between two attributes).
  • Applys Linear Regression between the target attribute and all the other attributes(Fitting a straight line in higher Dimensions.)
  • Applys Polynomial Regression between the target attribute and the attribute which has the highest pearson cofficient with the target attribute(Fitting a polynomial curve between two attibutes).
  • Applys a Polynomial Regression between the target attribute and all the other attributes(Fitting a polynomial curve in the higher dimension).

Input Dataset

https://www.kaggle.com/datasets/rodolfomendes/abalone-dataset

image

Output

Linear Regression between target attribute and the attribute with highest correlation :

image

Linear Regression between target attribute and all other attributes :

The best fit line is in higher dimensions so can't be plotted,

image

Polynomial Regression between target attribute and the attribute with highest correlation :

image

Polynomial Regression between target attribute and all other attributes :

The best fit curve can't be plotted as they are in higher dimensions.

image