

Enable the Analysis ToolPak add-inĪnalysis ToolPak is available in all versions of Excel 365 to 2003 but is not enabled by default.
#P value excel how to#
This example shows how to run regression in Excel by using a special tool included with the Analysis ToolPak add-in. How to do linear regression in Excel with Analysis ToolPak


Regression analysis helps you understand how the dependent variable changes when one of the independent variables varies and allows to mathematically determine which of those variables really has an impact. Independent variables (aka explanatory variables, or predictors) are the factors that might influence the dependent variable. In statistical modeling, regression analysis is used to estimate the relationships between two or more variables:ĭependent variable (aka criterion variable) is the main factor you are trying to understand and predict. You can also create a scatter plot of these residuals.Regression analysis in Excel - the basics For example, the first data point equals 8500. The residuals show you how far away the actual data points are fom the predicted data points (using the equation). For example, if price equals $4 and Advertising equals $3000, you might be able to achieve a Quantity Sold of 8536.214 -835.722 * 4 + 0.592 * 3000 = 6970. You can also use these coefficients to do a forecast. For each unit increase in Advertising, Quantity Sold increases with 0.592 units. In other words, for each unit increase in price, Quantity Sold decreases with 835.722 units. The regression line is: y = Quantity Sold = 8536.214 -835.722 * Price + 0.592 * Advertising. Most or all P-values should be below below 0.05. Delete a variable with a high P-value (greater than 0.05) and rerun the regression until Significance F drops below 0.05. If Significance F is greater than 0.05, it's probably better to stop using this set of independent variables. If this value is less than 0.05, you're OK. To check if your results are reliable (statistically significant), look at Significance F ( 0.001).
