tag:blogger.com,1999:blog-22711454901592460822018-07-17T23:19:33.736-07:00Math Year 2013Math tidbits and sometimes a little more. <br> Fun facts to know and tell.Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.comBlogger198125tag:blogger.com,1999:blog-2271145490159246082.post-62209861354593818022013-12-07T08:02:00.001-08:002014-06-28T06:22:07.022-07:00World Cup prediction for the quarterfinals<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-D_HaF2bhK5E/UqM_82iwavI/AAAAAAAAEv8/kmPoeaMpG0I/s1600/World-Cup-Draw+2014.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-D_HaF2bhK5E/UqM_82iwavI/AAAAAAAAEv8/kmPoeaMpG0I/s1600/World-Cup-Draw+2014.jpg" height="273" width="400" /></a></div>The World Cup will be played in Brazil in 2014, if all the stadia can be built in time. (With Brazil as host in 2014, Russia in 2018 and Qatar in 2022, we could easily be looking at three disasters in a row, with 2022 almost certain to go down as the worst World Cup of all time.) The draw was yesterday, and as always, fans from some countries feel like they got hosed.<br /><br />The toughest groups are for the most part considered to be Group B, Group D and Group G. When there are three teams that look good enough to be in the round of 16, the popular nickname is a Group of Death. If Group B, the three teams are Spain, Netherlands and Chile. In Group D, it's Uruguay, England and Italy. In Group G, Germany looks a cinch to qualify, but Portugal and the United States will fight for the second spot. (The U.S. also has a history of tough games against Ghana. My friend Art, a fan of football and the show <i>Farscape</i>, calls the U.S. draw <i>We're So Screwed, Parts 1, 2 and 3</i>, in honor of three episodes from the last season of the Australian sci-fi series.)<br /><br />What I would like to point out is the weakness of Groups C and H. The rules stipulate four of these teams will be in the round of 16, but my prediction is that at most one will make it to the quarterfinals, and that team will be Colombia. Group C's winner and runner-up will face the runner-up and winner from group D respectively, and Groups G and H have a similar reciprocal schedule. Because the tournament is in South America, I think Colombia might have a chance should they win Group C against whoever comes in second in Group D, but I predict here that no other team out of the other seven, Greece, Ivory Coast, Japan, Belgium, Algeria, Russia or South Korea, will win a game after the Group rounds are over.<br /><br />I'll be back in early July to state if I got this right or not.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com3tag:blogger.com,1999:blog-2271145490159246082.post-56029067883846247212013-11-11T07:23:00.001-08:002013-11-11T07:23:29.823-08:00Virginia governor's race post-mortem:Grades the five pollsters from the final week<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-QEec-92dDdA/Un-kSqaIFjI/AAAAAAAAEj8/4j8c5ob84O4/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-QEec-92dDdA/Un-kSqaIFjI/AAAAAAAAEj8/4j8c5ob84O4/s1600/virginia.jpg" /></a></div>All the polls in the Virginia governor's race from mid-July to November that Terry McAuliffe had a lead over Ken Cuccinelli, and in the final week the median lead was 7%, which using my system which factors in the size of the sample as well made McAuliffe a 99.4% favorite to win. He won, but by a much smaller margin, leading many people to ask why the polls were so wrong.<br /><br />The best explanation is a well-known tendency for third party candidates to do better in polls than they do in the actual election. The Libertarian candidate Robert Sarvis was getting good numbers for a third party, the last five polls giving him 13%, 12%, 10%, 8% and 4%. The median was 10% and the average 9.4%. His actual numbers were 6.6% and a lot of his alleged support appears to have favored the Republican Cuccinelli when the curtains on the booths were drawn.<br /><br />Many websites give the margin of the lead instead of the "margin of error" these days, and that makes some sense, since the "margin of error" is the 95% confidence interval for the actual result, which really should be measured after the undecided and no preference numbers are removed from the tally. If all we care about is the final lead, the Emerson College Polling Society bathed themselves in glory by predicting a 2% lead for McAuliffe, very close to the actual 2.5% final margin when everyone else overstated the lead.<br /><br />But looking at the 95% confidence intervals after undecideds are removed actually makes Emerson College look like the worst polling company of the final five. Here's why.<br /><br /><b>Emerson College</b><br /><b>Raw numbers: </b>sample of 874, McAuliffe 42%, Cuccinelli 40%, Sarvis 13%<br /><b>Removing undecided: </b>sample of 830, McAuliffe 44.2%, Cuccinelli 42.1%, Sarvis 13.7%<br /><b>Total missed percentage from reality: </b>14.25% (5th place out of 5) <br /><b>95% confidence interval (aka margin of error) for each candidate: </b><br />McAuliffe 47.59% to 40.83% (missed 47.97%) <br />Cuccinelli 45.46% to 38.75% (barely missed 45.47%)<br />Sarvis 16.02% to 11.35% (massively missed 6.56%)<br /><br />Emerson missed all three true vote totals, only barely in the case of the front runners, but by a wide margin when looking at Sarvis.<br /><br /><b>PPP </b><br /><b>Raw numbers: </b>sample of 870, McAuliffe 50%, Cuccinelli 43%, Sarvis 4%<br /><b>Removing undecided: </b>sample of 844, McAuliffe 51.5%, Cuccinelli 44.3%, Sarvis 4.1%<br /><b>Total missed percentage from reality: </b>7.15% (second best) <br /><b>95% confidence interval (aka margin of error) for each candidate: </b><br />McAuliffe 54.92% to 48.17% (missed 47.97%) <br />Cuccinelli 47.67% to 40.98% (captured 45.47%)<br />Sarvis 5.47% to 2.78% (missed 6.56%)<br /><br />PPP was the only company to underestimate Sarvis, so they were very close to the real numbers for Cuccinelli and overestimated McAuliffe. One company did better at the distance from all three candidates. <br /> <b>Rasmussen </b><br /><b>Raw numbers: </b>sample of 1002, McAuliffe 43%, Cuccinelli 36%, Sarvis 12%<br /><b>Removing undecided: </b>sample of 912, McAuliffe 47.3%, Cuccinelli 39.6%, Sarvis 13.2%<br /><b>Total missed percentage from reality: </b>13.25% (4th place out of 5) <br /><b>95% confidence interval (aka margin of error) for each candidate: </b><br />McAuliffe 50.59% to 44.01% (captured 47.97%) <br />Cuccinelli 42.73% to 37.76% (missed 45.47%)<br />Sarvis 15.38% to 10.99% (massively missed 6.56%)<br /><br />Like Emerson, the big overestimate of Sarvis skews these numbers badly, but they did capture McAuliffe's numbers. <br /><br /><b>Newport College</b><br /><b>Raw numbers: </b>sample of 1028, McAuliffe 45%, Cuccinelli 38%, Sarvis 10%<br /><b>Removing undecided: </b>sample of 965, McAuliffe 48.4%, Cuccinelli 40.9%, Sarvis 10.8%<br /><b>Total missed percentage from reality: </b>9.22% (3rd best) <br /><br /><b>95% confidence interval (aka margin of error) for each candidate: </b><br />McAuliffe 51.54% to 45.23% (captured 47.97%) <br />Cuccinelli 43.96% to 37.76% (missed 45.47%)<br />Sarvis 12.71% to 8.80% (missed 6.56%)<br /><br />Like several other polls Newport captured the McAuliffe number but underestimated Cuccinelli and overestimated Sarvis.<br /> <br /><b>Quinnipiac</b><br /><b>Raw numbers: </b>sample of 1606, McAuliffe 46%, Cuccinelli 40%, Sarvis 8%<br /><b>Removing undecided: </b>sample of 1510, McAuliffe 48.9%, Cuccinelli 42.6%, Sarvis 8.5%<br /><b>Total missed percentage from reality: </b>5.83% (best of 5) <br /><b>95% confidence interval (aka margin of error) for each candidate: </b><br />McAuliffe 51.46% to 46.41% (captured 47.97%) <br />Cuccinelli 45.05% to 40.06% (missed 45.47%)<br />Sarvis 9.92% to 7.10% (missed 6.56%)<br /><br />Coming off their great call of the New York City Democratic comptroller primary, Quinnipiac is again the best polling company of those that polled in the last week, though it must be said they are the best of a bad bunch. Their downfall in the 95% confidence intervals was the size of their sample. Big samples mean smaller margins of error, but not necessarily more captures of the real numbers.<br /><br />I don't change my model very often, and even though the candidate who my system favored actually won, I was a little embarrassed by assigning such a huge Confidence of Victory number (99.4%) to a race that turned out to be so close. The next time there is a third party candidate polling with significant support but no real chance to win, I'm going to figure out a fair way to re-assign the numbers, with the assumption that a Libertarian will lose support that will go Republican and a Green will lose support that will go Democratic.<br /> <br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-71957698554076400192013-11-06T18:36:00.000-08:002013-11-06T18:36:37.002-08:00Virginia Governor's race 2013:Post-mortem<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-YwBnO_qD0y0/UnrvlqVLFsI/AAAAAAAAEhs/o1XP3J-aGoc/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-YwBnO_qD0y0/UnrvlqVLFsI/AAAAAAAAEhs/o1XP3J-aGoc/s1600/virginia.jpg" /></a></div>Last night, the votes were tallied in the Virginia governor's race. The final result was<br /><br />McAuliffe (Democratic) 48.0%<br />Cuccinelli (Republican) 45.5%<br />Sarvis (Libertarian) 6.6%<br /><br />If you add these numbers together, you get 100.1%, which both means rounding error and effectively there were no votes for other candidates.<br /><br />My system gave McAuliffe a 99.4% Confidence of Victory(CoV). That usually points to an easy win, but this was not easy, contested well into the night. What went wrong?<br /><br />Well, my system does not promise to give the margin of victory, just who will win, so this one goes into the books as a win. The most recent polls that gave us the 99.4% was from Christopher Newport University, which had these numbers for the three candidates.<br /><br />McAuliffe (Democratic) 45%<br />Cuccinelli (Republican) 38%<br />Sarvis (Libertarian) 10%<br /><br />Notice that these numbers add up to 93%, so scaling up to make the three add up to 100.1% and keep their relative sizes, we get <br /><br />McAuliffe (Democratic) 48.4%<br />Cuccinelli (Republican) 40.9%<br />Sarvis (Libertarian) 10.8%<br /><br />The prediction for McAuliffe is very close, but Cuccinelli is quite low and Sarvis is very high. This is where almost all the error lies in the median poll. There was an outlier poll in the lastweek by Emerson College that had the lead at only 2% (very close to the truth), but their numbers for the three candidates are actually not very close.<br /><br />McAuliffe (Democratic) 42%<br />Cuccinelli (Republican) 40%<br />Sarvis (Libertarian) 13%<br /><br />This adds up to 95%, so scaling things up we get<br /><br />McAuliffe (Democratic) 44.2%<br />Cuccinelli (Republican) 42.1%<br />Sarvis (Libertarian) 13.7%<br /><br />This one isn't close to any of the true totals, only to the true margin of victory. <br /><br />Quite simply, all the polls had the same problem. People lied about voting for the Libertarian.<br /><br /><br />As Republicans stake out a weird space (we want a government small enough to fit into your bedrooms and glove compartments) some people on the right have taken to calling themselves "Libertarians".<br /><br />My problem with this is simple enough. I was registered Libertarian in 1976.<br /><br />And then I met some of them.<br /><br />I heard so many arguments that one nightmarish evening. Then, they were considered fringe and unacceptable but now, the same ideas are repeated across the Internet and in some circles considered mainstream. Here are a few.<br /><b><br /></b><b>a) Social Security can't survive.</b><br /><b></b><br /><b>b) The Post Office is an intolerable obstruction to liberty.</b><br /><b></b><br /><b>c) Government should have nothing to do with education.</b><br /><b></b><br /><b>d) Taxation is theft.</b><br /><b></b><br /><b>e) You should be able to smoke pot.</b><br /><br />Well, I agree with one of those positions.<br /><br />I want to keep my system as simple and clean as possible, but I have find a way to factor in what a significant but hopeless third party candidate really means. A Libertarian vote does not have an equal chance to go Democratic or Republican or stay home if the option to vote Libertarian is removed.<br /><br />Since all my system promises is to call the winner sometime during the last week, last night counts as a win. As the old baseball saying goes, every hit looks like a line drive in the box score. But the next time a Libertarian appears be drawing a large number for a third party, my system has to come up with a method for adjusting the Confidence of Victory.<br /><br />It is said you only learn from your mistakes. I got the winner this time, but it was still a mistake. We will see how much I learn from it.<br /><br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com1tag:blogger.com,1999:blog-2271145490159246082.post-39648355453970290092013-11-04T15:59:00.001-08:002013-11-04T15:59:30.185-08:00VA Governor's race:Election Eve update<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-NNu6TNW_QNI/Ungwx9MmnJI/AAAAAAAAEgM/CYSd8ufpLvk/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-NNu6TNW_QNI/Ungwx9MmnJI/AAAAAAAAEgM/CYSd8ufpLvk/s1600/virginia.jpg" /></a></div><br />Several elections are being held tomorrow. The polls say there is no suspense whatsoever in the governor's race in New Jersey or the mayor's race in New York, where repsectively Chris Christie and Bill De Blasio are expected to win by double digits. In Virginia, the governor's race between Terry McAuliffe and Ken Cuccinelli looks closer, but if my system hold true, there is extremely little chance of an upset. (I have notbeen checking the data for the down ticket races. Daily Kos says only the Attorney General race looks close.)<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-xY3hBmbjVgk/Ungw0d-QFhI/AAAAAAAAEgU/FIBGiLpYtQQ/s1600/VA+gove+4+Nov.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://2.bp.blogspot.com/-xY3hBmbjVgk/Ungw0d-QFhI/AAAAAAAAEgU/FIBGiLpYtQQ/s320/VA+gove+4+Nov.png" width="320" /></a></div><br />For a time in early September, Cuccinelli appeared to be gaining on McAuliffe, but that trend turned around and Cuccinelli's team has been starved for good news since. The last three updates on October 20, October 27 and November 3 have all put the Confidence of Victory number for McAuliffe at a formidable 99.4%. (In a strange coincidence, these three numbers came from three separate polls from three different companies, the well-known Quinnipiac and Rasmussen and the lesser known Newport College Polling Group.<br /><br />My system does not predict the margin of victory, but except for one outlier predicting a close 2% margin, the rest of the polls in the past week make it look like the margin will be 6% to 7%.<br /><br />I will report back on Wednesday about the results.<br /> Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com1tag:blogger.com,1999:blog-2271145490159246082.post-44503132440403194412013-10-30T20:07:00.000-07:002013-10-30T20:07:05.696-07:00VA Governor's race:Last October update<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-1ajtnROL9_w/UnHCIeHVhyI/AAAAAAAAEbI/6ih533lOP5I/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-1ajtnROL9_w/UnHCIeHVhyI/AAAAAAAAEbI/6ih533lOP5I/s1600/virginia.jpg" /></a></div>There are three notable elections held next Tuesday. Barring absolute craziness, Bill DeBlasio will be mayor of New York City and Chris Christie will still be governor of New Jersey. That's a win for a liberal Democrat and a moderate Republican, at least by 2013 standards. The other election thatis closeris for governor of Virginia, pitting an establishment Democrat Terry McAuliffe against a Tea Party conservative Ken Cuccinelli. This race is closer, but still not really that close.<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-Vy1IqklmOJo/UnHGgp04U8I/AAAAAAAAEbc/SdJZpxUz5MU/s1600/VA+gove+30+Oct.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://2.bp.blogspot.com/-Vy1IqklmOJo/UnHGgp04U8I/AAAAAAAAEbc/SdJZpxUz5MU/s320/VA+gove+30+Oct.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"></div>Even Republican pollsters who say it's close still have McAuliffe in the lead. There were no identified partisan pollsters among the five polling companies that put out data in the past few days. Rasmussen <u><i>was</i></u><i> </i>reliably skewed to the right in 2012, but founder Scott Rasmussen has resigned and their polls in 2013 are closer to the median now.<br /><br />Here are the five companies, the date the poll closed, the lead they have for McAuliffe and the confidence of victory number, rounded to the nearest tenth of a percent.<br /><br /><b>Washington Post 10/27 12 point lead 100.0% CoV</b> <br /><b>Roanoke 10/27 15 point lead 100.0% CoV</b> <br /><b>Hampton 10/27 6 point lead 97.3% CoV</b> <br /><b>Rasmussen 10/28 7 point lead 99.4% CoV</b> <br /><b>Quinnipiac 10/28 4 point lead 93.1% CoV</b><br /><br />In this set of data, Rasmussen is the median, which is the number I go with. 99.4% sounds like a lock, and given that I have only collected data on less than 200 races, I don't have an instance of some candidate losing when the polls were so much in their favor. My system does not give more weigh to one company and less to another, but it should be noted that Quinnipiac alone picked a winner in the New York City comptroller race, so they are on a roll, at least in a small way. If the race is as close as they say, I will at least have to consider making a special case of mentioning their position every time they take a final poll, but that can wait until Wednesday morning to be decided.<br /><br />If there are more polls, I'll make another update before Tuesday's election.<br /><b> </b> <br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-62205710966207218082013-10-14T17:10:00.001-07:002013-10-14T17:10:38.025-07:00Final report: New Jersey special election for Senate<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-YLckcKESwis/UlyAw_3D19I/AAAAAAAAEQs/hA5leSJouU0/s1600/new_jersey.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-YLckcKESwis/UlyAw_3D19I/AAAAAAAAEQs/hA5leSJouU0/s320/new_jersey.gif" width="247" /></a></div>The special election to fill the seat of the late Frank Lautenberg will be held this Wednesday, October 16. Why it isn't being held on the same date as the governor's race this November or even being held on a Tuesday as most American election are, only Chris Christie knows.<br /><br />In any case, I have said almost nothing about this race because no poll has shown it being very close. Cory Booker has a commanding lead over Steve Lonegan in every poll so far. The only dispute is how big the lead is.<br /><br /><b>Oct 13: Rutgers: sample size 513 Booker ahead 58%-36%(22 points)</b><br /><b>Oct 12: Monmouth: sample size 1393 Booker ahead 52%-42% (10 points)</b><br /><b>Oct 8: Richard Stockton College: sample size 729 Booker ahead 50%-39%(11 points)</b><br /><b>Oct 7: Quinnipiac: sample size 899 Booker ahead 53%-41% (12 points) </b><br /><b>Oct 5: Farliegh Dickinson: sample size 702 Booker ahead 45%-29% (16 points)</b><br /><br />The story for polling nerds here is the huge discrepancy between the last two polls. My Confidence of Victory system does not try to pick the margin of victory, just the victor. Because the width of the margin is so high in all cases, the polls all agree Lonegan has next to no chance. Here are the odds using Confidence of Victory, stating them as <i>x</i> to 1 favorite, rounded to three significant digits.<br /><br /><b>Oct 13: Rutgers: Booker is a 16,000,000 to 1 favorite</b><br /><b>Oct 12: Monmouth: </b><b>Booker is a 18,500 to 1 favorite</b><br /><b>Oct 8: Richard Stockton College: </b><b><b>Booker is a 1,320 to 1 favorite</b></b><br /><b>Oct 7: Quinnipiac: </b><b><b>Booker is a 10,900 to 1 favorite</b> </b><br /><b>Oct 5: Farliegh Dickinson: </b><b>Booker is a 4,170,000 to 1 favorite</b><br /><br />Can I explain these differences? This may seem strange, but my explanation is these differences really don't matter. Once you get past being more than a 1,000 to 1 favorite, it's over. I have not yet had 1,000 samples, but so far the biggest favorite to lose since 2008 was about 11 to 5, or 2.2 to 1. This was Spitzer vs. Springer in New York City comptroller, a race only one Quinnipiac called for Springer.<br /><br />There were some very big upsets in the Republican presidential primaries after Herman Cain and Newt Gingrich both failed to be the Not Romney and Rick Santorum went from also-ran to contender, but two person races are pretty easy to call, especially when the numbers are this big.<br /><br />I'm sure there will be bigger upsets in two candidate races eventually and there may be some I didn't log because it was in a race I skipped over, like the House races or state ballot propositions. But unless voter turnout is crazy low and skewed as hell, Cory Booker will be a Senator very soon.<br /><b> </b>Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-76399527088250825102013-10-09T18:37:00.001-07:002013-10-09T18:39:00.283-07:00VA governor's race:First October update<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-9ROT2lwYDJw/UlX_PdIqpOI/AAAAAAAAEOc/F7uh4ZiNI7I/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-9ROT2lwYDJw/UlX_PdIqpOI/AAAAAAAAEOc/F7uh4ZiNI7I/s1600/virginia.jpg" /></a></div><br />There are races in New Jersey for senator and governor this year, but I haven't reported on them because they haven't looked interesting. Democrat Cory Booker will likely become a senator with a double digit win and Republican Chris Christie appears to be cruising to re-election by a wide margin as well.<br /><br />The governor's race in Virginia is a little closer, but according to my Confidence of Victory system, only a little. Here's the latest data.<br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-i84gDFLAs6Y/UlX_RCUtT1I/AAAAAAAAEOk/fkyiFHy41Wo/s1600/VA+gov+9+Oct.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-i84gDFLAs6Y/UlX_RCUtT1I/AAAAAAAAEOk/fkyiFHy41Wo/s320/VA+gov+9+Oct.png" width="320" /> </a></div><br />Since late August, polling companies have been taking a major interest in the race between Democrat Terry McAuliffe and Republican Ken Cucinnelli. Every week or so, two or more polls are released, so the data I present here are weekly medians of the Confidence of Victory numbers.<br /><br />Advantage McAuliffe, if you haven't been paying attention.<br /><br />Most news outlets that show polling data consider the percentage lead the most important information, but my system is based on the percentage lead of voters who have a preference. This I turn into a Confidence of Victory (CoV) number using very basic statistical methods. In mid August, McAuliffe's CoV numbers were over 98%, but they fell in mid-September to about 85%. Since then, they have climbed back to 96.8%. I haven't collected enough data to say that there really is much difference when someone gets a CoV over 90%. No one with that strong a lead at the end lost in the data I gather since 2004.<br /><br />Notice the prepositional phrase "at the end". We aren't at the end yet, because the election is a month away. But as it stands currently, Cuccinelli needs something like the miracle Bill De Blasio got when Anthony Weiner went from front-runner to pariah/dick joke. Unless there are pictures of Terry McAuliffe's junk floating undetected around the Internet, Cuccinelli faces very long odds indeed.<br /><br />More updates when there is more data.<br /><br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-58165681742238522602013-10-04T17:26:00.000-07:002013-10-04T17:26:42.672-07:00The Correlation Coefficient R and the reduction of range.<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-QqJfqbu4vTA/Uk9MUSsdH1I/AAAAAAAAELs/3_4wSSkgXzQ/s1600/Spring+Siberia.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://3.bp.blogspot.com/-QqJfqbu4vTA/Uk9MUSsdH1I/AAAAAAAAELs/3_4wSSkgXzQ/s320/Spring+Siberia.png" width="320" /></a></div> Those who followed <a href="http://mathyear2013.blogspot.com/search/label/Four%20weeks%20of%20climate%20data%20%28reboot%29"><b>my series on climate change</b></a> might remember that I would take some area I could define as a rectangle in longitude and latitude and track the average temperature by year, comparing equivalent seasons. (To be precise, if a longitude/latitude area include either the North or South Pole, it would be more like a slice of pie than a rectangle.) I then split the time span from 1955 to 2010 into four eras based on the El Niño/La Niña cycles, these in particular each starting and ending in a strong La Niña year.<br /><br />This particular region and season, Siberia in Spring, has a clearly increasing trend of the median temperature, the dotted red line moving up in four separate steps. The lowest temperature registered only moves upward twice and the maximum average temperature takes a step down in the era of 1999-2010, as the highest temperature was registered back in the 1990s.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-zWDMSQoYwl4/Uk9MXarkDzI/AAAAAAAAEL0/fDdmg7YpNHQ/s1600/regression+1955-2010.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://3.bp.blogspot.com/-zWDMSQoYwl4/Uk9MXarkDzI/AAAAAAAAEL0/fDdmg7YpNHQ/s320/regression+1955-2010.png" width="320" /></a></div><br />Another method would be to add a line of regression, also known as a trendline or predictor line or the line of least squares. Excel has an option which gives the equation of the line and the variance <i>R</i>². <i>R</i> is called the correlation coefficient and it varies between -1 and 1. <i>R</i>² must be between 0 and 1 and is sometimes thought of as a proportion. In this case, the .3655 would be the proportion we would assign to the general increase we see in the temperatures, while the fluctuations are about .6345 of the influence.<br /><br />This doesn't sound very convincing, but if <i>R</i>² = .3655, <i>R</i> in this case would be +.6046, a value that by nearly every standard of correlation is considered high, though it doesn't meet the Rule of Thumb criteria for very high, which would be over .8.<br /><br />This is one of the many reasons I don't love using the predictor line and the correlation coefficient. The statements of confidence seem arbitrary - I know of three different systems and they disagree radically on whether an <i>R</i> score is strong or not - but also there is a way to cherry pick data in both directions, either to show more correlation or less.<br /> <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-YobhXSH9K9I/Uk9MgZV79aI/AAAAAAAAEL8/vziGL-Dvjtc/s1600/regression+1955-1974.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-YobhXSH9K9I/Uk9MgZV79aI/AAAAAAAAEL8/vziGL-Dvjtc/s320/regression+1955-1974.png" width="320" /></a></div><br />Generally though not always, taking a subset of a sample by restricting the range will result in <i>R</i> and <i>R</i>² being reduced. For example, if we look at the first Consistent Oceanic Niña Interval from 1955 to 1975, we see somewhat less overall increase (here we check the number multiplying <i>x</i>, which went from .0417 to .0346) and a drastic drop in <i>R</i>² from .3655 to .05097. Here I can say without fear of contradiction that the correlation is not impressive.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-I3G1gAGyIng/Uk9MhEGDElI/AAAAAAAAEME/qDAIzcGQf_8/s1600/regression+1975-1987.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-I3G1gAGyIng/Uk9MhEGDElI/AAAAAAAAEME/qDAIzcGQf_8/s320/regression+1975-1987.png" width="320" /></a></div><br />In our second interval, <i>R</i>² is stronger at .19237, but still well below the larger set's value of .3655. It could be considered moderately strong by some measures, but notice that here the trend shows the region cooling. (It really is coincidence that the first year of this era shows a large jump in temperature over the previous.)<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-6xOB4eEbEw0/Uk9MizlNvMI/AAAAAAAAEMM/vjcVUbGqUSM/s1600/regression+1988-1999.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-6xOB4eEbEw0/Uk9MizlNvMI/AAAAAAAAEMM/vjcVUbGqUSM/s320/regression+1988-1999.png" width="320" /></a></div><br /><br />Here again we see a downward sloping trendline and an extremely weak <i>R</i>² value of .01592, which is to say nearly no correlation.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-BCAoCPuj1QA/Uk9MkbxChUI/AAAAAAAAEMU/lcuPci1LviA/s1600/regression+2000-2010.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-BCAoCPuj1QA/Uk9MkbxChUI/AAAAAAAAEMU/lcuPci1LviA/s320/regression+2000-2010.png" width="320" /></a></div><br />Yet again, a small downward slope and a low <i>R</i>² value.<br /><br />In my view, the problem is cherry picking in both directions. People who wish to downplay or deny warming temperatures can take smaller samples, but when they do, the <i>R</i>² value will often give little confidence in the trend they try to show. On the other hand, people wanting to show strong evidence of warming have a natural advantage of generally higher <i>R</i>² scores in larger data sets. To be fair, in this particular set it is impossible to create a subset longer than thirty years that doesn't show a warming trend, though it can be minimized and so can the correlation coefficient.<br /><br />If anyone is coming to the blog for the first time, you should know that I am not a denier of the general warming trend in temperatures around the globe in my lifetime, which started in the Strong La Niña year of 1955. What I hope for is a discussion where both sides can agree on terms and methods and avoid cherry picking at all costs. I realize this hope may very well be in vain, and yet I hold on to it.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-24433479679507276202013-09-23T19:37:00.001-07:002013-09-23T19:37:58.470-07:00VA governor's race:Late September update<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-0MLcXrM6Y_E/UkDxIpCp7JI/AAAAAAAAEGc/43qg1UMFwDs/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-0MLcXrM6Y_E/UkDxIpCp7JI/AAAAAAAAEGc/43qg1UMFwDs/s1600/virginia.jpg" /></a></div><br />In Virginia, a state Barack Obama won by 4% in 2012 and 6% in 2008, the statewide races feature Tea Party favorites running on the Republican ticket. In the governor's race, both the Democrat Terry McAuliffe and the Republican Ken Cuccinelli have large negative ratings, but the basic math of the electorate says one thing clearly.<br /><br />The Republicans are the minority party in the land. They've lost two presidential elections in a row, they don't hold the Senate and got less votes across the country in last congressional election, holding onto the majority in large part due to gerrymandering.<br /> <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-HF7ynoOZwZM/UkDxJyCf7vI/AAAAAAAAEGk/JbTZv6pDSTc/s1600/VA+gove+23+September.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-HF7ynoOZwZM/UkDxJyCf7vI/AAAAAAAAEGk/JbTZv6pDSTc/s320/VA+gove+23+September.png" width="320" /></a></div><br />For all that, the needle is moving slightly for Cuccinelli if we give all polls the same weighting. Here are the Confidence of Victory numbers for recent polls, given by company name and date of poll. All give McAuliffe the advantage.<br /><br /><b>Washington Post</b> 9/22 89.1%<br /><b>Marist </b>9/19 90.3%<br /><b>Harper[R] </b>9/16 94.2%<br /><b>Roanoke </b>9/15 63.5%<br /><b>Quinnipiac</b> 9/15 84.9%<br /><br />The good news for Cuccinelli: McAuliffe isn't cruising above 95% anymore and Quinnipiac, still crowing over calling the NYC comptroller race all by themselves with their new likely voter model, says the race is getting close, but still isn't really close.<br /><br />The bad news for Cuccinelli: You see those two big dives downward in the graph, the one in May and the second in July? The first was a <i>Washington Post </i>poll and the second was a Roanoke<i> </i>poll. The only polls that have had Cuccinelli ahead now have him behind.<br /><br />The other bad news for Cuccinelli: My system may say 85% Confidence of Victory, but the track record so far says almost no underdog wins unless the Confidence of Victory splits about 60%-40%. The biggest upset against my system since 2008 was Stringer beating Spitzer for NYC Comptroller when Spitzer had 68.9% Confidence of Victory, the election when only Quinnipiac got the numbers right. (They have crowed loudly about that, but they had De Blasio cruising over 40% of decided voters and he only just beat that margin.)<br /><br />The election is still about seven weeks off, which means my system is not built to make a prediction, but the small gains Cuccinelli has made are not what he needs. Romney was in a similar situation and saw some small gains after Obama's poor showing in the first primary, but those faded quickly enough. Cuccinelli needs something bigger than we've seen so far to close the gap, and appealing to the Republican "base", such as it is, is a step in the wrong direction right now.<br /><br />More updates when I get more data.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-15011877797255511232013-09-14T16:23:00.000-07:002013-09-14T16:23:31.638-07:00Virginia Gubernatorial Race:McAuliffe (D) vs. Cuccinelli (R)<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-tS4YuSlEl1A/UjTlPb5R2QI/AAAAAAAAECE/Kz_yOL6xOKs/s1600/virginia.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-tS4YuSlEl1A/UjTlPb5R2QI/AAAAAAAAECE/Kz_yOL6xOKs/s1600/virginia.jpg" /></a></div>There was <a href="http://www.washingtonpost.com/local/virginia-politics/republicans-worried-about-cuccinellis-prospects/2013/09/13/d1021bd6-1c8e-11e3-82ef-a059e54c49d0_story.html"><b>a recent article in <i>The Washington Post </i>by Ben Shapiro discussing the Virginia gubernatorial race</b></a>. Several pundits were asked their opinion of the race. They quote one poll - Quinnipiac from last month showing a six point McAuliffe lead - and several pundits saying it leans towards McAuliffe or, in the words of often quoted Charlie Cook, it's a 50-50 race.<br /><br />Not one poll aggregator is asked how it's going.<br /><br />I could say that pundits are a lower life form. I could call them some scatological name or some rude word that describes a male or female sex organ.<br /><br />But seriously, if you didn't get the memo from 2012, there is no lower life form than pundit. Pond scum should write strongly worded letters to the editor whenever they are compared to pundits.<br /> <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-38P_fj9kuUQ/UjTlSvVUs2I/AAAAAAAAECM/oLfKPFPq7RE/s1600/VA+gov+14+September.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-38P_fj9kuUQ/UjTlSvVUs2I/AAAAAAAAECM/oLfKPFPq7RE/s320/VA+gov+14+September.png" width="320" /></a></div><br />Here's what the polls have said with remarkable consistency since early May. McAuliffe has a very big lead. A <i>Washington Post </i>poll said Cucinelli had a lead on May 2, but since a week after that on May 9, only a mid-July Roanoke poll gave him the lead. Within days of that report, PPP and Quinnipiac both gave McAuliffe a substantial lead.<br /><br />For those who have prejudices against some polls as being "liberal leaning", consider Rasmussen polls, who erred substantially towards Romney in the 2012 election cycle. In early June, they read a 3% lead for McAuliffe. In early September, they said it was a 7% lead for the Democrat. In my Confidence of Victory system, that 7% lead means McAuliffe's is about 140 to 1 favorite to win if the election were held when the poll was taken.<br /><br />And now for my personal provisos. Nate Silver thinks he can give a percentage for what that number means today given the election happens November 5.<br /><br />I make no such claims and I never will.<br /><br />Here's the situation. Right now, it looks like a gimme for McAuliffe, but there are seven and a half weeks to go. What no one can predict, neither the hard working aggregators or the lazy arrogant overpaid and over-quoted pundits, is what will move the needle in that period. As of right now, what Cuccinelli is an outright stunner, something along the lines of Anthony Weiner's penis pics or Mitt Romney's comments about the lazy scum-sucking 47% of the population.<br /><br />Heck, maybe he can even get McAuliffe to admit he doesn't like the Soggy Bottom Boys. But anything less than that and he has a concession speech to write, the sooner the better.<br /><br />More reports when there is more information.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-2239607122987580752013-09-11T16:19:00.001-07:002013-09-11T16:19:09.103-07:00Results from the Democratic mayoral race in New York City.<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-1M6PLwkZU40/UjDqZNmMKUI/AAAAAAAAEAs/qZvifK_9tI0/s1600/New_York_City_Map.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="http://1.bp.blogspot.com/-1M6PLwkZU40/UjDqZNmMKUI/AAAAAAAAEAs/qZvifK_9tI0/s320/New_York_City_Map.jpg" width="320" /></a></div><br />Almost all the ballots have been counted in the New York City municipal elections held yesterday. My last post here was on Sunday, but there was a late poll from Public Policy Polling that changed my numbers. After working on how I was going to consider the "median result" from a set of four polls in a three person race where there was a 40% threshold, my last prediction on Monday evening was posted to Twitter.<br /><br /><b>Final call on NYC Dem Mayor's race, different from <a class="twitter-atreply pretty-link" dir="ltr" href="https://twitter.com/SamWangPhD"><s>@</s>SamWangPhD</a> </b><br /><b>55% De Blasio 1st ballot </b><br /><b>30% De Blasio/Thompson </b><br /><b>15% De Blasio/Quinn</b><br /><br />Professor Wang's last prediction was a 90% probability of De Blasio on the first ballot.<br /><b> </b><br />The current vote count has Bill De Blasio at 40.3% and his closest rival Bill Thompson at 26.2%. Because his margin over the 40% threshold is so slim, we will have to wait for absentee ballots and an automatic recount for a result this close. The reported estimate is next Monday for a conclusive result.<br /><b><br /></b>Here on the blog, I made no mention of the comptroller's race, but I did mention it on Twitter in a two part tweet.<br /><br /><b>NYC mayoral primary today. <a class="twitter-atreply pretty-link" dir="ltr" href="https://twitter.com/SamWangPhD"><s>@</s>SamWangPhD</a> and I agree that De Blasio first ballot win is most likely as is Spitzer for Comptroller. [1/2]</b><br /><br /><div class="js-tweet-text tweet-text"><b>If Spitzer loses the Comptroller race, full credit should go <a class="twitter-atreply pretty-link" dir="ltr" href="https://twitter.com/QuinnipiacPoll"><s>@</s>QuinnipiacPoll</a>, the only organization to favor his rival Stringer. [2/2]</b></div><b> </b><div class="stream-item-footer"> <div class="context"></div><b><a class="details with-icn js-details" href="https://twitter.com/ConfidenceOfVic/status/377414304862982144"><span class="details-icon js-icon-container"></span><span class="expand-stream-item js-view-details"><span class="expand-action-wrapper"></span></span></a></b></div><br /><br />There were several polls of this race as you can see at this <a href="http://www.realclearpolitics.com/epolls/2013/other/ny/new_york_city_comptroller_democratic_primary-3994.html#polls"><b>link to the Real Clear Politics polling page</b></a>. There was nothing that made this look like a close race until late August, with Eliot Spitzer's hopes for a political comeback looking very strong while Manhattan borough president Scott Stringer seemed unable to make any headway. But then Quinnipiac had a poll that said the race was tied, then another Quinnipiac poll had a small of 2% for Stringer on September 1, then a commanding 7% lead a week later.<br /><br />The actual result was Stringer by 4%, 52% to 48%.<br /><br />The reason my system - and Professor Wang's - favored Spitzer was that no other pollster agreed with Quinnipiac, not even once. After the first Quinnipiac poll that showed a close race, Siena, Marist and PPP all released polls, all of them favoring Spitzer.<br /><br />So my system failed to predict this race. Often, when I get a race wrong, I try to find ways to adjust things to improve, but if I was given a similar situation tomorrow, I wouldn't change a thing. Here are my reasons.<br /><br />1. I never weigh in more than a single poll from any polling company and always the most recent.<br /><br />2. Because Quinnipiac only gets one result counted, they had one poll out of three in the final mix, along with PPP and Siena.<br /><br />3. In a three poll situation, I take the median result, not the average of the three. Quinnipiac was the outlier, but outliers aren't often the closest to correct. Obviously, it will happen sometimes, but it is rare enough that I do not want to second guess myself in a situation like this. Polls miss the mark, sometimes by making bad assumptions, sometimes just by the fact that randomness is involved. For example, of the three polls Quinnipiac had the largest sample size, but that does not always (or even often) mean the most accurate. Looking at the mayoral polling and factoring out the undecided, Quinnipiac had De Blasio at 46% of the people who had a preference, while PPP had him at 42% and Siena had him at 39%. In this case, it's the low outlier that was closest.<br /><div class="js-tweet-text tweet-text"><br /></div><div class="js-tweet-text tweet-text">So this means at least one more report on the mayor's race. It is widely agreed that the Republican primary winner Joe Llota will be very hard pressed to win in the general election. De Blasio got 260,000 votes in the Democratic primary, Llota finished first with over 50% in the Republican primary with about 30,000, which would have given him sixth place in the Democratic race.</div><div class="js-tweet-text tweet-text"><br /></div><div class="js-tweet-text tweet-text">And while I did not use their poll, I want to congratulate Quinnipiac for being alone with the correct result in the comptroller's race. It is a field filled with randomness, but they had Stringer with a chance or the lead three separate times in barely two weeks when no one else did. That's a record they can point to with pride.</div><div class="js-tweet-text tweet-text"><br /></div>Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-73415461245174903002013-09-08T16:44:00.003-07:002013-09-08T16:44:45.464-07:00New York City Mayoral Race: Democratic PrimaryThe Weekend before the election.<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-sD7oIPdHtd8/Ui0D3Oc_X7I/AAAAAAAAD_M/4CwKqjXtS9w/s1600/New_York_City_Map.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="http://1.bp.blogspot.com/-sD7oIPdHtd8/Ui0D3Oc_X7I/AAAAAAAAD_M/4CwKqjXtS9w/s320/New_York_City_Map.jpg" width="320" /></a></div><br />On Tuesday, New York City voters will go to the polls to decide the Democratic and Republican candidates to be the next mayor. The conventional wisdom is the Democratic nominee holds a huge advantage over whichever candidate the Republicans put forward, so the Democratic primary is being given the lion's share of interest. <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-xHJAhHGF7IQ/Ui0D5ebXNXI/AAAAAAAAD_U/DOnGfab7uXI/s1600/NYC+mayor+6+Sept.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-xHJAhHGF7IQ/Ui0D5ebXNXI/AAAAAAAAD_U/DOnGfab7uXI/s320/NYC+mayor+6+Sept.png" width="320" /></a></div>Since mid-August, just after Anthony Weiner's habit of sending portraits of his penis to strangers became common knowledge, the front runner has been Bill De Blasio. It is widely agreed that the <a href="http://www.youtube.com/watch?v=GgvXniTz7D8"><b>ads featuring his 15 year old son Dante</b></a>, he of the remarkable adolescent baritone and even cooler Afro, have made quite the impact.<br /><br />This Sunday, a new poll from Marist has been published which agrees with the general trend if not the exact numbers.<br /><br />Candidate recent % (previous %)<br /><br /><b>Marist - 9/6 recent, 8/14 previous</b><br />De Blasio 36% (24%)<br />Thompson 20% (16%)<br />Quinn 20% (24%)<br />Other 16% (21%)<br />None of the Above 8% (15%)<br /><br /><b>Quinnipiac - 9/1 recent, 8/12 previous</b><br />De Blasio 43% (30%)<br />Thompson 20% (22%)<br />Quinn 18% (24%)<br />Other 12% (17%)<br />None of the Above 7% (7%)<br /><br /><b>Siena - 8/28 recent, 8/7 previous</b><br />De Blasio 32% (14%)<br />Thompson 18% (16%)<br />Quinn 17% (25%)<br />Other 16% (19%)<br />None of the Above 17% (26%) <br /><br />The agreement is across the board. De Blasio had a great September, Quinn took a beating and Thompson improved enough to probably be the favorite for second place if that matters. De Blasio is seen as the progressive candidate and the candidate for the boroughs other than Manhattan. Even the fact that De Blasio is a Red Sox fan may not be enough to stop him.<br /><br />Of the three polls, Quinnipiac has been the one that has found the most support for De Blasio and Siena has lagged, but that may be due to Siena being first to polls in each case. That leaves Marist, last to poll and the median poll for De Blasio support both mid-August and early September.<br /><br />If we accept Marist as the most reliable because of being the median, there are three outcomes that look possible on Tuesday.<br /><br /><b>De Blasio gets more than 40% on the first ballot: 34%</b><br /><b>A De Blasio-Thompson run-off: 36%</b><br /><b>A De Blasio-Quinn run-off: 30%</b><br /><br />If I were putting a wager on this three way outcome, I'd put my buck on De Blasio-Thompson in a run-off, though any of these three results can hardly be called an upset. The only thing that would make me doubt my sanity or the validity of my methods is De Blasio finishing third. There hasn't been a poll in more than three weeks that shows that result to be even close to plausible.<br /><br />I'll be back on Tuesday evening to report the actual vote.<b></b><br /><b><br /></b>Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-66135445208849835502013-09-04T17:26:00.002-07:002013-09-04T17:26:52.448-07:00Rounding - standard method and statistician's method a.k.a Gaussian rounding or banker's rounding.<br />I do not like to tell tales out of school. I consider the relationship of teacher and student to be one of confidentiality, most especially on the teachers' part. But I will say this.<br /><br />The students I teach have a heck of a time with rounding.<br /><br />I've taught some of the remedial classes at community college, like arithmetic and pre-algebra, and the students in these classes often do not get the idea of rounding, either rounding to a nearest decimal - like tenths or hundredths or thousandths - or rounding to the nearest thousand or million or rounding to a certain number of significant digits. In later classes like statistics or even calculus or linear algebra, I see there are more than a few students who haven't grasped round up and rounding down, usually always rounding down, also known as truncating. <br /><br />For me, this is a major pedagogical hurdle. When I teach, I try to put myself in the mindset of when I didn't know how to do a thing and remember the things that helped me learn it. I'm not going to say I learned rounding in mere seconds, but it feels like I did. I'm sure I stumbled with it back some time in primary school, but after a few mistakes the mechanical rule fell into place and made sense.<br /><br />Look at the digit that is going to vanish, the one to the right of the last place you are rounding to. If it is a 5, 6, 7, 8 or 9, add one to the digit you are rounding to. If it is a 0, 1, 2, 3 or 4, the last digit you are going to use remains the same. The first method is called <i>rounding up</i> and the second version is called <i>rounding down</i>.<br /><br />Example: 4/7 = 0.571428571428..., a decimal place then the six digit pattern 571428 repeating forever.<br /><br />Round 4/7 to the nearest tenth.<br />The digit in the tenths place is the .5, so the answer is going to be either .5 or .6; because the next digit (in some texts called the <i>decision digit</i>) is a 7, we add 1 to 5 and the answer is .6<br /><br />Round 4/7 to the nearest hundredth.<br />If we truncate to the hundredths place, we get .57, so the answer is going to be either .57 or .58; because the next digit is a 1, we leave .57 as it is.<br /><br />Round 4/7 to the nearest thousandth.<br />If we truncate to the thousandths place, we get .571, so the answer is going to be either .571 or .572; because the next digit is a 4, we leave .571 as it is.<br /><br />Okay, I expect that this is not news to many of my readers, though it may have been a while since you thought about it.<br /><br />I am chagrined that I did not know about other methods given my advanced years, but a statistics text I am using for the first time has a math skills pre-test and uses a slightly different method, known by several names. I first heard of it as "banker's rounding", though doing more research, I understand that "statistician's method" or "Gaussian rounding" are more common and likely more accurate.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-tgGpE-MzYQQ/UifEknMb_jI/AAAAAAAAD9Q/QB9do8hhr4g/s1600/banker%27s+rounding.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="189" src="http://3.bp.blogspot.com/-tgGpE-MzYQQ/UifEknMb_jI/AAAAAAAAD9Q/QB9do8hhr4g/s320/banker%27s+rounding.gif" width="320" /></a></div><br />Let's say for arguments's sake we are rounding off to the nearest dollar, getting rid of the pesky pennies. The method you likely learned in school, which here is called "Traditional", will simply look at the tenths position.<br /><br />Example:<br />If we have between $2.00 and $2.49, this will "round down" to $2.00 exactly.<br /><br />If instead the total is between $2.50 and $2.99, we "round up" to $3.00.<br /><br />The new method agrees with the old method almost exactly, with the only contentious case being the half dollar. Technically, $2.51 should go to $3.00, because that's the closest value. (It's 49 cents away from $3 and 51 cents away from $2.) Likewise $2.49 should round down to $2.00, since that is the closest value. but $2.50 presents a philosophical dilemma, since it is exactly 50 cents away from $3.00 and 50 cents away from $2.00.<br /><br />This new method says to round a number of the form <i>x</i>.5 to the nearest even number. That means half the time we round <i>x</i>.5 up and half the time we round down. The row in yellow shows the only disagreement between 1 and 3. 1.5 rounds up traditionally to 2, and in the new method rounds to the nearest even number, which is still 2. But 2.5 rounds traditionally to 3, and in the new method rounds to 2.<br /><br />Why bother? Think of what we are changing in the sum of rounded numbers, assuming that all numbers are equally likely to show up. Let's say we had the list of numbers as follows:<br /><br />1.00<br />1.01<br />1.02<br />...<br />2.98<br />2.99<br />3.00<br /><br />These 201 entries add up to 402, which means the average is 402/201 = 2.<br /><br />If we round them using the standard method, we will get<br /><br />50 x 1 = 50<br />100 x 2 = 200<br />51 x 3= 153<br /><br />This adds up to 403, and 403/201 = 2.004975124..., which is to say that adding, then rounding will not give the same answer as rounding, then adding.<br /><br />If we round this set using statisticians rounding, this is what happens.<br /><br />50 x 1 = 50<br />101 x 2 = 202<br />50 x 3= 150<br /><br />This adds up to 402, and rounds to 2 exactly.<br /><br />As a teacher who knows my students already have a difficult time with rounding, this presents a problem. I do not want to "dumb down" the curriculum, but I also don't want to add in extra problems when I don't have to. Searching Wikipedia for this method, I see that this is the standard for IEEE 754 use with floating point operations.<br /><br />Some but certainly not all of my students may see this in their careers. I would hope that people who go into programming would have a better grasp of math, but having worked for nearly two decades in the field, I know that is not always the case. More than once, I came onto a project at a large computer company that involved something like higher math and I was the only programmer on a large team who knew the right method. Sometimes it was something slightly esoteric, like group theory and the symmetries of the square. Another time, I was the only person who really understood how sine and cosine worked.<br /><br />One of my favorite expressions I learned from my father is "You learn something new every day, if you aren't careful." Well, I wasn't careful and I learned something new yesterday. Now I have to decide how it should apply to the classes I teach.<br /><br />It would be so much easier if I did what I was told and didn't give a rat's ass, but as I am now two score and seventeen years old, I get the feeling the "I don't give a rat's ass" option is not open to me.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com3tag:blogger.com,1999:blog-2271145490159246082.post-83086471386690590532013-09-03T17:50:00.000-07:002013-09-03T17:50:37.257-07:00The New York City Mayor's race:One week from election day<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-gvfU2gR2LeY/UiZ5g9bwGZI/AAAAAAAAD8Q/di2xHCwHbMc/s1600/New_York_City_Map.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="http://2.bp.blogspot.com/-gvfU2gR2LeY/UiZ5g9bwGZI/AAAAAAAAD8Q/di2xHCwHbMc/s320/New_York_City_Map.jpg" width="320" /></a></div>There were a flurry of polls in the New York mayoral race in mid August and then nothing until last week. Now, we have four new polls, but two of them are from the same company, Quinnipiac, so I only count three, using the most recent Quinnipiac, one from amNew York-News 12 and a third from Siena, the polling company hired by <i>The New York Times.</i><br /><i> </i> <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-LcBie4JkcU8/UiZ5yL1akDI/AAAAAAAAD8Y/-6XjRLdsqr4/s1600/NYC+mayor+1+Sept.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-LcBie4JkcU8/UiZ5yL1akDI/AAAAAAAAD8Y/-6XjRLdsqr4/s320/NYC+mayor+1+Sept.png" width="320" /></a></div><br />Both Quinnipiac and Siena polled mid-month and late month, so I will give their numbers in the form<br /><br />Candidate recent% (previous %)<br /><br /><b>Quinnipiac - 9/1 recent, 8/12 previous</b><br />De Blasio 43% (30%)<br />Thompson 20% (22%)<br />Quinn 18% (24%)<br />Other 12% (17%)<br />None of the Above 7% (7%)<br /><br /><b>Siena - 8/28 recent, 8/7 previous</b><br />De Blasio 32% (14%)<br />Thompson 18% (16%)<br />Quinn 17% (25%)<br />Other 16% (19%)<br />None of the Above 17% (26%)<br /><br />Both of these polls agree that August was a very good month for De Blasio and a bad month for almost everyone else. We also have a poll from amNew York-News12, who only polled once in August.<br /><br /><b>amNew York-News12 - 8/27 recent, no previous</b><br />De Blasio 29% <br />Thompson 24%<br />Quinn 17% <br />Other 17% <br />None of the Above 13%<br /><br />The "median" poll can be a little difficult to judge in a multi-candidate contest. If we consider the race De Blasio vs. Thompson, the Siena poll is the median with a 14% lead. In this case, De Blasio has about a 27% chance to cross the 40% threshold and win outright, and the Siena poll says the race for second is relatively close, but still gives Thompson a 65% Confidence of Victory over Quinn.<br /><br />Here are the Confidence of Victory numbers from all three polls.<br /><br /><b>Quinnipiac</b><br />De Blasio outright win: 99.9%<br />De Blasio-Thompson run-off: 0.08%<b> </b><br />De Blasio-Quinn run-off: 0.02%<br /><br /><b>Siena</b><br />De Blasio outright win: 27.2%<br />De Blasio-Thompson run-off: 47.3%<b> </b><br />De Blasio-Quinn run-off: 25.5%<br /><br /><b>amNew York-News 12</b><br />De Blasio outright win: 0.1%<br />De Blasio-Thompson run-off: 99.9%<b> </b><br />De Blasio-Quinn run-off: 0%<br /><br />There should be at least one more poll from Marist by the end of the week, but unless Siena is right, Quinn is pretty much out of the race.<br /><br /><b> </b> <br /><br /><br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-51102525640403839272013-08-25T19:09:00.000-07:002013-08-25T19:09:03.576-07:00Some thoughts about election prediction.<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-FhJn0pmzZiY/Uhqgqjzh7mI/AAAAAAAAD2Q/krrPBWpofNE/s1600/New_York_City_Map.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="http://4.bp.blogspot.com/-FhJn0pmzZiY/Uhqgqjzh7mI/AAAAAAAAD2Q/krrPBWpofNE/s320/New_York_City_Map.jpg" width="320" /></a></div><br />It's been nearly two weeks since there has been any new data on the New York City mayoral race. The last few polls agree the three at the front of the pack are Christine Quinn, Bill De Blasio and Bill Thompson. Unless one of them gets over 40% of the vote, and the recent polls make that look very unlikely, the top two will go into a runoff election, and the odds make it look like an uphill climb for Thompson.<br /><br /><i>The New York Times</i> endorsed Quinn. Her bio is certainly compelling from a progressive standpoint. She would be the first female mayor of America's largest city and she would be the first openly gay mayor. Her record on the issues is not as compelling from a progressive standpoint. She is seen by many as a person who would continue the Bloomberg status quo. <i>The Nation</i>, a truly progressive periodical unlike the <i>Times</i>, has endorsed De Blasio.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-2HQRFOcyOYA/UhqgrPbeptI/AAAAAAAAD2Y/sVM8A0_wr_o/s1600/nate+silver.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-2HQRFOcyOYA/UhqgrPbeptI/AAAAAAAAD2Y/sVM8A0_wr_o/s1600/nate+silver.jpg" /></a></div><br />Nate Silver has published numbers saying that history favors the long term front runner of the year, which would be Quinn in this case. She had competition from Anthony Weiner after he announced and before his spectacular crash, but for months before that she lead in every poll.<br /><br />This is one of the many places in predictions where I part company with Silver. I assume that every election stands on its own and historical data should not outweigh current polling.<br /><br />It's impossible to predict the big events and impossible to gauge the weight they will have. It looked like based on name recognition Anthony Weiner was a serious candidate, but the Carlos Danger situation cut his support in half, his position plummeting from first to a distant fourth. A judge deciding "stop and frisk" was unconstitutional gave De Blasio a big boost, but it's hard to say if it's a surge or a bounce until we get more data. The <i>Times</i> endorsement should be much more important that <i>The Nation's</i>, but are either of them really events that make a difference in the polls?<br /><br />I have no idea.<br /><br />When I say that the last polls look like an overwhelming likelihood of a Quinn/De Blasio runoff, I am completely willing to say something else if the next polls change. It's very hard to say what events will change the polling numbers, known in journalistic circles as "moving the needle".<br /><br />In 2012, Romney's 47% comments moved the needle against him, but he was already in a horrible position when he said that. Obama's awful first debate definitely moved the needle in Romney's favor, but by the time of the Biden/Ryan and the second Obama/Romney debate, the movement towards Romney had stopped and the tide reversed. He never was favored to win.<br /><br />Conservatives hoped Benghazi would move the needle. It didn't.<br /><br />Silver went to Princeton and I went to Cal State Hayward. Silver was hired by the <i>Times</i> and I haven't been able to get anyone to pay me for my work. In my favor, I did better than he did in 2008 and 2012. (He missed Indiana in the electoral vote in 2008 and two Senate races in 2012 that I got right. One of them he missed by giving weight to historical data, something I would never do.)<br /><br />Here's the big difference between us as far as I'm concerned. My education is in pure mathematics and his is in applied.<br /><br />Election prediction is applied math. I deeply distrust it and I wait until I think the data really means something. I have arbitrarily chosen about a week before the polls close. By then, I figure enough mail-in ballots have been cast that the most important proviso of any opinion poll is actually true, that "the election is being held when the poll was taken".<br /><br />Is seven days the right number? Maybe ten would be better, maybe four. If my predictions become less reliable in the future, changing this time period is one of my first places to look to improve my system.<br /><br />This brings me to something else Silver has done that I disagree with vehemently. He is predicting the make-up of the Senate in 2014 and giving a margin of error. These numbers are being used as scare tactics by the Democrats begging for money.<br /><br />As far as I'm concerned, these numbers are worse than nonsense. He does actual work, so I am not happy comparing him to lazy, ignorant anti-intellectuals like Dick Morris, Karl Rove, Jim Cramer or George F. Will, but predictions about a multi-part election more than fifteen months away from polls closing are mere balloon juice. Even if someone "crunches numbers", given how many unknowable events there will be in the next year and a quarter means his work has no more meaning than doing exact bio-rhythms or a complete astrological chart.<br /><br />I do not know if Nate Silver will ever read what I write. If he does, I want to say to him, older nerd to younger nerd, stop doing the stuff that is most likely to hurt your reputation. A fifteen month prediction about elections is no better than your work in fantasy football or Oscar prediction, which you have been gracious enough to admit has been less than optimal.<br /><br />Wait until just before the election. Then the numbers of people doing actual work, work like yours and mine and Sam Wang's, have meaning. Right now, your work in 2013 is like Gene Simmons of KISS going out on a limb in 2011 predicting President Rick Perry and giving us as the reason to believe him, the quote "I'm never wrong."<br /><br />He was wrong. Even with your margin of error, saying there is 95% confidence in your numbers is plain silly. <br /><br />Stop being silly. You are much better than that.<br /><br />Here endeth the lesson.<br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-11157720450354285112013-08-21T16:41:00.001-07:002013-08-21T16:41:56.288-07:00The Witch of (Maria) Agnesi<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-LwAQE5wSGLs/UhVGGkY9M5I/AAAAAAAAD0Q/4szzLqG8cHU/s1600/300px-WitchOfAgnesi03a.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-LwAQE5wSGLs/UhVGGkY9M5I/AAAAAAAAD0Q/4szzLqG8cHU/s1600/300px-WitchOfAgnesi03a.png" /></a></div> Consider a circle that fits perfectly between two parallel lines. One of the easiest pairs of parallel lines to picture is a top and a bottom. In this picture, the point <i><b>O</b></i> is the point tangent to the bottom and the point <b><i>M</i></b> is the point tangent to the top.<br /><br />Take any point on the circle and call it <b><i>A</i>. </b>The line drawn from <b><i>O</i> </b>to <b><i>A</i></b> is called a secant and it will cross the line at the top at a point we call <i><b>N</b></i>. We can create a right triangle by making a line parallel to both top and bottom. The point <i><b>P</b></i> is the corner of the right triangle that has the 90° angle. For every new <b><i>A</i></b>, there is a new <b><i>N</i></b> and a new <b><i>P</i></b>. We are interested in the curve created by all the points <b><i>P</i></b>.<br /> <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-VxSTqn_gE-Y/UhVGIAhzjmI/AAAAAAAAD0Y/3ifK_YnCvxQ/s1600/General+form+witch+of+Agnesi.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-VxSTqn_gE-Y/UhVGIAhzjmI/AAAAAAAAD0Y/3ifK_YnCvxQ/s1600/General+form+witch+of+Agnesi.png" /></a></div>This may seem like a very strange and roundabout way to make a curve in the plane. You wouldn't be wrong to think so. In the early days of the <i>xy</i>-plane, mathematicians worked on these kinds of very strange curves. The first work on this was done by Pierre De Fermat, an amateur mathematician working with Rene Decartes at the beginning of the discovery of the Cartesian plane, named for Descartes ("of the cards" in French.) The formula for the curve is given by the formula in <i>x, y</i> and <i>a</i>, where <i>a</i> is the radius of the circle.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-aXQFqxK5dFg/UhVGJqR96JI/AAAAAAAAD0g/abbRggoYo9s/s1600/simplest+Witch+of+Agnesi.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-aXQFqxK5dFg/UhVGJqR96JI/AAAAAAAAD0g/abbRggoYo9s/s1600/simplest+Witch+of+Agnesi.png" /></a></div>The simplest version of the equation is when the radius is ½, so the diameter is 1.<br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-0zTuIgc3K4c/UhVGLptY0xI/AAAAAAAAD0o/-iJhMvziUlQ/s1600/350px-WitchOfAgnesi04.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="183" src="http://2.bp.blogspot.com/-0zTuIgc3K4c/UhVGLptY0xI/AAAAAAAAD0o/-iJhMvziUlQ/s320/350px-WitchOfAgnesi04.png" width="320" /></a></div>The curves are sometimes called bell-shaped curves, but this is not the formula for the most famous of the bell-shaped curves, the most studied version of that being called the normal curve. This curve is called the Witch of Maria Agnesi.<br /><br />The name comes about by a mistranslation of Italian to English, a mistranslation that might have been intentional but has most certainly lasted until today.<br /><br />Fermat's first work on the curve is done is 1630, but in 1703, the Italian Guido Grandi also studies the shape and names it in Latin, the <i>versoria</i>, which is also the name for one of the ropes that holds a sail in place, usually called a sheet in English.<br /><br />Move forward again to 1748 and a very odd occurrence at the time, an important mathematical paper written by a woman, the Italian mathematician Maria Agnesi. She writes her paper in Italian and calls the curve "versiera", the Italian translation for Grandi's Latin word "versoria". Here comes the confusion, possibly done on purpose.<br /><br />The Italian for adversary is "aversiera" is sometimes shortened to "versiera". The adversary of God is the Devil, but because this is the feminine form, it can be translated to "witch". The translation by Cambridge professor John Colson, a contemporary of Maria Agnesi, turns the name for a rope on a boat to witch, a play on words that likely was done at the expense of the very rare female mathematician.<br /><br />So here is to Maria Agnesi, not an originator of an idea but, like so many of us in mathematics, a worker in the field, doing her best to preserve knowledge for future generations. Her name lasts to this day in a somewhat mocking form, but at least we remember her, one of the few women in all of Europe to publish a mathematical work that has lasted from an era when women were not allowed to get a degree from any university on the continent.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-18556145034928071912013-08-17T10:45:00.000-07:002013-08-17T10:45:48.057-07:00One more rule about Pythagorean triples<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-U1p3G9bjDI0/Ug-nOKFdrkI/AAAAAAAADxA/6GnMJ9R6i6Y/s1600/triangle-3-4-5.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-U1p3G9bjDI0/Ug-nOKFdrkI/AAAAAAAADxA/6GnMJ9R6i6Y/s1600/triangle-3-4-5.gif" /></a></div>Yet again, let's consider Pythagorean triples, sets of three positive integers <i>a, b</i> and <i>c</i> such that <i>a</i>² + <i>b</i>² = <i>c</i>². Here are several examples where all three numbers are less than 100.<br /><br />3² + 4² = 5²<br />12² + 5² = 13²<br />15² + 8² = 17² <br />7² + 24² = 25²<br />9² + 40² = 41²<br />20² + 21² = 29²<br />48² + 55² = 73² <br /><br />We know that we can generate Pythagorean triples using any two positive integers <i>j</i> and <i>k </i>with the formulas, where <i>j</i> > <i>k</i> with<br /><br /><i>a</i> = <i>j</i>² - <i>k</i>² <i>b</i> = 2<i>jk</i> and <i>c</i> = <i>j</i>² + <i>k</i>²<br /><br />This means there must be infinitely many different Pythagorean triples. If you aren't sure, consider <i>k</i>=1 and we get<br /><br /><i>a</i> = <i>j</i>² - 1 <i>b</i> = 2<i>j</i> and <i>c</i> = <i>j</i>² + 1<br /><br />For any <i>j</i> > 1, we will get a unique Pythagorean triple.<br /><br />Here's a pattern I noticed. Every triple on our list above has one number that is divisible by 5. Let us start with a speculation.<br /><br /><b>Speculation: Every Pythagorean triple has at least one number that is divisible by 5.</b><br /><br />We could create a triple where all three numbers are divisible by 5 just by taking any Pythagorean triple and multiplying all the numbers by 5.<br /><br />Example: Because <b></b>3² + 4² = 5², 15² + 20² = 25², The original numbers are 9 +16 = 25, and if we multiply all the numbers by 5, all the squares are multiplied by 25 and we get 225 + 400 = 625.<br /><br />That explains why the modifier "at least" is used in the speculation.<br /><br />Let's find facts that will help us prove the speculation.<br /><br /><b>Fact: The last digit of a square is determined by the last digit of the original number.</b><br /><br />Think about multiplying two numbers that have two digits together, like 72 × 72.<b> </b><br /><br /><b><span style="font-family: "Courier New", Courier, monospace;"><span style="color: white;">__</span>72</span></b><br /><b><span style="font-family: "Courier New", Courier, monospace;"><u>_×72</u></span></b><br /><b><span style="font-family: "Courier New", Courier, monospace;"><span style="color: white;">_</span>144</span></b><br /><b><span style="font-family: "Courier New", Courier, monospace;"><u>504 </u></span></b><br /><b><span style="font-family: "Courier New", Courier, monospace;">5184</span></b><br /><br /><span style="font-family: "Courier New", Courier, monospace;"><span style="font-family: Times, "Times New Roman", serif;">The ones place is just </span></span>2 × 2 and the 70 isn't involved. This would be true no matter how many digits in a number.<br /><br /><b>Fact: The last digit of a perfect square can only be 0, 1, 4, 9 or 6.</b><br /><br />We can prove this by looking at the list of perfect squares of the numbers 0 through 9 (0, 1, 4, 16, 25, 36, 49, 64, 81) and using the first fact from above that the last digit of a number determines the last digit of the square.<br /><b> </b><br /><b>Fact: The remainder of a perfect square when divided by 5 can only be 0, 1 or 4.</b><br /><br />Because 10 = 2 × 5, the remainder upon division by 5 will look a lot like the last digit, except 6 becomes 1, and 9 becomes 4.<br /><br /><b>Fact: If you want to make a sum of two numbers from the set {0, 1, 4} to add up to 0, 1 or 4, there are only a finite number of patterns and not all of them work.</b><br /><br /><u>0 + 0 = 0 works</u><br /><u>0 + 1 = 1 works</u><br /><u>0 + 4 = 4 works</u><br /><u>1 + 0 = 1 works</u><br />1 + 1 = 2 doesn't work<br /><u>1 + 4 = 5 doesn't work, except when we divide 5 by 5 we get remainder 0, so it does work for us.</u><br /><u>4 + 0 = 4 works</u><br /><u>4 + 1 = 5 doesn't work, except when we divide 5 by 5 we get remainder 0, so it does work for us.</u> <br />4 + 4 = 8 doesn't<br /><br /><b>Fact: Every pattern that works has a 0 or 5 in it.</b><br /><br /><b>Fact: A remainder of 0 when dividing by five means the number is divisible by 5. </b><br /><br /><b>Fact: Because 5 is prime, getting a perfect square that is divisible by 5 means the original number is divisible by 5.</b><br /><br />This means our speculation about the Pythagorean triples is in fact a pattern that is always true. We could call it a "theorem", but I'm going to save that word for <br /><br /><b>Fact: Every Pythagorean triple has at least one number that is divisible by 5.</b><br /><br />Here are two other facts that can be proved using similar methods, which the reader can try to prove if interested.<br /><br /><b>Fact: Every Pythagorean triple has at least one number that is divisible by 3.</b><br /><br /><b>Fact: Every Pythagorean triple has at least one number that is divisible by 2 and one number divisible by 4.</b><br /><br />We don't have any other primes for which this is true. That is proved simply by the triple 3, 4, 5. All the primes greater than 5 (7, 11, 13, 19, ...) do not divide any of these numbers evenly, so we have a single counter-example that works for an infinite number of cases, a situation a lazy mathematician is always happy to find.<br /><br /><br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-14649164882997488552013-08-16T07:59:00.001-07:002013-08-16T07:59:49.052-07:00Another New York City mayoral poll.<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-JCNnrgKBoMI/Ug40CN--TUI/AAAAAAAADv4/m1GufHaOxWk/s1600/New_York_City_Map.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="http://1.bp.blogspot.com/-JCNnrgKBoMI/Ug40CN--TUI/AAAAAAAADv4/m1GufHaOxWk/s320/New_York_City_Map.jpg" width="320" /></a></div>A new poll for the New York City races was released Thursday night, this one from Marist, yet another small East Coast college that does polling.(The earlier polls were from Qunnipiac and Siena, also small East Coast colleges.)<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-folcygWPAB4/Ug43Hl570aI/AAAAAAAADwI/Dm-ZQlUGfWw/s1600/NYC+mayor+16+August.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-brI3F8FgjhU/Ug460Yg68MI/AAAAAAAADwY/TICRymQp1sY/s1600/NYC+mayor+16+August.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-brI3F8FgjhU/Ug460Yg68MI/AAAAAAAADwY/TICRymQp1sY/s320/NYC+mayor+16+August.png" width="320" /></a></div>The latest poll, completed on August 14 sampling 679 Democrats, puts City Council Speaker Christine Quinn and public advocate Bill DiBlasio in a tie at 24% and former comptroller William Thompson in third with 16%.<br /><br />The rules of the race are that if any single candidate polls over 40%, he or she is declared the winner and goes onto the general election. If not, the top two vote getters are in a run-off.<br /><br />If the election were held when the poll was taken, one candidate getting over the 40% mark is highly unlikely, so it's really a race for the top two spots. A week ago, that looked like Quinn and Thompson, but the two polls this week say Quinn and DiBlasio. The event that is considered the turning point is the decision by a judge that "stop and frisk" policies are unconstitutional and DiBlasio's long held objection to the policy in New York City is his key advantage.<br /><br />Marist also polled the Republican race, where Joe Lhota has a large lead but not polling over 40% yet. He could win without need for a run-off depending on how the undecided vote breaks, but he is not given a very good chance against whoever survives the Democratic race.<br /><br />There will certainly be more polls between now and the election and I will give updates when available.<br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-77741961035810411882013-08-15T06:01:00.001-07:002013-08-15T06:01:48.322-07:00Another rule about Pythagorean triples.<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-akNzGulEPFY/UgzLErkLulI/AAAAAAAADvA/aoSZZ4QOT_8/s1600/triangle-3-4-5.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-akNzGulEPFY/UgzLErkLulI/AAAAAAAADvA/aoSZZ4QOT_8/s1600/triangle-3-4-5.gif" /></a></div><br />Last January, <a href="http://mathyear2013.blogspot.com/search/label/Pythagorean%20triples"><b>I wrote several posts about Pythagorean Triples</b></a>, a set of three whole numbers <i>a, b</i> and <i>c</i> that follows the rule of the Pythagorean Theorem <i>a</i>² + <i>b</i>² = <i>c</i>². Here are some examples.<br /><br />3² +4² = 5²<br />8² + 15² = 17²<br />24² + 7² = 25²<br /><br />If we think about these numbers as sides of a triangle, the area will be ½<i>ab</i>. In the cases from above, the areas as 6, 60 and 84, respectively.<br /><br />There is a way to generate all such whole number triples, using two positive integers<i> j</i> and <i>k, </i>with <i>j>k</i>.<br /><br /><i>a</i> = <i>j</i>² - <i>k</i>²<br /><i>b</i> = 2<i>jk</i><br /><i>c</i> = <i>j</i>² + <i>k</i>²<br /><br />Our first rule is that we should stipulate that <i>j</i> does not equal <i>k</i>, because in the that case <i>a</i> = 0. Re-writing <i>a</i> and <i>b</i> in the area formula into multiples of <i>j</i> and <i>k</i>, we get this.<br /><br />Area = ½<i>ab </i>=<i> </i>½(<i>j</i>² - <i>k</i>²)2<i>jk</i> = (<i>j</i>² - <i>k</i>²)<i>jk</i><i></i><br /><br />Since <i>j</i> and <i>k</i> are whole numbers, the area must be a whole number. But more than that the number must be divisible by 6. The proof is split into two parts, first that the area is divisible by 2 and secondly that the area is divisible by 3.<br /><br /><b>Proof of the area is divisible by 2.</b> If <i>j</i> or <i>k</i> is even, then (<i>j</i>² - <i>k</i>²)<i>jk </i>is even, since if you have a product of whole numbers and one is even, the product is even. The only other option is that both <i>j</i> and <i>k</i> is odd, and if that is the case then <i>j</i>² - <i>k</i>² = odd - odd = even.<br /><br /><b>Proof of the area is divisible by 3.</b> If <i>j</i> or <i>k</i> is a multiple of 3, then (<i>j</i>² - <i>k</i>²)<i>jk </i>is a multiple of 3. The only other option is that neither <i>j</i> and <i>k</i> is a mulitple of 3. For any number <i>n</i> that isn't a multiple of 3, <i>n</i>² will be of the form 3<i>p</i> + 1, which is to say one more than some multiple of 3. If that is the case then <i>j</i>² - <i>k</i>² = (3<i>p</i> + 1) - (3<i>q</i> + 1) = 3(<i>p- q</i>), which is a multiple of 3 as well.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-18919569507083528462013-08-14T11:13:00.002-07:002013-08-14T11:13:27.467-07:00More election news:Results from New Jersey, new polls for New York City mayor<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-GbREyVdp_Bc/Ugu6N6HgP-I/AAAAAAAADuI/RJ5hs1cu4uo/s1600/new_jersey.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-GbREyVdp_Bc/Ugu6N6HgP-I/AAAAAAAADuI/RJ5hs1cu4uo/s320/new_jersey.gif" width="247" /></a></div><br />The results from the primary for the New Jersey special election came in and there were no surprises. Cory Booker won the Democratic nomination handily with 59% while his closest rival had 20%. Republican Steve Lonegan beat his single opponent Alieta Eck 79% to 21%.<br /><br />The Booker vs. Lonegan election will be held on Wednesday, Oct. 16. Two months is a long time in politics, but currently Booker is leading comfortably in all the polls that have asked about this particular match-up.<br /> <br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-mR3DXCISGUk/Ugu6PS8U88I/AAAAAAAADuQ/bznBX1hgnFA/s1600/New_York_City_Map.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="http://1.bp.blogspot.com/-mR3DXCISGUk/Ugu6PS8U88I/AAAAAAAADuQ/bznBX1hgnFA/s320/New_York_City_Map.jpg" width="320" /></a></div><br />The New York City mayoral race is much more up in the air. The Democratic primary polls taken this month by Siena and Quinnipiac don't agree on much except the fall of Anthony Weiner from the top tier of candidates.<br /><br />The rules of the primary state that if a single candidate gets more than 40% of the vote, he or she is declared the winner. Otherwise the top two candidates are in a run-off. Here are the results for the top three candidates in the most recent polls.<br /><br /><b>Siena (8/2 to 8/7)</b><br /><b>Quinn 25%</b><br /><b>DiBlasio 14%</b><br /><b>Thompson 16%</b><br /><br /><b>Quinnipiac (8/7 to 8/12)</b><br /><b>DiBlasio 30%</b><br /><b>Quinn 24%</b><br /><b>Thompson 22%</b><br /><br />My Confidence of Victory method does have ways of turning each of these sets of numbers into probabilities of victory for all three of these candidates, and as you might expect the Siena numbers from earlier in the month would make Quinn the prohibitive favorite while the Quinnipiac number would hand the big favorite role to DiBlasio.<br /><br />Quinn has been the favorite for several months, never polling less than second. Similar to the 2012 Republican presidential primary, there is a remarkable amount of what I call "churn" in the numbers. If I stretched the analogy a little farther (perhaps too far, I can't be sure), this would put Christine Quinn, the openly gay speaker of the New York City Council in the role of Romney, while Weiner and DiBlasio, the New York City public advocate and considered the most liberal candidate, in the roles of the many Not Romneys that the Republican field had to offer.<br /><b> </b><br />The last five elections for mayor have been won by a Republican (Giuliani) and a former Republican turned Independent (Bloomberg), but the current assumption is that the star power is gone from the Republican ranks currently and the Democratic primary winner will move to Gracie Mansion.<br /><br />I've read analyses by Harry Enten and Nate Silver, both of whom are very keen on historical track records. Maybe it's because I'm older than either of them or I've just seen so many predictions done on flimsy data turn out so badly, but I'm not convinced the historical record is the right thing to look at. An issue like "stop and frisk" has a strong chance to be a game changer, and that would work to DiBlasio's advantage.<br /><br />Enten believes it's all about ethnic politics, which gives Thompson,who is black, an edge over DiBlasio. Silver thinks Quinn's position as front runner for most of the year gives her the inside track. I claim no expertise about New York politics, but I believe more strongly in event driven elections being the correct modern model and that historical data is often so much balloon juice.<br /><br />I'll post again when there is new data.<br /><br />I will keep track of these races through the primary on September 10, the likely run-off on October 1 and the general election on November 5.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-60576333504372598202013-08-07T07:53:00.000-07:002013-10-14T16:38:36.009-07:00The not much election news to report.<br />My Internet crashed on the day of the reporting of the Massachusetts special Senate election. My prediction said Ed Markey looked like a prohibitive favorite and he won. The median poll said he was leading by seven to ten points, he won by ten.<br /><br />The other two elections in the news are the governor's race in Virginia and the special Senate election in New Jersey. There hasn't been any news since the middle of July in Virginia, where McAuliffe is still leading in the median polls.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-rii7jWSxTvY/UgJd_1YCbuI/AAAAAAAADrA/Da3JT-543UE/s1600/new_jersey.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-rii7jWSxTvY/UgJd_1YCbuI/AAAAAAAADrA/Da3JT-543UE/s320/new_jersey.gif" width="247" /></a></div><br />There is news from New Jersey, but it is of zero interest to those who want an exciting race. Newark mayor Cory Booker has a huge lead in the Democratic primary and former Bogota mayor Steve Lonegan looks to be a shoo-in in the Republican primary. In the general election, Booker has a massive lead as well, though there is a long time between now and the October 16 special election, strangely scheduled for a Wednesday.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-47286283790212394912013-08-01T16:45:00.001-07:002013-08-01T16:45:27.436-07:00inifinite sums of power series<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-cdIaZREanpw/UfrwQZh1EfI/AAAAAAAADoQ/lk4I_jo1PMQ/s1600/infinite+power+series+rule.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-cdIaZREanpw/UfrwQZh1EfI/AAAAAAAADoQ/lk4I_jo1PMQ/s1600/infinite+power+series+rule.png" /></a></div>Yesterday, it was shown that 1/2 + 1/4 + 1/8 + ... = 1. Today we are going to look at the power series for any number <i>x</i> between -1 and 1 (not including 0) for <i>x</i>^0 + <i>x</i>^1 + <i>x</i>^2 + ...<br /><br />We are going to use a trick called telescoping.<br /><br />(1 - <i>x</i>)(1 + <i>x</i> + <i>x</i>²) can be split the positive terms and the negative terms.<br /><br />Positive: 1 + <i>x</i> + <i>x</i>² <br />Negative: - <i>x</i> - <i>x</i>² - <i>x</i>³<br /><br />The two of the positive and negative terms cancel out and we are left with just 1 - <i>x</i>³.<br /><br />If we have a number <i>x</i> between -1 and 1, as the powers increase towards infinity the number gets closer to zero. Dividing both sides by (1 - <i>x</i>) tells us the sum will be equal to 1/(1 - <i>x</i>).<br /><br />For example, if <i>x</i> = ½, the sum 1 + 1/2 + 1/4 + 1/8 + ... = 1/(1 - ½) = 1/½ = 2.<br /><br />if <i>x</i> = -½, the sum 1 - ½ + 1/4 - 1/8 + ... = 1/(1 - (-½)) = 1/(3/2) = 2/3.<br /><br />There are many other methods used in infinite sums, but this is one of the most basic.<br /> Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-41651638107510970992013-07-31T07:16:00.000-07:002013-07-31T07:16:29.475-07:00An short introduction to infinite sums.<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-SjsscGk2zs8/UfkWkHmbTeI/AAAAAAAADnY/5pRnmmtpqKE/s1600/Eye_of_Horus_square.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-SjsscGk2zs8/UfkWkHmbTeI/AAAAAAAADnY/5pRnmmtpqKE/s320/Eye_of_Horus_square.png" width="320" /></a></div><br />On first blush, it might seem that if you add an infinite number of positive numbers together, the sum must be unbounded. But if the numbers are getting small enough fast enough, the sum of an infinite series can be both finite and exactly defined.<br /><br />Probably the simplest infinite sum is the powers of ½. Let's say that half of a room is painted in the first hour, and half of what remains is painted in the second hour, so now 3/4 of the room is painted. For reasons unknown, you decide to let this increasingly lazy person continue their plan of painting less and less each hour, one eighth in the third hour, one sixteenth in the fourth hour, on and on infinitely. I say infinitely because mathematically the room is never finished. (In reality, we will get to a sliver so tiny that it must be painted completely, if only because a molecule of paint once split isn't a molecule of paint anymore.)<br /><br />In math, this is well understood now to be an infinite sum that adds up to 1. You might fairly say "we never get there", which is true. This was the point of one of the famous paradoxes of the ancient Greek mathematician and philosopher Zeno. But in modern math we have the concept of a limit as <i>n</i> approaches infinity. We can agree that the sum never gets to be more than 1, and the idea of a limit is that you get to choose how close you want the sum to be to 1 and I have to give a number of steps which will guarantee a sum that is closer than your given definition of "close enough". For example, if we want the sum to be within one millionth of 1, which is to say larger than .999999 but still less than 1, I can guarantee that after twenty steps, the sum will be that large, because ½ raised to the twentieth power is slightly less than one millionth.<br /><br />Tomorrow, one of the tricks used for the general power series of positive numbers less than 1.Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-64565032304701425782013-07-29T16:24:00.002-07:002013-07-29T16:24:32.226-07:00The top of the bell shaped curve<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-xRPLeqOLXlw/Ufb2tb3skjI/AAAAAAAADmI/255-jUkKlOI/s1600/bell+shaped+curve+from+-3+to+3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://4.bp.blogspot.com/-xRPLeqOLXlw/Ufb2tb3skjI/AAAAAAAADmI/255-jUkKlOI/s320/bell+shaped+curve+from+-3+to+3.png" width="320" /></a></div><br />This is the bell shaped curve from <i>x</i> ranging from -3 to 3. Note that this is NOT the normal curve, the famous workhorse of statistics. In math, "normal" usually means there is something about object whose measure is 1. This curve has a highest point at (0,1) but the normal curve has an area between the curve and the <i>x</i>-axis of 1. (In math, we would talk about this as the value of the definite integral from negative infinity to infinity.)<br /><br />While this is not the normal curve, one calculus related attribute it shares with the normal curve is that the points of inflection are at <i>x</i> = -1 and <i>x</i> = 1.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-nXo9TO8O8M0/Ufb2vKVRq3I/AAAAAAAADmQ/45GXH28jujk/s1600/circle+parabola+bell+shaped+curve.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://3.bp.blogspot.com/-nXo9TO8O8M0/Ufb2vKVRq3I/AAAAAAAADmQ/45GXH28jujk/s320/circle+parabola+bell+shaped+curve.png" width="320" /></a></div><br />Here is how the curve compares to the top of the unit circle from -1 to 1 and the parabola <i>y</i> = 1 - <i>x</i>² over the same range.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-AX5ABGZD6JM/Ufb2wmzb8EI/AAAAAAAADmY/rg5ZXgWfStY/s1600/circle+parabola+bell+shaped+curve+cosine.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="232" src="http://3.bp.blogspot.com/-AX5ABGZD6JM/Ufb2wmzb8EI/AAAAAAAADmY/rg5ZXgWfStY/s320/circle+parabola+bell+shaped+curve+cosine.png" width="320" /></a></div><br />The curve that is very close to the same shape when the bottom points (-1, 0) and (1, 0) and top point (0, 1) are lined up the cosine function. The bell shaped curve is shown in blue dots and the cosine function in purple dashes. The most they disagree by is about .00647, a little more than six parts in one thousand. Still, they do disagree and are not the same function as far as mathematicians are concerned.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0tag:blogger.com,1999:blog-2271145490159246082.post-45088401408312499022013-07-28T06:12:00.000-07:002013-07-28T06:12:01.648-07:00The catenary and the parabola.<br />If the two ends of a chain are held fast at the same height, what is the shape of the hanging section? This question has been around for a long time. Galileo speculated it was a parabola, but some experimentation showed him that wasn't accurate.<br /><br />The name of the shape is the catenary. The simplest equation for the shape is the hyperbolic cosine function, <i>y</i> = ½(<i>e</i>^<i>x</i> + <i>e</i>^-<i>x</i>). Unlike sine and cosine that oscillate us and down, hyperbolic cosine has just the one lowest point, like a parabola, and hyperbolic sine looks something like the cubic. The thing that makes them sort of like the trig functions is that each is the derivative and anti-derivative of the other. (I write "sort of" because the derivative of sine is cosine, but the derivative of cosine is negative sine.)<br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-VEboKKCKTH0/UfUOQMeeovI/AAAAAAAADlQ/II3c_MOKNVo/s1600/catenary+and+parabola.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="192" src="http://1.bp.blogspot.com/-VEboKKCKTH0/UfUOQMeeovI/AAAAAAAADlQ/II3c_MOKNVo/s320/catenary+and+parabola.png" width="320" /></a></div><br />As pretty as the tangent line representations can be, looking at the actual functions is clearer in this case.<br /><br />Red curve is the catenary from <i>x</i> = -3 to 3.<br /><br />The blue shape is <i>y </i>= <i>x</i>² + 1.<br /><br />The 1 added so they coincide more closely. A catenary grows slightly more slowly than the parabola at the vertex, but it is an exponential function, so when it starts to grow faster, it will overwhelm a quadratic function very quickly.<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-_5PyeQM7CP4/UfUOODp6faI/AAAAAAAADlI/g428fGRcZBY/s1600/catenary+and+parabola+2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-_5PyeQM7CP4/UfUOODp6faI/AAAAAAAADlI/g428fGRcZBY/s320/catenary+and+parabola+2.png" width="66" /></a></div><br />This drawing is the catenary in red and the parabola in blue yet again, but this time from -5 to 5. The shape of the hanging chain depends on the ratio of the length of the chain to the distance apart of the points from which the shape hangs. To get the exact comparison of the catenary and parabola with those values given is a harder thing to compute and describe, as it involves the arc length formula for the parabola and the catenary, which turn into messy integrals.<br /><br />Tomorrow we will look at the top of the bell shaped curve before the second derivative goes to zero and compare it to the top of a circle.<br /><br />Prof. Hubbardhttp://www.blogger.com/profile/16575880031145705761noreply@blogger.com0