AI Track is back! A Multiple Linear Regression Algorithm To Rule Them All – Part 3 – Another Data Set

Git Code

In this post, I will run another data set using the implementation I did of Dr. Brannick’s example (reference #1).

This data set (references #2, #3 & #4) is a two parameter (fat and sugar) linear progression calculation to give a cereal’s rating. I created a data set of the same structure and was able to plug it in to my implementation of Dr. Brannick’s example and the results were comparable.  The first test set element result matched and the second was close (ish).  My two predictions are reasonable.

  • Running

Screen Shot 2018-02-19 at 5.06.57 PM

  • Results

Screen Shot 2018-02-19 at 5.07.11 PM

  • Results comparison

Screen Shot 2018-02-19 at 5.09.00 PM

The next post will be to take the 3 parameter calculation (reference #2) and see if I can get close with minor modifications to the existing algorithm.

Stay tuned!

References:

  1. http://faculty.cas.usf.edu/mbrannick/regression/Reg2IV.html
  2. http://www.stat.yale.edu/Courses/1997-98/101/linmult.htm
  3. http://www.stat.yale.edu/Courses/1997-98/101/anovareg.htm#mult
  4. http://lib.stat.cmu.edu/DASL/Stories/HealthyBreakfast.html
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s