This example uses the Companies.jmp data table, which contains financial data for 32 companies from the pharmaceutical and computer industries.
First, create a scatterplot to see the relationship between the number of employees and the amount of sales revenue. This scatterplot was created in Create the Scatterplot in Visualize Your Data. After hiding and excluding one outlier (a company with significantly more employees and higher sales), the plot in Scatterplot of Sales ($M) versus # Employ shows the result.
To predict the sales revenue from the number of employees, fit a regression model. From the red triangle for Bivariate Fit, select Fit Line. A regression line is added to the scatterplot and reports are added to the report window.
•
|
Since the RSquare value in this example is large, this confirms that a prediction model based on the number of employees can predict sales revenue. The RSquare value shows the strength of a relationship between variables, also called the correlation. A correlation of 0 indicates no relationship between the variables, and a correlation of 1 indicates a perfect linear relationship.
|
2.
|
3.
|
Using the results in Comparing the Models, the data analyst can make the following conclusions: