Linear Regression: An Example Problem
Creating a Command-Line Tool
Dealing with Build Errors
For most of this book, we work on applications that do linear regression, a simple but informative statistic. Suppose that you have a series of data pairs, such as the quarterly sales figures for a particular department, as shown in Table 2.1.
Table 2.1. Quarterly Sales Figures for a Hypothetical Company (millions of dollars)
A regression line is the straight line that passes nearest all the data points (see Figure 2.1). The formula for such a line is y = mx + b, or the sales (y) for a given quarter ...