Category Archives: Uncategorized

Your post title

Test

This post was created with knit2wp

summary(cars)
##      speed           dist    
##  Min.   : 4.0   Min.   :  2  
##  1st Qu.:12.0   1st Qu.: 26  
##  Median :15.0   Median : 36  
##  Mean   :15.4   Mean   : 43  
##  3rd Qu.:19.0   3rd Qu.: 56  
##  Max.   :25.0   Max.   :120

You can also embed plots, for example:

plot(cars)

Baccarat Art

bacTest

Each pair of quadrilaterals represents one hand of the punto banco version of Baccarat. The length, width, and color of each shape is determined by the value of each of the two hands. Larger numbers appear closer to red/orange while lower colors appear more blue. The transparency of each losing hand is controlled by the difference in the values of the two competing hands. Baccarat hands were simulated using the statistical programming language R resulting in this beautiful representation of the classic high-roller casino game.

More aRt

Cheers.

Are NHL teams playing for overtime after the league’s realignment?

statsbylopez's avatarStatsbyLopez

In a previous post, I described how incentives for NHL teams to play overtime games against certain types of opponents are stronger than ever in the league’s newest point system.

Through the first eight weeks of the season, here are the frequencies with which games have gone to overtime, by type.

Game TypeNon-OTOT% OT
Divisional93220.191
Non-divisional, Conference51220.301
Non-conference110270.252

Not surprisingly, teams are playing OT contests more often when it doesn’t cost them to be simultaneously giving their opponent a point. Specifically, playoff spots in the current NHL setup are primarily based on divisional standings – and through eight weeks, only 19% of divisional contests have reached overtime. Alternatively, 27% of other game types have reached OT.  FWIW, this difference is not (yet) statistically significant. That said, I will give all of my readers free access to this blog…

View original post 108 more words

NFL Rankings – 11/21/2013

Updated: November 21, 2013

Pro: The rankings are based on how a team performs and accounts for how many points they would be expected to score based on their statistical output such as rushing yards, passing yards, etc.  This ranking considers past seasons statistics with heavier weights placed on games that are more recent.  This ranking is the more predictive of the two.

Retro: This ranking only considers strength of schedule and the actual outcome of games in 2013.  This is a ranking of who actually has had the best season.

SOS: Is strength of schedule.

Week 11

 
Team Pro Retro W L sos
Denver 4 1 9 1 4
Seattle 5 2 10 1 6
NewOrleans 3 3 8 2 19
KansasCity 2 4 9 1 10
Carolina 1 5 7 3 1
NewEngland 7 6 7 3 16
SanFrancisco 6 7 6 4 20
Indianapolis 10 8 7 3 2
Cincinnati 8 9 7 4 17
Dallas 13 10 5 5 22
Arizona 14 11 6 4 26
Philadelphia 9 12 6 5 18
Chicago 16 13 6 4 9
Detroit 11 14 6 4 14
GreenBay 12 15 5 5 13
Miami 18 16 5 5 8
SanDiego 17 17 4 6 27
NYGiants 27 18 4 6 30
St.Louis 18 19 4 6 31
Tennessee 20 20 4 6 5
Baltimore 15 21 4 6 12
Oakland 26 22 4 6 23
Pittsburgh 25 23 4 6 15
Cleveland 22 24 4 6 11
Buffalo 21 25 4 7 3
Washington 23 26 3 7 25
NYJets 30 27 5 5 7
TampaBay 24 28 2 8 32
Atlanta 29 29 2 8 29
Minnesota 31 30 2 8 24
Houston 28 31 2 8 28
Jacksonville 32 32 1 9 21

Sending data from client to server and back using shiny

markheckmann's avatar"R" you ready?

post-logoAfter some time of using shiny I got to the point where I needed to send some arbitrary data from the client to the server, process it with R and return some other data to the client. As a client/server programming newbie this was a challenge for me as I did not want to dive too deep into the world of web programming. I wanted to get the job done using shiny and preferably as little JS/PHP etc. scripting as possible.

View original post 1,205 more words

Week 11 NFL Playoff Probabilities

2013-Week-11-Playoff-Probs

So, big moves in the NFC- Carolina’s win was huge, as they’re in the driver’s seat now. The NFC East and North are where the races are in the Senior Circuit (that’s a thing in football, right?)

In the NFC North, the Lions and Packers took a page right out of the AFC second WC spot chasers by losing to terrible teams (the Steelers and Giants respectively.)  The Lions still have the easiest schedule of the Bears/Packers/Lions group, as they only play two more wining teams (Packers and Eagles), whereas the Packers have the Lions, Cowboys and Bears and the Bears have the Cowboys, Eagles and Packers. Of course, this analysis requires the you to ignore the fact that the Eagles and Cowboys are the Eagles and Cowboys.

The Niners seem to have decided to suck, as they have a less than .5 probability now as do the Cowboys. The Niners have a rougher road ahead, since they won’t win their division whereas the Cowboys can still win (ed.- The Niners are still the current 5 seed in the NFC playoff race but because of the division race being out of reach, the Cowboys have a slightly rosier outlook according to the formula we use.) But that means those team need to stop being losers. Good luck, guys!

Over in the race to be the crappiest team in the playoffs, aka the second AFC Wild Card team, the Dolphins decided they’d win, while literally every other team that has any kind of shot at taking the spot losing. So… um… I can’t wait to see which team gets to lose to either the Chiefs or Broncos the three seed (right now the Pats- h/t crcalpha) in round one.

 

Here’s the real reason that officials in the Panthers Patriots game picked up the flag

statsbylopez's avatarStatsbyLopez

What do the following plays have in common?

