My question is classification of the iris dataset using multi-variate linear regression without using the scikit-learn library. I have this formula that is needed to find the beta values for the dataset. enter image description here β^=(X′X)−1X′Y This is the dataset in question: http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data
How to compute the linear regression using this formula. I understand that linear regression is Yi = β0 + β1X1i + ... + βkXki + ϵi
I have computed beta values using the above formula using matrix multiplication. How to find the linear regression equation now? I have assumed the first 4 columns as the A matrix and the label column as the Y matrix with values 1,2,3 respectively. How do i compute the ϵi values. Do i assume them to be zero? Any help is appreciated. Thanks in advance.