Never trust the weatherLet’s analyze sunshine and attendanceExploring types of dataAll about bivariate dataVisualizing bivariate dataScatter diagrams show you patternsCorrelation vs. causationWe need to predict the concert attendancePredict values with a line of best fitYour best guess is still a guessWe need to find the equation of the lineWe need to minimize the errorsIntroducing the sum of squared errorsFind the equation for the line of best fitLet’s start with bFinding the slope for the line of best fitWe use x̄ and ȳ to help us find bFinding the slope for the line of best fit, part iiWe’ve found b, but what about a?You’ve made the connectionLet’s look at some correlationsAccurate linear correlationNo linear correlationThe correlation coefficient measures how well the line fits the dataThere’s a formula for calculating the correlation coefficient, rFind r for the concert dataFind r for the concert data, continuedYou’ve saved the day!Leaving town...It’s been great having you here in Statsville!