Go to Post You can't reprogram physics. - Kevin Sevcik [more]
Home
Go Back   Chief Delphi > Competition > Championship Event
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Spotlight this post!  
Unread 11-05-2016, 18:46
markmcgary's Avatar
markmcgary markmcgary is offline
Software Mentor
FRC #4322 (Clockwork Oranges)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Fullerton, CA
Posts: 175
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: Upset Percentage

Quote:
Originally Posted by Ether View Post
To answer that question definitively, perhaps a SQL guru will write a script to query Jaci's 2016 SQL database.

That sounds like a challenge. According to my query, there were 720 upsets out of 2273 playoff matches. This does not count ties where the fouls determined the outcome. I checked this against Einstein and it looks accurate.

Code:
select matches.event, events.name, match_levels.name, matches.set_number, matches.match_number,
red_scores.total_points as red_points, blue_scores.total_points as blue_points from matches
inner join events on matches.event = events.id
inner join match_levels on matches.match_level = match_levels.id
inner join match_scores as red_scores on matches.id = red_scores.match
inner join match_scores as blue_scores on matches.id = blue_scores.match
where match_level > 1
and red_scores.alliance_color = "red"
and blue_scores.alliance_color = "blue"
and blue_points > red_points
and events.is_official = 1
order by matches.event
Edit: You can add one upset for Einstein Final Match 3 which I know was tied. That makes 31.7% playoff upsets.

Edit 2: I added some logic to figure out upsets that were tie scores. That added 7 total upsets. 32%. Interestingly, 4322 won an upset on a tie at OCR QF2-1. That match now shows in the results.
Code:
and (blue_points > red_points or (blue_points = red_points and blue_scores.foul_points > red_scores.foul_points))

Last edited by markmcgary : 11-05-2016 at 19:13. Reason: Added upsets from ties.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi