<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6679568642314413890</id><updated>2012-02-11T16:04:13.650-05:00</updated><category term='baseball'/><category term='technology'/><category term='popular music'/><category term='introduction'/><category term='pitching'/><category term='George Crumb'/><category term='bullpens'/><category term='politics'/><category term='perl'/><category term='coleman'/><category term='graphics'/><category term='save'/><category term='notation'/><category term='music'/><category term='Mariano Rivera'/><category term='padres'/><category term='matsui'/><category term='computers'/><category term='firefox'/><category term='medieval music'/><category term='python'/><category term='analysis'/><category term='unix'/><category term='tempo'/><category term='Trevor Hoffman'/><category term='script'/><category term='statistics'/><category term='Eco'/><category term='writing'/><category term='trecento'/><category term='musicology'/><title type='text'>prolatio</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-7282703824193538215</id><published>2010-12-31T17:55:00.005-05:00</published><updated>2010-12-31T18:16:20.736-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trecento'/><category scheme='http://www.blogger.com/atom/ns#' term='notation'/><category scheme='http://www.blogger.com/atom/ns#' term='medieval music'/><category scheme='http://www.blogger.com/atom/ns#' term='musicology'/><title type='text'>Changing Musical Time in the Renaissance and Today</title><content type='html'>The concepts of time, rhythm, and musical notation have changed dramatically from the Middle Ages to the Present.  Music has slowed dramatically over the past millennium, and composers have repeatedly taken advantage of new resources.  This pre-print of a short paper in honor of Joseph Connors documents this change and shows how it can affect how we think of nearly every piece written from 1100 to today.  It concludes with an in-depth discussion of a piece from a particularly important moment in the history of notation, the lauda, &lt;i&gt;O Regina&lt;/i&gt; from the manuscript Siena, Archivio di Stato, Fondo Vicariato di Gavorrano (1568-69), Ravi 3, giving the first transcription of this work with its unique notation. (&lt;a href="http://www.trecento.com/research/Cuthbert_Changing_musical_time.pdf"&gt;.pdf 600k&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.trecento.com/research/Cuthbert_Changing_musical_time.pdf"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 500px; height: 281px;" src="http://www.trecento.com/research/ravi3_img.jpg" border="0" alt="ravi3 image" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-7282703824193538215?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.trecento.com/research/Cuthbert_Changing_musical_time.pdf' title='Changing Musical Time in the Renaissance and Today'/><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/7282703824193538215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=7282703824193538215' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7282703824193538215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7282703824193538215'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2010/12/changing-musical-time-in-renaissance.html' title='Changing Musical Time in the Renaissance and Today'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-589326755708776070</id><published>2010-04-22T07:03:00.005-04:00</published><updated>2010-04-22T10:16:33.681-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='baseball'/><title type='text'>Managing with no idea about random fluctuations</title><content type='html'>Ah, Jerry Manuel, "manager" of the Mets, is up to it again.  Now he's suggesting that &lt;a href="http://www.nytimes.com/2010/04/22/sports/baseball/22mets.html"&gt;he will bench or move&lt;/a&gt; Jason Bay or David Wright for batting .241 and .240 after 54 and 50 at bats, respectively.  Of course batting .240 after an amazingly huge sample size of 50 at bats definitely proves that you're doing terribly, right?  I mean it's utterly inconceivable that a .280 or .300 batter would go through a 50 at-bat period where they batted that low.&lt;br /&gt;&lt;br /&gt;Okay, enough sarcasm, let's run the statistics for Jason Bay.  Here's a little program in &lt;a href="http://www.python.org"&gt;python&lt;/a&gt; than can do it for us. &lt;br /&gt;&lt;br /&gt;------&lt;br /&gt;&lt;pre&gt;import random&lt;br /&gt;l = 0&lt;br /&gt;for k in range(1000):&lt;br /&gt;    i = 0.0&lt;br /&gt;    for j in range(54):&lt;br /&gt;        if random.random() &lt; .300:&lt;br /&gt;            i += 1.0&lt;br /&gt;    if (i/54) &lt; .241:&lt;br /&gt;        l += 1&lt;br /&gt;print "%2.0f%%" % (l/10.0)&lt;/pre&gt;&lt;br /&gt;------&lt;br /&gt;What do we learn?  It turns out that if Jason Bay were a pure .300 hitter -- that is he had a 30% chance of getting a hit on every at bat, there's a 22% chance that he'd have an average as low as .241 after 54 at bats.  If he were a decent .275 hitter, he'd have 35% chance of having an average that low.  &lt;br /&gt;&lt;br /&gt;The numbers are about the same (or even a bit more disappointing) for Wright, which surprised me.  I would've thought 4 extra at bats would far more than cancel out one point of BA, but it doesn't &lt;b&gt;because the last digit isn't significant yet&lt;/b&gt;!  With 50 at bats, it's impossible for Wright to be slightly better than Bay by batting, say .242, because each hit still represents a BA difference of .020!  If Wright had one more hit, he'd be batting a respectable .260.  If one or two fewer, he'd be at .220 or .200 and probably already traded by the kinds of short-sighted people who get paid millions to run things that they don't understand.  (&lt;i&gt;see:&lt;/i&gt; Management, Mets [or most non-winning teams]).&lt;br /&gt;&lt;br /&gt;The point isn't that Bay and Wright are great hitters going through bad times.  They could have morphed into terrible terrible hitters who are lucky to even be batting the .240 that they have.  The point is that we just don't know yet.  And given the number of millions you're paying them based on prior performance, maybe, just maybe, it makes sense to let them play long enough so we can find out what's actually happening?&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Addendum, 3 hours later: I originally decided to leave out a criticism of the utter stupidity of messing with an approach that is causing Wright to be leading the league in walks (with a .457 OBP), but &lt;/i&gt;nah&lt;i&gt;, they deserve all the criticism they can get. So there you are.&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-589326755708776070?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/589326755708776070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=589326755708776070' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/589326755708776070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/589326755708776070'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2010/04/managing-with-no-idea-about-random.html' title='Managing with no idea about random fluctuations'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-7328199498986144046</id><published>2010-04-15T14:54:00.006-04:00</published><updated>2010-04-15T15:30:01.235-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='notation'/><category scheme='http://www.blogger.com/atom/ns#' term='tempo'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='George Crumb'/><category scheme='http://www.blogger.com/atom/ns#' term='musicology'/><title type='text'>Changing Musical Time Over the Past 1000 Years</title><content type='html'>One of the fundamental changes in the West’s conception of music over the previous millennium was the idea that music’s rhythm and meter could be precisely measured not in terms of seconds or minutes, nor in borrowed notions such as poetic feet, but in purely musical terminology like quarter notes or dotted eighth notes.&lt;sup&gt;[2]&lt;/sup&gt;  This new way of thinking is intimately connected to the rise of musical notation, and in particular, the use of notation to show relationships among two or more coordinated parts.  Pitch needed its own vocabulary even in the era of unwritten music—-organs needed to be built; lyres tuned—-but the necessity of specific terminology for musical rhythm arose only when it was written down.  And while the notation of pitch became largely standardized within the first few centuries of the last millennium to the point where undergraduate music students can (more or less) read pitch from thirteenth-century manuscripts, rhythmic notation remained unsettled much longer.&lt;br /&gt;&lt;br /&gt;Seemingly from the first moment when music became measured (&lt;i&gt;musica mensurata&lt;/i&gt;), it began to slow down.  The earliest measured music, that of Leonin and Perotin, the twelfth and early-thirteenth century composers of Notre Dame, used the figure of the “long” as a basic value, to be paired up and combined into a &lt;i&gt;maxima&lt;/i&gt; or &lt;i&gt;duplex long&lt;/i&gt;, or to be divided into three breves.  By the late thirteenth century, music had slowed to such an extent that the breve became the basic note value, and the semibreve, worth either one-half or one-third the value of the breve, sprang into use.&lt;sup&gt;[2]&lt;/sup&gt;  This word, semibreve, is still the most common name in the British world for the note that in the States is called the whole note.  Because the process of slowing continued unabated, this note is now the longest value in frequent use.  By the fourteenth century, the tempo of music had slowed sufficiently that a note even faster than the semibreve needed to be introduced.  This note came to be called the &lt;i&gt;minima&lt;/i&gt; or minim--still the British word for half note—-signifying that this was to be the minimum, that is, the final, indivisible smallest possible note.  (The debates of the music theorists of the Trecento are echoed in the discussions of modern physics that postulate that time itself may move in &lt;a href="http://en.wikipedia.com/wiki/Planck_Time"&gt;discrete and indivisible &lt;i&gt;minima&lt;/i&gt;&lt;/a&gt;, each lasting about 1/200,000,000,&amp;shy;000,000,&amp;shy;000,000,&amp;shy;000,000,&amp;shy;000,000,&amp;shy;000,000,&amp;shy;000,000th of a second.) But the force of the slowing trend could not be stopped: it was less than fifty years later that the first “semiminim” would appear.  Its name embodies a contradiction, “half of the shortest possible note,” yet though it was an extremely fast note for its time, it eventually became our most basic beat, the quarter note.&lt;br /&gt;&lt;br /&gt;The process of slowing itself slowed slightly during the fifteenth, sixteenth, and seventeenth centuries.  Faster notes continued to be introduced, but the fundamental tempos of music changed little.  There are exceptions, and in some of these cases the slowness of the fundamental beat and the speed of the shortest notes produced dramatic effects: tuplet 128th notes appear in Beethoven’s third piano concerto, 256th notes in a concerto by Vivaldi (F. IV. n. 5), and most exceptionally, 1024th notes (incorrectly notated as 2048th notes) in the little known “Toccata Grande Cromatica” from &lt;i&gt;The Sylviad&lt;/i&gt; by Anthony Phillip Heinrich (ca. 1825), a piece that in its own continual slowing of the fundamental beat is a microcosm of all of the notated music history of the West.&lt;sup&gt;[3]&lt;/sup&gt;  (See Example 1).&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.trecento.com/musical_time/Cuthbert_Example_1.jpg" alt="" /&gt; &lt;br /&gt;&lt;small&gt;Example 1: Anthony Phillip Heinrich, “Toccata Grande Cromatica,” excerpt, with 512th and 1024th notes (incorrectly notated as 1024th and 2048th notes) at the end of the example.&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;Between Perotin and Heinrich, there exists a range of time that is almost incomprehensible to our sense of how music unfolds.  Within a single maxima, there are 1024 128th notes, and, as we have seen, even longer and shorter notes have occasionally been used.  Example 2 shows (on a logarithmic scale) the amount of time various notes would take if they were all played at the same &lt;i&gt;adagio&lt;/i&gt; tempo of one quarter note per second.  Obviously it is absurd to use the entire range of note values in a single piece at a single tempo mark.  In fact the pieces using the shortest notes tend to have the slowest tempos, and the contrary is true for pieces with the longest notes.  But Figure 1 demonstrates the enormous pull towards expanding the range of rhythmic resources that composers have felt over the centuries.&lt;br /&gt; &lt;br /&gt;&lt;img src="http://www.trecento.com/musical_time/Cuthbert_Figure_1.jpg" alt="" /&gt;&lt;br /&gt;&lt;small&gt;Figure 1: Lengths of different note values at M.M. qtr. = 60.&lt;br /&gt;(with actual CD frequency and Ring lengths for reference)&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;In contemporary art music, composers have played with all extremes of lengths, but the most significant innovations in notation have come, as they did in the Middle Ages and Renaissance, in the notation of the most fleeting notes.&lt;sup&gt;[4]&lt;/sup&gt;   One of the most interesting case studies in the continuation of the medieval tradition of shorter notes comes in the American composer George Crumb’s string quartet &lt;i&gt;Black Angels&lt;/i&gt; (1970), where, in the excerpt shown in Example 2, he uses a time signature of 7/128 in measure 2--written with the denominator as a note--along with the almost as equally unusual 7/64 with each note receiving an equal accent, thus providing the shortest non-compound meter ever published.  &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.trecento.com/musical_time/Cuthbert_Example_2.jpg" alt="" /&gt;&lt;br /&gt;&lt;small&gt;Example 2: Unusually short beat values in George Crumb’s &lt;i&gt;Black Angels&lt;/i&gt;.&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;Other unusual and brief meters appear occasionally in modern music.  Karlheinz Stockhausen’s 1956 composition &lt;i&gt;Zeitmaße&lt;/i&gt; uses meters that are nearly as short as Crumb’s, such as 2/32.  Composers allied with the New Complexity school, including Brian Ferneyhough and Thomas Adès, have used meters such as 5/6 and 2/10 that allow “tuplet” values (in these cases, triplets and quintuplets) to be fundamental and independent units.  Finally, though multiple simultaneous meters were used in the works of both Bach and Mozart, the metrical experiments of Conlon Nancarrow use multiple meters in ways that particularly stretch the definition of meter.  His &lt;i&gt;“Transcendental” Etude&lt;/i&gt; contrasts two canonic lines whose rhythms are in the ratio of the transcendental irrational numbers &lt;i&gt;e&lt;/i&gt; to π. &lt;br /&gt;&lt;br /&gt;I am particularly interested in these unusual ways of specifying beat and meter in today’s music because the same spirit of experimentation was at work throughout the Italian &lt;i&gt;ars nova&lt;/i&gt;.   The feeling that the resources of the past were insufficient to express the creative metrical impulses of the present dominated musical thought in the late Trecento and early Quattrocento.  Over the next few blog posts I hope to show how.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Endnotes&lt;/h3&gt;&lt;br /&gt;&lt;sup&gt;[1]&lt;/sup&gt; This post is adapted from part of an article "Changing Musical Time at&lt;br /&gt;the Beginning of the Renaissance (and Today)" to be published by L. Olschki in an as-yet-unannounced surprise &lt;a href="http://en.wikipedia.edu/wiki/Festschrift"&gt;&lt;i&gt;Festschrift&lt;/i&gt;&lt;/a&gt; in 2011.&lt;br /&gt;&lt;br /&gt;&lt;sup&gt;[2]&lt;/sup&gt; On attempts to measure the slowing of medieval musical time in terms of clock time, see Marco Gozzi, “New Light on Italian Trecento Notation, part 1”, &lt;i&gt;Recercare&lt;/i&gt; 13 (2001), pp. 5–78.&lt;br /&gt;&lt;br /&gt;&lt;sup&gt;[3]&lt;/sup&gt; The source for these (and many other) extremes of musical notation is  &lt;a href="http://www.informatics.indiana.edu/donbyrd/CMNExtremes.htm"&gt;Donald Byrd’s excellent on-line resource&lt;/a&gt;.  I thank him for many stimulating conversations on this topic.  The score of Example 1 has been republished recently as Anthony Phillip Heinrich, &lt;i&gt;The Sylviad, or, Minstrelsy of Nature in the Wilds of North America: opus 3&lt;/i&gt;, intr. J. Bunker Clark, Greenleaf, Wis. 1996.  The term chromatic in the title of the piece refers not to notes out of the key, but to the amount of ink (or color) needed to express the short notes in the work.&lt;br /&gt;&lt;br /&gt;&lt;sup&gt;[4]&lt;/sup&gt; On recent uses of extremely long durations in recent music see Alex Rehding, “The Discovery of Slowness in Music,” forthcoming.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-7328199498986144046?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/7328199498986144046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=7328199498986144046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7328199498986144046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7328199498986144046'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2010/04/changing-musical-time-over-past-1000.html' title='Changing Musical Time Over the Past 1000 Years'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-6331634212312593653</id><published>2010-03-31T03:46:00.003-04:00</published><updated>2010-04-15T15:32:45.288-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='technology'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='medieval music'/><category scheme='http://www.blogger.com/atom/ns#' term='musicology'/><title type='text'>Cantus scriptus: Technologies of Medieval Song</title><content type='html'>&lt;table&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;img src="http://www.trecento.com/2010/Guidonian-Hand.jpg" alt="guidonian hand" align="left" style="padding-right: 10px"&gt;&lt;/td&gt;&lt;td valign="top"&gt;A two-day conference at University of Pennsylvania, November 19-20, 2010 will explore technology and medieval notation, both medieval notation as a technology in itself and new technologies used to study medieval musical manuscripts. I will be presenting on digital restorations, "bad" facsimiles (photos designed not to convey the look of the original, but instead facilitate further study), and how statistical models can help us estimate the number of French pieces of the late Middle Ages that once existed but now are lost.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-6331634212312593653?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.library.upenn.edu/exhibits/lectures/ljs_symposium3.html' title='Cantus scriptus: Technologies of Medieval Song'/><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/6331634212312593653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=6331634212312593653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/6331634212312593653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/6331634212312593653'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2010/03/cantus-scriptus-technologies-of.html' title='Cantus scriptus: Technologies of Medieval Song'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-2328909649524663430</id><published>2009-12-26T18:04:00.003-05:00</published><updated>2009-12-26T18:10:53.466-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='computers'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><title type='text'>Separating out Music Informatics topics</title><content type='html'>Hi all -- just wanted to mention that I've separated out the Music Informatics topics in a separate blog at http://music21-mit.blogspot.com/ .  I suspect that this blog will mainly be about other musical and non-musical topics.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-2328909649524663430?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://music21-mit.blogspot.com/' title='Separating out Music Informatics topics'/><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/2328909649524663430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=2328909649524663430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/2328909649524663430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/2328909649524663430'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2009/12/separating-out-music-informatics-topics.html' title='Separating out Music Informatics topics'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-7831011326932309433</id><published>2009-05-06T23:01:00.002-04:00</published><updated>2009-05-06T23:49:23.361-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='computers'/><category scheme='http://www.blogger.com/atom/ns#' term='writing'/><title type='text'>Put figures etc. in MS Word without the "Figure" tag</title><content type='html'>One of the annoying things (at least for me) about Microsoft Word is that it wants all your figure numbers to have "Figure" prepended to them.  It's all great if you always say "Figure 1" or "Figure 2" but it doesn't work if you like to say things such as "As we see in Figures 1 &amp; 2" and not "As we see in Figure 1 and Figure 2."  Furthermore, Word doesn't work well with things such as "Figure 4.12" or, my favorite, having Figure 1 followed by Example 2 followed by Table 3 -- I'm big into continuous numbering.&lt;br /&gt;&lt;br /&gt;So here's what I finally came up with as a solution.  Type whatever preface you want to appear in the caption of the document ("Figure ") and then run this macro and give your figure a short name with no spaces ("voiceRangesDunstaple" for instance), then two numbers will appear.  Leave the first alone; It'll put a number after "Figure" ("Figure 12" for instance).  Copy and cut the second number and then paste it in your text somewhere -- it's the reference number to the figure ("See figure 12" -- I like lowercase figure references).  You can paste this number multiple places if you need multiple references.  And a quick "Ctrl-A, F9" will update all the tables.&lt;br /&gt;&lt;br /&gt;You'll need to give this macro a keyboard shortcut if you use it often.&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;Sub MakeFieldCrossRef()&lt;br /&gt;'&lt;br /&gt;' Macro recorded 3/25/2006 by Myke&lt;br /&gt;'&lt;br /&gt;    Dim Message, Title, Default, macroName&lt;br /&gt;    Message = "Enter a short, unique name for the Xref (no spaces!)"&lt;br /&gt;    Title = "Create Crossref"&lt;br /&gt;    Default = ""&lt;br /&gt;    macroName = InputBox(Message, Title, Default)&lt;br /&gt;    Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _&lt;br /&gt;        "AUTONUMLGL \e", PreserveFormatting:=False&lt;br /&gt;    Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend&lt;br /&gt;    With ActiveDocument.Bookmarks&lt;br /&gt;        .Add Range:=Selection.Range, Name:=macroName&lt;br /&gt;        .DefaultSorting = wdSortByName&lt;br /&gt;        .ShowHidden = False&lt;br /&gt;    End With&lt;br /&gt;    Selection.MoveRight Unit:=wdCharacter, Count:=1&lt;br /&gt;    Selection.InsertCrossReference ReferenceType:="Bookmark", ReferenceKind:= _&lt;br /&gt;        wdContentText, ReferenceItem:=macroName, InsertAsHyperlink:=False, _&lt;br /&gt;        IncludePosition:=False&lt;br /&gt;    Call UpdateAllDocFields&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-7831011326932309433?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/7831011326932309433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=7831011326932309433' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7831011326932309433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7831011326932309433'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2009/05/put-figures-etc-in-ms-word-without.html' title='Put figures etc. in MS Word without the &quot;Figure&quot; tag'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-7997351921079375418</id><published>2008-12-29T06:10:00.013-05:00</published><updated>2009-09-27T07:51:20.450-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='popular music'/><title type='text'>Pachelbel lives on.</title><content type='html'>Great recent song by The Fratellis on their 2006 album &lt;span style="font-style:italic;"&gt;Costello Music&lt;/span&gt;, "Ole Black 'N' Blue Eyes."  The video seems not to have any connection to any plausible interpretation of the lyrics for me; I'd suggest ignoring it and just listening: (&lt;a href="http://www.youtube.com/watch?v=ZI8tWu0blzg"&gt;click here&lt;/a&gt;&lt;)&lt;br /&gt;&lt;br /&gt;The first thing that jumped out at me was how closely the progression of the song mirrored the Pachelbel Canon in D's ground bass (though transposed to B-flat):&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.trecento.com/blog/uploaded_images/circle5ths_pachelbel-752059.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 92px;" src="http://www.trecento.com/blog/uploaded_images/circle5ths_pachelbel-752053.png" border="0" alt="" /&gt;&lt;/a&gt; (Not sure if the right hand part matches the actual guitar parts used in the piece, but they're close enough for illustrative purposes).&lt;br /&gt;&lt;br /&gt;But better than seeing similarities, I thought a little remix of the opening minute or so would show &lt;a href="http://web.mit.edu/cuthbert/www/prolatio_music/Fratellis_Pachelbel_Ole_Black_N_Blue_Canon.mp3"&gt;just how compatible the two pieces were&lt;/a&gt;.  Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;embed src="http://www.edublogs.tv/addons/audio/player/player.swf" quality="high" width="290" height="24" name="mp3player" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="width=290&amp;height=24&amp;autostart=no&amp;bg=0x000000&amp;leftbg=0xFFBF00&amp;border=0xFFBF00&amp;text=0x333333&amp;soundFile=http://www.edublogs.tv/uploads/audio/BxgCAJQAlxPsEbQCVGtk.mp3"&gt;&lt;/embed&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-7997351921079375418?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='audio/mpeg' href='http://web.mit.edu/cuthbert/www/prolatio_music/Fratellis_Pachelbel_Ole_Black_N_Blue_Canon.mp3' length='0'/><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/7997351921079375418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=7997351921079375418' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7997351921079375418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7997351921079375418'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/12/pachelbel-lives-on.html' title='Pachelbel lives on.'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-7514094519277173612</id><published>2008-10-05T20:02:00.002-04:00</published><updated>2008-10-05T20:16:03.644-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><title type='text'>Overwrite IE Favorites with Firefox Bookmarks</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.trecento.com/blog/uploaded_images/new_favorites-738210.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://www.trecento.com/blog/uploaded_images/new_favorites-738190.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;I love Firefox, but on Windows IE has one big advantage over it: it's made by the same people who made the OS.  This lets IE access its favorites from all sorts of places, not just from the browser.  I'm a task-oriented person rather than application-oriented: I tend to think "Gotta pay the bills now" not "Gotta open up the browser and then do things that require a browser, such as bill pay."  IE 4.0+ (and Windows98) was oriented towards people like me, by putting the Favorites option in the start menu, every folder, etc.  It never really caught on, and in fact the Favorites option was quietly removed from the start menu in either XP or Vista, though it can be re-enabled from the taskbar options.&lt;br /&gt;&lt;br /&gt;There are a couple of ways to get your Firefox bookmarks in the Favorites.  There are lots of bookmark synchronization programs, though they tend to need to be run manually--which is messy for me.  There's also the PlainOlFavorites plug-in for Firefox which lets you just use IE favorites instead of Bookmarks.  I loved this plug in for a few years, but I like FF's native Bookmark system enough that I wanted to make my own synchronization system.&lt;br /&gt;&lt;br /&gt;Here's a little Python script I came up with.  It copies YESTERDAY's Firefox backup over your Favorites (copying the current version would just have been too messy).  It requires Python 2.6 or you'll need to install the "simplejson" module and replace all references to "json" with "simplejson" in the code.  Do not run this if you use IE favorites: it will DELETE THEM ALL and overwrite them with Firefox favorites.  You can comment out the "nukeFavorites()" line if you just want to add to your existing IE favorites.  I plop this script into my Startup folder and it works great!&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# bookmarks_json.py -- Michael Scott Cuthbert&lt;br /&gt;import json&lt;br /&gt;import copy&lt;br /&gt;import sys&lt;br /&gt;import os&lt;br /&gt;import shutil&lt;br /&gt;&lt;br /&gt;class BookmarkMaker(object):&lt;br /&gt;    &lt;br /&gt;    startdir = os.environ["USERPROFILE"] + r'\Favorites'&lt;br /&gt;    internetShortcut = "[InternetShortcut]\nURL="&lt;br /&gt;&lt;br /&gt;    folderpath = os.environ["APPDATA"] + "\\Mozilla\\Firefox\\Profiles\\"&lt;br /&gt;    backuppath = r'\bookmarkbackups'&lt;br /&gt;    &lt;br /&gt;    def nukeFavorites(self):&lt;br /&gt;        '''deletes everything in the Favorites dir -- do not use this if you update Favorites!'''&lt;br /&gt;        nukeem = os.listdir(self.startdir)&lt;br /&gt;        for thisfile in nukeem:&lt;br /&gt;            if thisfile != "desktop.ini":&lt;br /&gt;                thisFullFile = self.startdir + os.sep + thisfile&lt;br /&gt;                try:&lt;br /&gt;                    os.remove(thisFullFile)&lt;br /&gt;                except OSError:&lt;br /&gt;                    shutil.rmtree(thisFullFile)&lt;br /&gt;&lt;br /&gt;    def run(self):&lt;br /&gt;        stringFile = self.openRightFile()&lt;br /&gt;        self.parse(stringFile)&lt;br /&gt;    &lt;br /&gt;    def openRightFile(self):&lt;br /&gt;        backupPath = self.backupPath()&lt;br /&gt;        theseFiles = os.listdir(backupPath);&lt;br /&gt;        theseFiles.sort(reverse=True)&lt;br /&gt;        for thisFile in theseFiles:&lt;br /&gt;            if thisFile.startswith('bookmarks-') and thisFile.endswith('.json'):&lt;br /&gt;                return self.openJson(backupPath + os.sep + thisFile)&lt;br /&gt;&lt;br /&gt;    def backupPath(self):&lt;br /&gt;        profile = self.mostRecentProfile(self.folderpath)&lt;br /&gt;        return profile + self.backuppath&lt;br /&gt;    &lt;br /&gt;    def mostRecentProfile(self, profilesPath):&lt;br /&gt;        '''returns the most recently modified Profile in the profilesPath'''&lt;br /&gt;        newestName = ""&lt;br /&gt;        newestTime = 0&lt;br /&gt;        &lt;br /&gt;        allDirs = os.listdir(profilesPath)&lt;br /&gt;        for thisDir in allDirs:&lt;br /&gt;            thisFullPath = profilesPath + os.sep + thisDir&lt;br /&gt;            try:&lt;br /&gt;                thisModTime = os.path.getmtime(thisFullPath + os.sep + "places.sqlite")&lt;br /&gt;                if thisModTime &gt; newestTime:&lt;br /&gt;                    newestTime = thisModTime&lt;br /&gt;                    newestName = thisFullPath&lt;br /&gt;            except:&lt;br /&gt;                pass&lt;br /&gt;        return newestName&lt;br /&gt;&lt;br /&gt;    def openJson(self, jsonFile):&lt;br /&gt;        try:&lt;br /&gt;            myfile = open(jsonFile) #folderpath + '\\' + bookmarkfile)&lt;br /&gt;        except:&lt;br /&gt;            raise Exception("Could not open file " + jsonFile)&lt;br /&gt;        return myfile.read()&lt;br /&gt;  &lt;br /&gt;    def parse(self, stringData):&lt;br /&gt;        self.jsonStuff = json.loads(stringData)&lt;br /&gt;        self.realBase = self.findRealBase(self.jsonStuff)&lt;br /&gt;        self.parseReally(self.realBase)&lt;br /&gt;        &lt;br /&gt;    def findRealBase(self, searchIn):&lt;br /&gt;        return searchIn["children"][0]["children"]            &lt;br /&gt;&lt;br /&gt;    def parseReally(self, startingPoint, currentDir = []):&lt;br /&gt;        for thing in startingPoint:&lt;br /&gt;            if thing.has_key("children"):  ## Bookmark folder&lt;br /&gt;                tempdir = copy.copy(currentDir)&lt;br /&gt;                tempdir.append(thing["title"])&lt;br /&gt;                self.parseReally(thing["children"], tempdir)&lt;br /&gt;            elif thing.has_key("uri"):  ## Bookmark&lt;br /&gt;                self.createFavorite(thing["uri"], os.sep.join(currentDir) + os.sep + thing["title"] + ".url")&lt;br /&gt;    &lt;br /&gt;    def createFavorite(self, uri, filename):&lt;br /&gt;        shortcutOut = self.internetShortcut + uri&lt;br /&gt;        if not(filename.startswith(os.sep)):&lt;br /&gt;            filename = os.sep + filename&lt;br /&gt;        filename = self.startdir + filename&lt;br /&gt;        try:&lt;br /&gt;            self.recursiveMakeDir(filename)&lt;br /&gt;            filehandle = open(filename, "w")&lt;br /&gt;            filehandle.write(shortcutOut)&lt;br /&gt;        except:&lt;br /&gt;            pass&lt;br /&gt;&lt;br /&gt;    def recursiveMakeDir(self, filename):&lt;br /&gt;        if filename.count(os.sep) &gt; 12:&lt;br /&gt;            raise Exception("Whoa, you sure you want to go so deep and make " + filename + "?")&lt;br /&gt;            &lt;br /&gt;        parentDir = os.path.dirname(filename)&lt;br /&gt;        if os.path.exists(parentDir):&lt;br /&gt;            return True&lt;br /&gt;        else:&lt;br /&gt;            self.recursiveMakeDir(parentDir)&lt;br /&gt;            os.mkdir(parentDir)&lt;br /&gt;&lt;br /&gt;if (__name__ == "__main__"):&lt;br /&gt;    bmm = BookmarkMaker()&lt;br /&gt;    bmm.nukeFavorites()&lt;br /&gt;    bmm.run()&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-7514094519277173612?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/7514094519277173612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=7514094519277173612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7514094519277173612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/7514094519277173612'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/10/overwrite-ie-favorites-with-firefox.html' title='Overwrite IE Favorites with Firefox Bookmarks'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-4704385534723849220</id><published>2008-09-20T18:43:00.005-04:00</published><updated>2008-09-21T11:16:58.190-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><category scheme='http://www.blogger.com/atom/ns#' term='script'/><title type='text'>New mail script</title><content type='html'>I used to use this little program called "nfrm" (or frm -n) to tell me on log in to a unix system if I had new mail.  Unfortunately what worked in the past no longer was keeping accurate lists in the world where I was also checking my mail via IMAP and the iPhone, where there's a lot of mail I've been informed (in some way) about, but have never actually read.&lt;br /&gt;&lt;br /&gt;Here's a quick Perl script that I wrote which checks three folders (my inbox, a work-related box, and mailing lists) for new messages.  It requires Mail::MboxParser (install via "cpan" then "install Mail::MboxParser" or have your sysadmin do it for you):&lt;br /&gt;&lt;pre style="font-size: 10px"&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;use Mail::MboxParser;&lt;br /&gt;use Term::ReadKey;&lt;br /&gt;use strict;&lt;br /&gt;&lt;br /&gt;my ($wchar, $hchar, $wpixels, $hpixels) = GetTerminalSize();&lt;br /&gt;my $available_space = $wchar - 13;&lt;br /&gt;my $from_length    = int($available_space * .33);&lt;br /&gt;my $subject_length = int($available_space * .67);&lt;br /&gt;&lt;br /&gt;my @mailboxes = @ARGV;&lt;br /&gt;if (scalar(@mailboxes) == 0) {&lt;br /&gt;   @mailboxes = (["**** ", $ENV{'MAIL'}],&lt;br /&gt;                 ["NBER ", "/homes/nber/cuthbert/mail/nber"],&lt;br /&gt;                 ["Lists", "/homes/nber/cuthbert/mail/lists"]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;my $parseropts = {&lt;br /&gt;        enable_cache    =&gt; 1,&lt;br /&gt;        enable_grep     =&gt; 1,&lt;br /&gt;        cache_file_name =&gt; '/tmp/msc-mbox-cache-file',&lt;br /&gt;      };&lt;br /&gt;&lt;br /&gt;foreach my $box (@mailboxes) {&lt;br /&gt;  next unless -e $box-&gt;[1];&lt;br /&gt;  my $mb = Mail::MboxParser-&gt;new($box-&gt;[1],&lt;br /&gt;                                 decode     =&gt; 'ALL',&lt;br /&gt;                                 parseropts =&gt; $parseropts);&lt;br /&gt;  while (my $msg = $mb-&gt;next_message) {&lt;br /&gt;    if ($msg-&gt;header-&gt;{status} !~ /R/) {&lt;br /&gt;      my $name = $msg-&gt;from-&gt;{name};&lt;br /&gt;      if (!$name) { $name = $msg-&gt;from-&gt;{email} }&lt;br /&gt;      $name =~ s/\"//g;&lt;br /&gt;      $name =~ s/^\s+//;&lt;br /&gt;      $name = substr($name, 0, $from_length);&lt;br /&gt;&lt;br /&gt;      my $subject = $msg-&gt;header-&gt;{subject};&lt;br /&gt;      $subject = substr($subject, 0, $subject_length);&lt;br /&gt;&lt;br /&gt;      printf("%-8s  %-${from_length}s  %-${subject_length}s\n", $box-&gt;[0], $name, $subject);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-4704385534723849220?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/4704385534723849220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=4704385534723849220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/4704385534723849220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/4704385534723849220'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/09/new-mail-script.html' title='New mail script'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-4576449188544548588</id><published>2008-09-14T21:06:00.014-04:00</published><updated>2008-09-20T18:58:48.870-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='politics'/><title type='text'>Sexist ol' folks! (maybe not so much)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://graphics8.nytimes.com/images/2008/09/14/magazine/14wwln-lede.graphic.190.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="http://graphics8.nytimes.com/images/2008/09/14/magazine/14wwln-lede.graphic.190.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;I was reading &lt;a href="http://www.nytimes.com/2008/09/14/magazine/14wwln-lede-t.html"&gt;Matt Bai's most recent post on the presidential campaign&lt;/a&gt;; not as good as his usual missives, but still basically entertaining (and informative I didn't realize he was white; I guess I assumed Bai as an Asain name).  But I focused mainly on &lt;a href="http://www.nytimes.com/imagepages/2008/09/14/magazine/14wwln-lede.graphic.ready.html"&gt;a graphic that the New York Times placed in a sidebar&lt;/a&gt; showing the percentage of Americans who believe that a woman will be elected president during their lifetimes.  Another statistical graphic without any exegesis; when will the Times learn?  Based on the main gist of the article, I suppose we are to conclude that younger people are more open to the idea of a female president, and, therefore, more likely to conclude that a woman will be elected.  Of the under-45 voters who expressed an opinion (95%),  17% believed that a woman would not be elected in their lifetimes.  On the other hand, of the over-65 voters with an opinion (83%), 47% believed that no woman would be elected while they lived.&lt;br /&gt;&lt;br /&gt;But the young have something more important than open-mindedness that accounts for the statistical difference: life expectancy.  Simply put, the under 45 voting crowd will witness many more elections, and, therefore many more chances of electing a female president.  Let's plot this out.  Given a probability &lt;i&gt;X&lt;/i&gt; of a woman being elected in any election, the probability that a woman would NOT be elected after &lt;i&gt;N&lt;/i&gt; elections (or 4&lt;i&gt;N&lt;/i&gt; years) is:&lt;br /&gt;&lt;code style="align: center"&gt;(1-&lt;i&gt;X&lt;/i&gt;)^&lt;i&gt;N&lt;/i&gt;&lt;/code&gt;&lt;br /&gt;The following chart gives the probability that a woman would not be elected given various values for X (left column) and N (top row):&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.trecento.com/blog/uploaded_images/women_election-723919.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://www.trecento.com/blog/uploaded_images/women_election-723919.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let's say that an "Under 45 voter" is 35 (a mean of 18-45 weighed toward the fact that younger people vote in lower percentages) and let's call an "Over 65 voter" 70 years old.  It's obvious that a woman will not be elected president this year, so we'll say that the 70 year olds have, on average 3.5 more elections in their lifetime  where a woman could be elected (I'm giving a them more longevity than you'd expect since there is some probability that McCain will be elected and die in his first term, giving a Mrs. President Palin.  Though this poll was taken in June, after Hillary had dropped out but before McCain's choice of a female VP seemed likely).  The 35-year-old voter has, on average, 10 more elections (I'm giving them a few fewer years on average to live because a 35 year old hasn't proved they won't die before 70).  And we'll define "likely to become president" the standard way: over 50% chance.  That is, if the voter thinking that it was likely had to bet with even odds, he or she would bet for a woman president being elected.&lt;br /&gt;&lt;br /&gt;What can we extrapolate from the chart and formula?  If a (rational) 35-year-old voter said that he thought it likely for a woman to be elected, he would need to believe that a woman has over a 7% chance of being elected in any given election, while a 70-year-old voter needs to believe that there's an 18% chance of a woman being elected.&lt;br /&gt;&lt;br /&gt;A quick-and-dirty way of extrapolating from the results of the poll to the table is to say if 25% of people believe X is likely, we should look at the point in the table where X is 25% likely to happen.  (There are better ways depending on what distribution of beliefs you think voters have, but this should work well enough for now).  So since 47% of over-65 voters don't believe a woman will be elected in the next 3.5 elections, we can suppose that they believe women have a 20% chance of being elected any given election.&lt;br /&gt;&lt;br /&gt;What about the younger crowds?  17% of the under-45 crowd believe that after the next 10 elections we still won't have a woman president.  That works out to belief in a 16% chance of a woman being elected president any given election.  So if anything, the young are less optimistic of women's chances of breaking that ultimate glass ceiling than older voters are.&lt;br /&gt;&lt;br /&gt;What CBS (the poll takers) should have done is removed a variable by asking, "Do you think it is likely that a woman will be elected president in the next 30 years?" so that all their respondents were thinking along the same time frame.  The woman vs. men answer (an apparent +5% optimism gap toward women) is similarly skewed by age and probably underestimates women's optimism about the topic.  Since women live longer, they probably disproportionately make up the (more optimistic) over-65 audience.  In fact, we may be able to explain the entire age difference in this response by the gender differences and women's propensity to live longer.&lt;br /&gt;&lt;br /&gt;(I realize now that I have used the word "optimism" throughout this article, assuming, dear readers, that like me you'd view the possibility of a female president as a good thing.  If for some reason you disagree, please comment with your reasons.  Oh and the graphic's title should have been &lt;span style="font-weight:bold;"&gt;Madam&lt;/span&gt; President.  No one said that the female president needed to be married.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-4576449188544548588?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/4576449188544548588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=4576449188544548588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/4576449188544548588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/4576449188544548588'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/09/sexist-ol-folks-maybe-not-so-much.html' title='Sexist ol&apos; folks! (maybe not so much)'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-3690233894389446205</id><published>2008-08-06T22:49:00.005-04:00</published><updated>2008-08-07T00:03:21.443-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='Mariano Rivera'/><category scheme='http://www.blogger.com/atom/ns#' term='Trevor Hoffman'/><category scheme='http://www.blogger.com/atom/ns#' term='save'/><category scheme='http://www.blogger.com/atom/ns#' term='baseball'/><title type='text'>Adjusted ERA+ and leaders</title><content type='html'>The most important stat for determining the quality a pitcher (at least over the course of a career) is ERA.  There's really no argument that can be made against it.  Wins are far too dependent on how the rest of the team (i.e., batters) do; strikeouts certainly show domination, and career strikeout numbers show longevity as well.  But in terms of doing his job, preventing runs, career ERA is the single number that shows how well this was accomplished.  (Okay, perhaps ERA over a 5-10 year peak period might be better, to not diminish the careers of those who choose to keep playing into their "worse than average but far better than replacement" years).  The main problems with ERA are that it does not adjust for ballparks, leagues, mound heights, steroid usage of batters, or other factors that changed over the years.&lt;br /&gt;&lt;br /&gt;Fortunately, the concept of adjusted ERA takes care of all this.  And adjusted ERA+ makes reading adjusted ERA even easier.  An aERA+ of 125 roughly means an ERA 25% lower than the league, adjusting for park effects etc. (okay, actually it's 20% lower; since an aERA+ of 200 means an ERA 50% of that of the league).  An aERA+ of 125 also means you're likely to need to prepare a speech for Cooperstown.  The vast majority of pitchers above 125 and almost all eligible starters above 130 are in the Hall.  &lt;br /&gt;&lt;br /&gt;For a long time, there was a big gap between aERA+ #1 and #2, with Pedro Martinez's 160 towering over Lefty Grove's 148.  This disappointing season has lowered Pedro to a mere 157, but it would take more than a few years of (relative) mediocrity to drop him below Grove or Walter Johnson.  (Next on the list, for those curious, is Dan Quisenberry which is probably the best Hall of Fame case for Quisenberry that could ever be made).&lt;br /&gt;&lt;br /&gt;But why bring all this up now?  Because despite Martinez's struggles, there's now (as of last week) a much bigger gap between #1 and #2:&lt;br /&gt;&lt;pre&gt;  1.  Mariano Rivera   197&lt;br /&gt;  2.  Pedro Martinez   157&lt;/pre&gt;&lt;br /&gt;What happened?  Rivera pitched his 1000th inning last week, making him eligible for career ERA awards.  Perhaps the IP requirement should be raised so that the list isn't dominated by closers.  But maybe that's not necessary.  With the development of the minor-league (or even high school) relief specialist, fewer and fewer will reach this plateau with each passing year.  Bochy and Bud Black's cautious use of Trevor Hoffman since he returned from surgery six years ago has kept him from breaking the 1000 IP mark.  As of this evening, he's 22 IP short.  Since he's been averaging .35 IP per game over the past four seasons, he's likely to end the season (and possibly his career? the fan in me hopes not) about five innings short.  His aERA+ of 145 would place him 9th or 10th all time.  Prior to this disastrous season, he would have been third.&lt;br /&gt;&lt;br /&gt;(For the complete list, see &lt;a href="http://www.baseball-reference.com/leaders/ERAplus_career.shtml"&gt;Baseball-Reference.com&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;The only other reliever on the ERA title horizon is Billy Wagner, whose aERA+ of 180 would place him comfortably in second, though still at a great distance below Rivera.    However with only 819 IP, he will likely need three more seasons to qualify.  And anything could happen by then.  Troy Percival, with an aERA+ of 151 but only 687 IP, averaging fewer than 50IP/year at age 38, seems highly unlikely to qualify.&lt;br /&gt;&lt;br /&gt;Of the other active high saves players, Roberto Hernandez already qualifies at 131; a Hall of Fame number for a starter, but unlikely to get a notice for a reliever with "only" 326 saves.  Jose Mesa is what we always thought him to be, exactly an average pitcher (aERA+ of 100), and thus probably a below average reliever.  Todd Jones is a little better, but nothing to write to Cooperstown about.  Ditto Jason Isringhausen, 100IP short; though kudos to him for having such dreadful recent performances that his manager is bringing back the (great) idea of a closer by committee.&lt;br /&gt;&lt;br /&gt;And as far as the brilliant young closers of today.  Yes, very exciting.  Yes, I know Papelbon has an aERA+ of 269(!); K-Rod at 186; Nathan at 152; Lidge at 147.  But for an article on a stat that requires 1000 IP, please ring again when there's just a few hundred innings left to go.  Why so pessimistic?  Robb Nen, John Wettland, Randy Meyers, Tom Henke, Jeff Montgomery, Rod Beck, Ugueth Urbina, and (ah heck, throw in the newest member of the fraternity) Eric Gagne.  If these names mean something to you, you'll understand.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-3690233894389446205?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/3690233894389446205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=3690233894389446205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/3690233894389446205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/3690233894389446205'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/08/adjusted-era-and-leaders.html' title='Adjusted ERA+ and leaders'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-822456254442724174</id><published>2008-08-04T11:55:00.003-04:00</published><updated>2008-08-04T14:28:26.677-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='save'/><category scheme='http://www.blogger.com/atom/ns#' term='baseball'/><title type='text'>Hate the stat, love the statter</title><content type='html'>I spent part of the last week of July reading the various, mostly extremely short, obits of Jerome Holtzman, sportswriter extraordinaire (and the Chicago cubs follower who did not incite the city of Sandy Eggo to riot by calling the selling of Sushi and the installation of baby-changing stations in Men's rooms at S.D.'s ballpark "the beginning of the decline of America." q.v., one M. Royko).  Throughout all the obits, the discussion centered on Holtzman's invention of the "save" as baseball statistic.&lt;br /&gt;(&lt;a href="http://www.nytimes.com/2008/07/22/sports/baseball/22holtzman.html"&gt;N.Y. Times obit.&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;What puzzled me the most is, with the notable exception of &lt;a href="http://www.hardballtimes.com/main/article/the-closer-and-the-damage-done/"&gt;The Hardball Times&lt;/a&gt;, how often commentators were blasting Holtzman for what a bad statistic the save is.  To be sure, it is a bad statistic: it rewards (in the end, financially) players for participating in one facet of the game that has never been shown to be more significant than several others.  It gives the same benefit to pitchers who bail their team out of the toughest of all situations as to closers who record a few outs with a pretty sizable lead.  But consider again what the save replaced: a world where relief pitching had no worth on paper (and in a world where the "Win", another terrible stat, was even more important).  Also consider what it meant in the early 60s to introduce a new stat into the world.  Computing saves retroactively for every baseball player was not as simple as a few lines of Perl and a download from retrosheet.  And, the tinkering that Holtzman and others applied to the save suggests that he did not believe he had discovered the perfect, never to be supplanted statistic.  Admire what he did for the time in which he lived.&lt;br /&gt;&lt;br /&gt;No, marshal your scorn for those who with the hindsight of time and better access to information still defend the save.  Those who cling to a bad idea are far worse than those who throw the idea out to the marketplace in the first place.&lt;br /&gt;&lt;br /&gt;P.S. I wish there were a stat with more sophistication than Ari Kaplan's "Fan Save Value", but with fewer lookup charts than his more accurate "Save Value."  The former is not much of an improvement over the Save (and couldn't easily translate to a generalized "relief value") while the latter has too many "hidden" constants relating to expected runs (that aren't really constant, but actually change from year to year that I can't see it actually being adopted. &lt;br /&gt;&lt;br /&gt;Here's a simple(r) formula for calculating expected runs, that you can carry around with you:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ER = (5 + total_runners + 3 * (total bases occupied)) &lt;br /&gt;            * outs_left / 30&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;total bases occupied simply means to sum up the base numbers with runners.  So runners on second and third is 2+3 = 5.  Outs left is 3 - outs.  So no outs = 3.&lt;br /&gt;&lt;br /&gt;Here's how this version of expected runs compares to the standard expected runs chart:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Outs 1B 2B 3B  My ERs   Table  Difference&lt;br /&gt;0    0  0  0    0.50    0.54   -0.04&lt;br /&gt;0    0  0  1    1.50    1.46    0.04&lt;br /&gt;0    0  1  0    1.20    1.17    0.03&lt;br /&gt;0    0  1  1    2.20    2.14    0.06&lt;br /&gt;0    1  0  0    0.90    0.93   -0.03&lt;br /&gt;0    1  0  1    1.90    1.86    0.04&lt;br /&gt;0    1  1  0    1.60    1.49    0.11&lt;br /&gt;0    1  1  1    2.60    2.27    0.33&lt;br /&gt;1    0  0  0    0.33    0.29    0.04&lt;br /&gt;1    0  0  1    1.00    0.98    0.02&lt;br /&gt;1    0  1  0    0.80    0.71    0.09&lt;br /&gt;1    0  1  1    1.47    1.47    0.00&lt;br /&gt;1    1  0  0    0.60    0.55    0.05&lt;br /&gt;1    1  0  1    1.27    1.24    0.03&lt;br /&gt;1    1  1  0    1.07    0.97    0.10&lt;br /&gt;1    1  1  1    1.73    1.60    0.13&lt;br /&gt;2    0  0  0    0.17    0.11    0.06&lt;br /&gt;2    0  0  1    0.50    0.38    0.12&lt;br /&gt;2    0  1  0    0.40    0.34    0.06&lt;br /&gt;2    0  1  1    0.73    0.63    0.10&lt;br /&gt;2    1  0  0    0.30    0.25    0.05&lt;br /&gt;2    1  0  1    0.63    0.54    0.09&lt;br /&gt;2    1  1  0    0.53    0.46    0.07&lt;br /&gt;2    1  1  1    0.87    0.82    0.05  &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;As you can see, the formula slightly over-predicts expected runs (though with the important exception of the most-common occurrence, no outs, no one on, which almost balances out the rest of the error).  The only case where it's over 13 hundreths of a run off is the rare case of no outs, bases loaded, which it over-estimates by 1/3 of a run.  If a formula is to overestimate any situation, I'm happy with it being this rare situation: an "oh shit!" moment for any incoming reliever.  In any case, it's an easier formula to remember than 24 "random" numbers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-822456254442724174?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/822456254442724174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=822456254442724174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/822456254442724174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/822456254442724174'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/08/hate-stat-love-statter.html' title='Hate the stat, love the statter'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-6537797222832587518</id><published>2008-05-30T20:09:00.004-04:00</published><updated>2008-05-30T20:35:58.910-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='bullpens'/><category scheme='http://www.blogger.com/atom/ns#' term='pitching'/><category scheme='http://www.blogger.com/atom/ns#' term='baseball'/><title type='text'>Are bullpens underused?</title><content type='html'>&lt;small&gt;&lt;i&gt;This post was mostly written during Spring Training, so 2007 figures are used throughout.  Life prevented posting until now.&lt;/i&gt;&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;Back in the "good old days" of baseball, bullpens were nearly non-existent.  Two-man rotations were common, 600 inning-pitched seasons were possible, and one man pitched every inning of an entire major league season (Wondering who? See below).  Since then, we've created four-man rotations, dedicated bullpens, closers, five-man rotations, long relievers, setup men, and, coming soon to a ballpark near you, the seventh-inning specialist.  And throughout all thus, grumpy old men--along with grumpy young men, grumpy old women, grumpy young women, and grumpy transexuals of all ages--have decried the changes as a weakening of the quality of starting pitching.&lt;br /&gt;&lt;br /&gt;But is it possible that everyone is wrong?  Could the problems with pitching be traced to an &lt;b&gt;under&lt;/b&gt;use of those 6 to 8 "guns" not considered durable enough to start a game?  Let's consider some baseball axioms before we look further.  I like math, so I'll use some weird symbols, but try to explain them.&lt;br /&gt;&lt;br /&gt;Axiom 1: &amp;part;(ERA)/&amp;part;(IP) &gt; 0&lt;br /&gt;&lt;br /&gt;That is just to say that we expect ERA to rise for every additional inning pitched.  I'll admit that this axiom might not hold for a former AA-pitcher getting his first few innings in at the major league level, or for someone coming back just off the disabled list.  But for the most part, it's hard to disagree with, whether we're dealing with innings pitched within a game or innings pitched over a season.  &lt;br /&gt;&lt;br /&gt;Axiom 2: ERA(closer) &lt; ERA(ace) ; ERA(setup man) &lt; ERA(#2 starter) ; etc...&lt;br /&gt;&lt;br /&gt;The ERA of your relief squad tends to be lower than the starting pitchers.  Or to put it in another way, if you only had to put your best pitcher in for one inning of work, he would almost certainly come from the bullpen.  Compare the best reliever to the best starter on almost every club and you'll see that the best reliever comes out ahead.  Usually even the best two or three relievers have better ERAs than aces--this holds true for great teams and miserable ones.  In 2007, the Detroit tigers had three relievers log more than 40 innings with a lower ERA than their ace, Justin Verlander, and two more with a lower ERA than their second best pitcher to log at least 15 starts.  The Padres (the team I know best): Even a triple-crown winning Cy Young pitcher (Peavy) had an ERA bested by a setup man, Heath Bell (with 93 2/3 IP, not a small sample); and four more relief pitchers (Hoffman, Brocail, K. Cameron, and Justin Hampson) bested Chris Young, their second best pitcher.  We see the same patterns even for lousy teams: four Royals relievers outpitched Gil Meche's 3.67 ERA.&lt;br /&gt;&lt;br /&gt;Compare the &lt;a href="http://forum.sbrforum.com/baseball-handicapping/32225-bullpen-era-best-worst.html"&gt;ERAs of bullpens as of mid-2007&lt;/a&gt; to &lt;a href="http://www.hardballtimes.com/main/article/how-good-is-your-4-starter/"&gt;this analysis of starters&lt;/a&gt; at the end of the season.  The average bullpen is about as good as the average no. 2 starter!  In other words, it does not really matter if by the sixth inning your starter is still "feeling good."  Unless he's your ace, or throwing a shutout or no hitter, or your bullpen is absolutely drained from a recent 18-inning game, it's time to call in some new arms.  Do so and your expected chance of winning just went up.&lt;br /&gt;&lt;br /&gt;All else being equal, every inning that you have someone on the mound with a higher ERA than someone else you could put out there is an inning of poor managing.  All else being equal, bullpens should be used more until their ERAs rise to meet that of the starters.&lt;br /&gt;&lt;br /&gt;Now here's the argument I'm ready to hear: all else is not equal.  Not every inning is as important as every other.  That's definitely true!  The best relievers pitch in the most important situations: with the game close, and a win on the line if only he can not allow any runs.  So it makes sense that you want some of your lowest ERA-men pitching then.  But when do starters begin pitching?  They begin with the game tied, where any run allowed or not makes a huge difference in the probability of winning or losing the game -- nearly as important a situation as what setup men and closers pitch in.  But there are several members of the bullpen who tend to pitch in less important innings; that is, blowouts in either direction.  So if anything, the ERAs of bullpens should be substantially higher than starters.  That they are not, shows that the bullpens are being over-rested and under used. &lt;br /&gt;&lt;br /&gt;&lt;small&gt;Trivia answer: Jim Devlin of the 1877 Louisville Grays pitched every inning in a 61 game season, compiling 559 innings pitched and allowing a total of 4 HRs.  Though his ERA was a very good 2.25 (146 ERA+), it says something about the way official scorers have changed over the years: though he allowed only 140 earned runs, he allowed a total of 288 runs, or 8 more unearned runs than earned.&lt;br /&gt;&lt;br /&gt;(Before I'm accused of copying this trivia information from Wikipedia, be sure to check who added it there in the first place).&lt;/small&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-6537797222832587518?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/6537797222832587518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=6537797222832587518' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/6537797222832587518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/6537797222832587518'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/05/are-bullpens-underused.html' title='Are bullpens underused?'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-3099580806056190236</id><published>2008-05-30T19:16:00.003-04:00</published><updated>2008-05-30T20:01:14.269-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='matsui'/><category scheme='http://www.blogger.com/atom/ns#' term='baseball'/><title type='text'>Context and baseball statistics</title><content type='html'>From this week's &lt;a href="http://sports.espn.go.com/mlb/powerranking?week=10"&gt;MLB Power Rankings on ESPN.com&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;In May, Hideki Matsui has more multi-hit games (nine) than he has games in which he hasn't gotten a hit (five)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;We're supposed to take this as to mean that Hideki Matsui is doing great this month.  But what does it actually mean?  How many hitters would we expect to have more multi-hit games than no-hit games?  1%? 10%? Stats like this out of context drive me crazy.  It's pretty easy to figure it out at least for simple cases.&lt;br /&gt;&lt;br /&gt;The probability of not getting a hit in any at bat is (1 - Batting Average), so the probability of going 4 at bats without a hit is (1-BA) to the 4th power.  Here's a little program (in Python) for figuring this out:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;def noHit(BA):&lt;br /&gt;    return (1-BA)**4&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; noHit(.250): 0.32&lt;br /&gt;&gt;&gt;&gt; noHit(.300): 0.24&lt;br /&gt;&gt;&gt;&gt; noHit(.400): 0.13&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;So we can see that for even an average player, a no hit game happens only 1 in 3 games, and for a good batter, or a good batter on a real roll, these things happen rather seldom.  What about Multi-Hit Games?  If you have four at bats per game, there are 11 different ways of getting two or more hits (one way of getting four hits, 4 of 3, and 6 of 2).  In the chart below, x = hit, and o = not hit:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;xxxx = four hits&lt;br /&gt;&lt;br /&gt;oxxx = three hits&lt;br /&gt;xoxx&lt;br /&gt;xxox&lt;br /&gt;xxxo&lt;br /&gt;&lt;br /&gt;xxoo = two hits&lt;br /&gt;xoxo&lt;br /&gt;xoox&lt;br /&gt;oxxo&lt;br /&gt;oxox&lt;br /&gt;ooxx&lt;br /&gt;&lt;br /&gt;xooo = one hit&lt;br /&gt;oxoo&lt;br /&gt;ooxo&lt;br /&gt;ooox&lt;br /&gt;&lt;br /&gt;oooo = no hits&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;(For those interested, the number of ways of getting 4, 3, 2, 1, 0 hits, that is, 1, 4, 6, 4, 1 is the fourth row of Pascal's triangle).  So one way of calculating the probability of multi-hit game is to find the probability of a single hit game (4*BA*(1-BA)^3) add to it the probability of a no-hit game, and subtract it from 1:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;def multiHit(BA):&lt;br /&gt;    return 1-(noHit(BA) + 4*(BA*(1-BA)**3))&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt;multiHit(.250): 0.26&lt;br /&gt;&gt;&gt;&gt;multiHit(.300): 0.35&lt;br /&gt;&gt;&gt;&gt;multiHit(.400): 0.52&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;So as long as you're getting 4 ABs per game, you don't really need to be a great hitter to expect to get more multi-hit games than no-hit games.  In fact, a BA of just .267 will do it for you.  Returning to the original post, we see that Matsui is doing better than 1:1 in May, getting a 9:5 Multi:No ratio.  How good do you have to be to get that?  A .320 BA will suffice.  Matsui's BA has actually been slightly better than that in May, .337, but he's also been getting just under 4 ABs a game (3.83).&lt;br /&gt;&lt;br /&gt;4 ABs a game (or even 3.8) is really only manageable if you're not having many plate appearances that don't count for at bats -- in other words, if you're not walking much.  In April, Matsui was averaging only 3.1 ABs per game.  This makes it much harder to have so many multi-hit games: if you have 3ABs per game, you need to be batting above .348 to get more more multi-hit games than no-hits, and have a whopping .411 to have Matsui's ratio.&lt;br /&gt;&lt;br /&gt;Looking closely at the numbers, there's much less to cheer about for fans of Godzilla: the rise in multi-hit games came almost entirely from a drop in walks (from 12 to 7), resulting in a OBP 40 points lower in May than in April.  He did not make up the difference in SLG either, dropping 50 points there.  So upon closer inspection, the numbers tell an entirely different story: in everything but BA Matsui had a May that was worse than April and below his career levels.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-3099580806056190236?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/3099580806056190236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=3099580806056190236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/3099580806056190236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/3099580806056190236'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/05/context-and-baseball-statistics.html' title='Context and baseball statistics'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-3532311358957420403</id><published>2008-04-01T23:59:00.002-04:00</published><updated>2008-05-30T20:01:45.767-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='padres'/><category scheme='http://www.blogger.com/atom/ns#' term='coleman'/><category scheme='http://www.blogger.com/atom/ns#' term='baseball'/><title type='text'>The sort of mixed metaphors I love</title><content type='html'>"You talk about just inside! That was about a hemidemisemiquaver inside."&lt;br /&gt;-- Jerry Coleman (Hall of Fame Broadcaster, 83 years old)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-3532311358957420403?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/3532311358957420403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=3532311358957420403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/3532311358957420403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/3532311358957420403'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/04/sort-of-mixed-metaphors-i-love.html' title='The sort of mixed metaphors I love'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6679568642314413890.post-1947993490954360124</id><published>2008-03-16T14:39:00.006-04:00</published><updated>2008-03-16T16:28:54.586-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='introduction'/><category scheme='http://www.blogger.com/atom/ns#' term='Eco'/><title type='text'>Und warum?  An Ecoist rationale</title><content type='html'>Of all the "clocks" that we keep track of&amp;mdash;national debt, population of the world, casualties in [favorite unjust war of the week]&amp;mdash;the one that spirals out of control the most senselessly must be the number of blogs on the Internet.  The "check availability" of domain names for Blogspot.com is probably one of the most clicked links on the web, given that nearly every witty, literary, or common name has now been taken.  So why another?&lt;br /&gt;&lt;br /&gt;I can only offer weak arguments.  The first from necessity: my web page, so well-suited to undergraduate life and adapted adequately for the world of grad school, is a little out-of-date for a professional academic.  I'm looking for a place to put ideas that aren't yet ready for full publication, and Wikipedia just didn't seem the right place.  I certainly have the HTML skills to create something similar to a blog without the stigma the term entails.  But at a certain point, one needs to acknowledge exactly what one is doing and embrace it.  That doesn't mean I won't try to obfuscate this blog via perl sometime later...&lt;br /&gt;&lt;br /&gt;The second reason comes from a challenge that Umberto Eco (a name surely to appear often in the blog) threw upon American academics over twenty years ago.  He wrote:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;"I believe that an intellectual should use newspapers the way private diaries and personal letters were once used.  At white heat, in the rush of an emotion, stimulated by an event, you write your reflections, hoping that someone will read them and then forget them." (Travels in Hyperreality, p. x)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Perhaps some time in the near future I will be emboldened to take up his gauntlet directly, to actually send my thoughts off to newspapers (thereby destroying rain forests, reaching octogenarians, etc.), but for now, this blog seems an adequate post-modern solution.&lt;br /&gt;&lt;br /&gt;And the title: mode and time may govern our life, but prolation gives order to the minima of our daily activities.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6679568642314413890-1947993490954360124?l=prolatio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://prolatio.blogspot.com/feeds/1947993490954360124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6679568642314413890&amp;postID=1947993490954360124' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/1947993490954360124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6679568642314413890/posts/default/1947993490954360124'/><link rel='alternate' type='text/html' href='http://prolatio.blogspot.com/2008/03/und-warum-ecoist-rationale.html' title='Und warum?  An Ecoist rationale'/><author><name>Michael Scott Cuthbert</name><uri>http://www.blogger.com/profile/15153226534336479056</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://bp2.blogger.com/_QaQ1UnCwlQQ/R91txCGLCHI/AAAAAAAAAAM/I1_7Er-_U9U/S220/msc_bw_sm.jpg'/></author><thr:total>0</thr:total></entry></feed>
