Jump to content

Tournament Odds Gizmo


jimmykc

Recommended Posts

Just now, Silverbacked1 said:

Right now I like what it says at the bottom of the red part:

 

"Status: What's good to eat in Dayton?"

 

Well, aren't you a pessimist.  I've been checking out restaurants and places to stay in San Antonio, home of the 2018 Final Four!!! :D

 

I believe it was Uconn in 2010 or 2011 that was on the outside and looking in prior to ripping off 5 straight in the Big East tournament and then winning 6 more in a row to win the title.  History always repeats itself at some point!

Link to comment
Share on other sites

3 minutes ago, 49r said:

So the dial on the little gizmo keeps going up a little bit even though we're still only predicted in 9 of the brackets...is there any particular reason why?

 

Maybe if I clicked on the gizmo it would explain things better...

 

I'm just displaying the bare minimum.  There are a few things that go into the calculation.

Don't read the following if you don't want to know how the magic works.

 

function FindScore(data) { // Calculate percentage chance basked on RPI-like ranking system
				 var score;
				 if (data < 30){ score = 99; }
				 if (data > 30 && data <= 40) { score = 92; }
				 if (data > 40 && data <= 43) { score = 85; }
				 if (data > 43 && data <= 45) { score = 80; }
				 if (data > 45 && data <= 47) { score = 55; }
				 if (data > 47 && data <= 51) { score = 35; }
				 if (data > 51 && data <= 55) { score = 25; }
				 if (data > 55 && data <= 60) { score = 15; }
				 if (data > 60 && data <= 70) { score = 5; }
				 if (data > 70 && data <= 80) { score = 2; }
				 if (data > 80) { score = 1; }
				 
				 return score;
			 };
			 

			 
			 kenpom_score = FindScore(json.kenpom.rating);
			 ncaa_score = FindScore(json.warrennolan.rpi); // Using live one rather than json.ncaa.rpi_rank for more frequent updates
			 espn_sor = FindScore(parseInt(json.espn.sor)); // SOR is stronger predictor than BPI
			 espn_bpi = FindScore(parseInt(json.espn.bpi)); 
			 teamrankings_score = parseInt(json.teamrankings.make_tournament); // This one's already a % score
			 sagarin_score = FindScore(json.trank.sagarin);
			 trank_score = FindScore(json.trank.trank);
			 kpi_score = FindScore(json.trank.kpi);
			 lrmc_score = FindScore(json.lrmc.rank);
			 massey_score = FindScore(json.massey.composite);
			 
			 total_score = ((kenpom_score*.14) + (ncaa_score*.18) + (espn_sor*.15) + (espn_bpi*.10) + (teamrankings_score*.06) + (sagarin_score*.04) + (trank_score*.08) + (kpi_score*.13) + (lrmc_score * .03) + (massey_score * .09));
			 
			 function StatusCheck(data) {
				 var status_message;
				 if (data < 20) { status_message = "Still need some wins." }
				 if (data >= 20 && data < 30) { status_message = "Can see the bubble from here." }
				 if (data >= 30 && data < 40) { status_message = "What's good to eat in Dayton?" }
				 if (data >= 40 && data < 55) { status_message = "Cautiously optimistic." }
				 if (data >= 55 && data < 75) { status_message = "Feeling good." }
				 if (data >= 75) { status_message = "Dancing." }
				 
				 return status_message;
				 
			 }
			 
			 message = StatusCheck(total_score);
			 console.log(message);

			 $('#message').text(message);

			 
			 
			 console.log("NCAA score: " + ncaa_score + "    (18%)");
			 console.log("ESPN SOR score: " + espn_sor + "    (15%)");
			 console.log("Kenpom score: " + kenpom_score + "    (14%)");
			 console.log("KPI score: " + kpi_score + "    (13%)");
			 console.log("ESPN BPI score: " + espn_bpi + "    (10%)");
			 console.log("Massey score: " + massey_score + "    (9%)");
			 console.log("T-Rank score: " + trank_score + "    (8%)");
			 console.log("TeamRankings score: " + teamrankings_score + "    (6%)");
			 console.log("Sagarin score: " + sagarin_score + "    (4%)");
			 console.log("LRMC score: " + lrmc_score + "    (3%)");
			 console.log("Total score: " + total_score);

			});		

 

Link to comment
Share on other sites

On 2/13/2018 at 9:17 AM, Nebrasketball1979 said:

 

Well, aren't you a pessimist.  I've been checking out restaurants and places to stay in San Antonio, home of the 2018 Final Four!!! :D

 

I believe it was Uconn in 2010 or 2011 that was on the outside and looking in prior to ripping off 5 straight in the Big East tournament and then winning 6 more in a row to win the title.  History always repeats itself at some point!

 

I had UConn winning my bracket that year.  Still didn't come in first in my pool.  Dark days.

 

 

Screen Shot 2014-04-05 at 11.11.46 PM.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...