The interference that wasn’t, 2013 regular season, Patriots vs. Panthers

Obstruction, Game 3 of the 2013 World Series, Red Sox vs. Cardinals

Pushgate, 2013 regular season, Patriots vs. Jets

Replacement Refs debacle, 2012 regular season, Packers vs. Seahawks

Hand of Frog, 2009 World Cup qualifying, Ireland vs. France

Tuck Rule, 2001 AFC Divisional Round, Raiders vs. Patriots

Music City Miracle, 1999 AFC Divisional Round, Bills vs. Titans

Four-point play, 1999 Eastern Conference finals, Pacers vs. Knicks

Jeffrey Maier catch, 1996 ALCS, Orioles vs. Yankees

The Call, 1985 World Series Game 6, St. Louis vs. Kansas City

Mike Renfro catch, 1979 AFC title game, Houston vs. Pittsburgh

Interference, 1975 World Series, Red Sox vs. Reds

Beyond simply a list of 12 highly controversial calls, each of the above games has something in…

View original post 1,019 more words

StatsInTheWild NCAA Football Top 25

 

 
Rank Team Record
1 STANFORD 8-1
2 ARIZONA STATE 7-2
3 MISSOURI 9-1
4 FLORIDA STATE 9-0
5 OREGON 8-1
6 ALABAMA 9-0
7 BYU 6-3
8 SO CAROLINA 7-2
9 GEORGIA 6-3
10 MICHIGAN STATE 8-1
11 OHIO STATE 9-0
12 AUBURN 9-1
13 GEORGIA TECH 6-4
14 CLEMSON 9-1
15 VIRGINIA TECH 7-3
16 USC 7-3
17 WISCONSIN 7-2
18 BAYLOR 8-0
19 WASHINGTON 6-4
20 TEXAS A&M 8-2
21 MIAMI-FLORIDA 7-2
22 OREGON STATE 6-3
23 HOUSTON 7-2
24 KANSAS STATE 5-4
25 LSU 7-3

Full Rankings

 

 

Week 10 NFL Probabilities

2013-Week-10-Playoff-Probs

Well, that was an interesting week. The Cowboys loss to the Saints paired with the Eagles win over the Packers shook up the playoff races a bit. The Cowboys and Eagles are now almost tied in playoff probability, while the Packers now are behind the Lions. Meanwhile, the Saints win keeps them ahead of the Panthers, who have been charging towards a playoff spot. So, the take home message of last week is “what a bloody mess the NFC East is.”

Speaking of messes how about this race for the sixth AFC spot? It ain’t often that the biggest win comes from not playing, but them Jets and Browns, sitting idle for the bye really, really benefited from an atrocious week from their competitors. The Titans losing to the Jaguars, the Chargers dropping their second straight, and the Dolphins losing to the woeful Buccaneers. The Ravens got a bump from a win over the Bengals, the only question for Baltimore is whether it will be a serious turn around for the Ravens or just a dead cat bounce from all the other sucking going on in the AFC Wild Card race.

In terms of the overall picture, this week was good for people who want to see actual races. As, in terms of the numbers, we went from one real race (NFC North) to two (now the NFC East- Seriously, look at the change in the NFC East graph there!). And by race, I  actually mean divisions where whoever loses will sit out (obviously, the AFC West and NFC South are in play, but the losers will still probably be making the playoffs.) The Eagles/Cowboys, and the Packers/Lions/Bears all could be sitting on keisters come January. Mathematically, the 49ers are also on the bubble, but right now, they’re better off than the rest of those jokers, especially since the Saints represent one of only two winning teams they have on their schedule (the Seahawks, being the other.)

Looking forward to Week 11, Broncos/Chiefs doesn’t really affect the races, only who has a shot at home field advantage (as will their second game in week 13.) With the Cowboys on bye, the Eagles get to play poor, poor Washington and can take the reins in the NFC East. The Packers and Lions both play crappy teams, and if this season has a theme it’s “which team will fall on their face against the much worse team.” The Saints play the Niners while the Panthers play the Pats, so neither has that easy of a game ahead of them. The Jets get the Bills, so they should win, and probably won’t. The Browns play their division leaders, so I assume they’ll lose. The Titans play the Colts, so that won’t be easy either.

So, for the betting public, bet on teams that seem good to lose against the teams that should not win. Unless this week, the teams that should win do win. Then bet that way. Or be extra safe, and bet on both teams. YOU LITERALLY CANNOT LOSE THAT WAY!

Week 9 NFL Playoff Probabilities

2013-Week-9-Playoff-Probs

So the Browns beating the Ravens flipped them behind the Browns, but the big moves came in the AFC East where the saw-tooth Jets have almost caught up with Dolphins (the Dolphins, by dint of the remaining schedule, hold the edge, despite trailing by a half-game… I think half-games are a thing in football. I already miss baseball…). Meanwhile the Chargers really shot themselves in the foot, while the Titans beat the lowly Rams, and towed the line. So it is looking like it’s now Jets/Dolphins/Browns/Titans for the sixth AFC playoff spot.

Meanwhile in the NFC, things are interesting, the Saints and Panthers apparently are trying to making a bit of a race of the NFC South. The NFC North is where the accent is really alive, though, with the Packers, Bears and Lions all sitting at 5-3. The Bears have the toughest schedule of the group (only three crappy teams left on their schedule, with the Ravens, Rams and Vikes. The Packers have four (Giants, Vikings, Steelers, and Falcons) and Lions have five crappy  Steelers, Giants, Vikings, Bucs, and Ravens. The Lions are in a virtual tie with the Packers in our formula, but schedule may suggest that’s who has the edge. Only time will tell.