-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathage.html
executable file
·287 lines (251 loc) · 14 KB
/
age.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml">
<head>
<title>Age - Eyal Shafran</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://eyalshafran.github.io/images/logo.png" rel="icon">
<link rel="canonical" href="https://eyalshafran.github.io/age.html">
<meta name="author" content="Eyal Shafran" />
<meta name="keywords" content="NBA,Age,Win %" />
<meta name="description" content="Are the Celtics too young to win a championship? Are the Cavs too old? In this post I look at historical data to try and figure out the ideal age to win a championship." />
<meta property="og:site_name" content="Eyal Shafran" />
<meta property="og:type" content="article"/>
<meta property="og:title" content="Age"/>
<meta property="og:url" content="https://eyalshafran.github.io/age.html"/>
<meta property="og:description" content="Are the Celtics too young to win a championship? Are the Cavs too old? In this post I look at historical data to try and figure out the ideal age to win a championship."/>
<meta property="article:published_time" content="2018-02-01" />
<meta property="article:section" content="Blog" />
<meta property="article:tag" content="NBA" />
<meta property="article:tag" content="Age" />
<meta property="article:tag" content="Win %" />
<meta property="article:author" content="Eyal Shafran" />
<!-- Bootstrap -->
<link rel="stylesheet" href="https://eyalshafran.github.io/theme/css/bootstrap.flatly.min.css" type="text/css"/>
<link href="https://eyalshafran.github.io/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="https://eyalshafran.github.io/theme/css/pygments/default.css" rel="stylesheet">
<link rel="stylesheet" href="https://eyalshafran.github.io/theme/css/style.css" type="text/css"/>
<link href="https://eyalshafran.github.io/static/css/custom.css" rel="stylesheet">
<link href="https://eyalshafran.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate"
title="Eyal Shafran ATOM Feed"/>
<link href="https://eyalshafran.github.io/feeds/blog.atom.xml" type="application/atom+xml" rel="alternate"
title="Eyal Shafran Blog ATOM Feed"/>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="https://eyalshafran.github.io/" class="navbar-brand">
Eyal Shafran </a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="https://eyalshafran.github.io/pages/about.html">
About
</a></li>
<li class="active">
<a href="https://eyalshafran.github.io/category/blog.html">Blog</a>
</li>
<li >
<a href="https://eyalshafran.github.io/category/code.html">Code</a>
</li>
<li >
<a href="https://eyalshafran.github.io/category/code-deprecated.html">Code - deprecated</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div> <!-- /.navbar -->
<!-- Banner -->
<!-- End Banner -->
<!-- Content Container -->
<div class="container">
<div class="row">
<div class="col-lg-12">
<section id="content">
<article>
<header class="page-header">
<h1>
<a href="https://eyalshafran.github.io/age.html"
rel="bookmark"
title="Permalink to Age">
Age
</a>
</h1>
</header>
<div class="entry-content">
<div class="panel">
<div class="panel-body">
<footer class="post-info">
<span class="label label-default">Date</span>
<span class="published">
<i class="fa fa-calendar"></i><time datetime="2018-02-01T11:59:00-07:00"> Thu 01 February 2018</time>
</span>
<span class="label label-default">By</span>
<a href="https://eyalshafran.github.io/author/eyal-shafran.html"><i class="fa fa-user"></i> Eyal Shafran</a>
<span class="label label-default">Category</span>
<a href="https://eyalshafran.github.io/category/blog.html">Blog</a>
<span class="label label-default">Tags</span>
<a href="https://eyalshafran.github.io/tag/nba.html">NBA</a>
/
<a href="https://eyalshafran.github.io/tag/age.html">Age</a>
/
<a href="https://eyalshafran.github.io/tag/win.html">Win %</a>
</footer><!-- /.post-info --> </div>
</div>
<p><a href="https://www.facebook.com/sportsplotting/">follow my page on facebook</a></p>
<p>I keep hearing about how old the Cavs are. Are they really that old? What about the Celtics? Are they too young to win a championship? Has there ever been a team with such young lineup play so well?</p>
<p>I decided to answer those questions by looking at team's average age since the 1980-81 season. Since I mostly care about the players that actually play I calculated the team age the following way:</p>
<ul>
<li>The team average age is weighted by player's playing minutes. That means that the more a player plays the more they contribute to the average age of the team.</li>
<li>A player's age for a season is calculated by their exact age on Feb. 1st of that season. For example, for the 2017-18 season, the player's ages where calculated by their age today (Feb. 1st, 2018). This date was choosen since it is roughly the middle of the regular season.</li>
</ul>
<p>Are the Cavs really that old? </p>
<h3>10 Oldest teams in the last 40 years:</h3>
<p><img alt="figure 1" src="images/age/old_teams.png"/></p>
<p>They are the 6th oldest team in that timespan. So pretty old. However, most of these old teams were very good teams. </p>
<p>How about the youngest teams?</p>
<h3>10 youngest teams in the last 40 years:</h3>
<p><img alt="figure 2" src="images/age/young_teams.png"/></p>
<p>We can see that most of those teams are bad. The biggest exception are the Thunder in the 2009-10 season with a win % of 61%! </p>
<p>Let's look at the historical data of team's ages and winning %. </p>
<h3>Teams age and winning percentage:</h3>
<p><br/><br/>
<img alt="figure 3" src="images/age/Team_winning_age_summary1.png"/>
<br/><br/></p>
<p>There is a clear trend - older teams have a better winning %. The correlation coefficient is 0.5 which is medium correlation. </p>
<p>This makes sense - older teams are in it to win and younger teams are in rebuild mode. If you are bad, you might as well try to develop the young talent you have on your team. </p>
<p>Let's look at the same figure but this time label some noticeable teams.</p>
<h3>Teams age and winning percentage:</h3>
<p><br/><br/>
<img alt="figure 4" src="images/age/Team_winning_age_summary2.png"/>
<br/><br/></p>
<p>It is clear that really young teams don't win the championship. The closest young team were the Thunder who made it to the finals. </p>
<p>If we look at the age distribution of all the teams vs. champoinship teams we can see a clear difference:</p>
<h3>Teams age distribution</h3>
<p><br/><br/>
<img alt="figure 5" src="images/age/Team_age_dist.png"/>
<br/><br/></p>
<p>So it does seem like the Celtics are too inexperienced to win. If they do win the champoinship this year they would be the youngest team to do so by a fairly large margin. On the other hand, plenty of old teams have one it but only one team with a record sub 60% (1994-95 Rockets). </p>
<p>There are only 11 teams that are under 26 and have managed to finish the regular season with over 60% wins. The Celtics are on pace to be the 12th.</p>
<h3>Young teams with great winning %:</h3>
<p><br/><br/>
<img alt="figure 6" src="images/age/winning_young_teams.png"/>
<br/><br/></p>
<p>The intereseting thing is that none of those teams have won the NBA champoinship in the following years. Most noticeable are the Thunder which managed to be included in this list 3 times with the same core players who just got older. We all know how that ended...</p>
<p>Has the average age in the NBA changed over time?</p>
<h3>Team Ages Over Time</h3>
<p><br/><br/>
<img alt="figure 7" src="images/age/Team_age_time.png"/>
<br/><br/></p>
<p>We can see some small changes over time but the average team age is the same today as it was 40 years ago.</p>
<h3>2017-18 Season:</h3>
<p><br/><br/>
<img alt="figure 8" src="images/age/Team_winning_age.png"/>
<br/><br/></p>
<p>and a bonus figure... Team age vs. pace:
<br/><br/>
<img alt="figure 9" src="images/age/Team_pace_age.png"/>
<br/><br/></p>
<h3>Let me know what you think!</h3>
</div>
<!-- /.entry-content -->
<hr />
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
</div>
<!-- AddThis Button END -->
<hr/>
<section class="comments" id="comments">
<h2>Comments</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'doing-the-dishes'; // required: replace example with your forum shortname
var disqus_config = function () {
this.language = "en";
this.page.identifier = '2018-02-01-age';
this.page.url = 'https://eyalshafran.github.io/age.html';
};
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section>
</article>
</section>
</div>
</div>
</div>
<!-- End Content Container -->
<footer>
<div class="container">
<hr>
<div class="row">
<div class="col-xs-10">© 2020 Eyal Shafran
· Powered by <a href="https://github.com/getpelican/pelican-themes/tree/master/pelican-bootstrap3" target="_blank">pelican-bootstrap3</a>,
<a href="http://docs.getpelican.com/" target="_blank">Pelican</a>,
<a href="http://getbootstrap.com" target="_blank">Bootstrap</a> </div>
<div class="col-xs-2"><p class="pull-right"><i class="fa fa-arrow-up"></i> <a href="#">Back to top</a></p></div>
</div>
</div>
</footer>
<script src="https://eyalshafran.github.io/theme/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://eyalshafran.github.io/theme/js/bootstrap.min.js"></script>
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
<script src="https://eyalshafran.github.io/theme/js/respond.min.js"></script>
<!-- Disqus -->
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'doing-the-dishes'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script');
s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<!-- End Disqus Code -->
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-96573619-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- End Google Analytics Code -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58f04647af3a2863"></script>
</body>
</html>