# Driver (Importance) Analysis

*Driver analysis* computes an estimate of the importance of various *independent variables* in predicting a *dependent variable*. Most commonly, the dependent variable measures preference or usage of a particular brand (or brands), and the independent variables measure characteristics of this brand (or brands). For example, the dependent variable may be a measure of overall satisfaction and the independent variables may be measurements of satisfaction with bank fees, efficiency, friendliness, wait times, etc.

## Contents

## How to run driver analyses in Q

The most straightforward way to compute driver analysis is using **Automate > Browse Online Library** in Q 4.8.3 or later (QScripts > Online Library in Q 4.8.2) and choosing from the various options beginning with `Regression - Driver (Importance) Analysis`. Note that this method will treat all variables as being numeric, irrespective of their Variable Type and their Question Type.

Most variants of driver analysis are run using regression and consequently it is possible to compute some variants of driver analysis from Regression and Experiments. Also, some researchers use Correlation as a way of computing importance scores.

## Methods

### Linear Regression Coefficients

Linear regression *coefficients* are estimates of the sensitivity of the dependent question to changes in the independent questions (or, to use the language more commonly associated with regression, the independent variables and the dependent variable). For example, if a regression model reveals that the effect of a small change in price on sales is twice the effect of a similarly small change in advertising, then the importance of price will be computed as twice that of advertising.

In Q, *importance* is defined as the absolute value of the coefficients normalized to add to 1.0. More formally, where linear regression estimates the coefficient, for the th of independent variables, where is the of observations on the variable, is the th observed value of the dependent variable, is an error term, and the model is of the form

, and the importance of the th variable, is defined as .

For example, if two coefficients are estimated as 7 and -3, their importances are, respectively, and

This method is referred to as *importance* when analyzing in Q using Regression.

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors of the linear regression coefficients used in the t-tests are obtained using the following formula:

where is the regression design matrix of dimensions whose entries are for and for .

### Contribution

*Contribution* is a calculation of the extent to which an independent question explains variation in the dependent question in the data. Whereas the regression coefficient identifies differences in sensitivity, contribution is also influenced by the extent of variation of the independent variables. For example, the coefficient of price may be twice that of advertising, but the contribution of the advertising can be greater than that of price if the data contains lots of variation in advertising but little in price (i.e., if the data shows little difference in price, then price cannot have had a large contribution to the dependent variable, sales).

Driver analysis based on coefficients can be thought of as a measure of the potential of variables, whereas contribution is more of a measure of the historical impact of the variables.

Where is the coefficient of the th of independent variables, and where is the of observations on the variable, the contribution of the th variable, is defined as:

For example, with two coefficients estimated as 7 and -3, the respective independent variables and resulting calculations of contribution are shown in the table below.

1 | 1 | 49 | 9 |

2 | 1 | 196 | 9 |

1 | 2 | 49 | 36 |

2 | 2 | 196 | 36 |

Total | 490 | 90 | |

Contribution | 0.84 | 0.16 |

The contribution scores are scale-independent (i.e., transforming the independent variables by modifying their variance will not change the computed contribution scores).

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors of the contribution scores used in the t-tests are estimated using an analytical formula derived from the expression above for .

### Beta

*Beta* here refers to the `Beta` scores provided in the Regression Outputs and should not be confused with the regression coefficients which are shown as and are sometimes referred to in economics and other disciplines as "beta" scores.

*Beta* are standardized coefficients, and are computed as the regression coefficients where the dependent variable and independent variables have first been standardized to have a standard deviation of 1.0. The justification for doing this is to deal with situations where the variables have different or incomparable scales.

Additionally, when running Regression - Driver (Importance) Analysis - Beta they have been standardized to add up to 100% (as described above for the regression coefficients).

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors of the raw *Beta* scores used in the t-tests are those for the coefficients from a regression where the input variables have been standardized as described above.

### Shapley

*Shapley* is a name commonly used in customer satisfaction and customer value analysis for describing a technique which has been reinvented multiple times.^{[1]}^{[2]}^{[3]} Proponents of this method generally claim it is superior to the other methods because it better addresses the consequences of independent variables being correlated.

The method is best explained by example. Consider a simple driver analysis where the dependent variable measures preference and there are two independent variables, one measuring 'a good price' (PRICE) and the other measuring 'good quality' (QUALITY). It is possible to form three different regression models with this data:

- Predicting preference using only on PRICE (let us say that the R-square for this is 0.64).
- Predicting preference using only on QUALITY (let us say that the R-square for this is 0.16).
- Predicting preference using both PRICE and QUALITY (let us say that the R-square for this is 0.65).

With these three models we can compute two separate effects on R-square for PRICE:

- We can note that on its own, PRICE accounts for 0.64 / 0.65 = 98.5% of the explainable variance in preference.
- However, if QUALITY is already in the model, PRICE only accounts for the increment from 0.16 to 0.65, which is thus (0.65 - 0.16)/0.65 = 75.4%.

Which of these two is correct? If we assume that we have no way of knowing which is correct, we can take the average and thus compute the importance as their average (i.e., 86.9%). By the same logic we compute that the importance of QUALITY is 13.1%.

Where there are more independent variables the maths is the same, but we need to compute the average across more orderings (e.g., if we have 10 independent variables then we need to compute the R-squares across 1024 regressions). For this reason, each additional variable that is included slows down the computation of the Shapley value. For cases where there are more than 15 independent variables, Relative Importance Analysis values are returned, as the two yield highly similar results. In such cases, Relative Importance Analysis runs in a reasonable length of time, in contrast to Shapley, which could take a few minutes to a few hours.

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors for the Shapley values used in the t-tests are obtained from calibrating standard errors calculated for the Relative Importance Analysis measure, as the two measures are highly similar. This is an approximate method that works in practice and is much faster than other alternatives such as bootstrapping.

### Kruskal

In the description of *Shapley* driver analysis above, the analysis looked at the incremental improvement in R-square when variables were added into the model. This incremental improvement is also known as the *squared semi-partial correlations*. A related statistic is the *squared partial correlation* and Kruskal's method is identical to 'Shapley', except that it uses the squared partial correlation instead of the squared semi-partial correlation (see ^{[4]}). To the best of our knowledge, there is no intuitively coherent way of describing the difference between Kruskal and Shapley (i.e., the difference only seems to be able to be described with maths).

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors for the Kruskal values used in the t-tests are obtained from calibrating standard errors calculated for the Relative Importance Analysis measure, as the two measures are highly similar. This is an approximate method that works in practice and is much faster than other alternatives such as bootstrapping.

The time required to compute Kruskal analysis results increases exponentially with the number of independent variables. As a result, Kruskal analysis may become noticeably slow from 15 variables onwards and may take minutes or even hours when there are more than 20 variables. Due to technical reasons, Kruskal is limited to 27 independent variables. For large numbers of variables, it is recommended that Relative Importance Analysis is used instead of Kruskal analysis, as both yield similar results.

### Relative Importance Analysis

Relative Importance Analysis yields scores that are similar to Shapley importance and Kruskal importance, but takes much less time to compute. Relative Importance Analysis works by transforming the set of independent variables to a set of orthogonal variables that are not correlated with each other. It turns out that the squared regression coefficients from the linear regression using the orthogonal variables represent each variable's contribution to the R-square. The Relative Importance score for each independent variable is simply a convex combination (a weighted sum where weights add up to 1) of the squared regression coefficients, with the weights calculated based on the orthogonal variable transformation.^{[5]}

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors of the Relative Importance Analysis values used in the t-tests are estimated using an analytical formula derived from the convex combination expression for each value.

### Elasticity

In economics, it is commonplace to transform the data by taking the natural logarithm of the dependent and independent variables. The resulting coefficients are then referred to as 'elasticities' and have the interpretation that they indicate the relative effects, in percentage terms, of a change of independent variables relative to the dependent variable. For example, an elasticity of -3 indicates that a 10% increase in prices will result in a 30% decrease in sales. Typically, driver analysis is only conducted using elasticities when the data is behavioural (e.g., sales or purchasing data).

The statistical significance of scores is determined by t-tests as described in Statistical testing. The standard errors of the elasticities used in the t-tests are those for the coefficients from a regression where the input variables have been log-transformed as described above.

## Choosing a driver analysis method

The various driver methods available in Q have been created due to frequent requests by clients. It is unclear if a specific method is better than the others, or even if any of the methods are valid. However, of the methods available in Q, *Shapley* seems to be more often described as being "state-of-the-art" (e.g., ^{[6]} ).

## Dealing with multiple brands

Where there is a need to conduct driver analysis across multiple brands (e.g., if preference is measured for each of 10 brands), this can be achieved by first Stacking the data file. In situations where the measure of preference reflects the relative appeal of different brands (e.g., a choice of favorite brand), the most practical solution is likely to be to estimate an Experiment and manually compute importance scores from the coefficients.

## Categorical variables

When categorical variables are selected as input variables in driver analysis, linked numeric variables are created using the raw numeric data from the categorical variables, which are then used in the analysis. It is essential that the category values are such that the resulting numeric variables make sense. For example, the category values for a Pick One question with age categories `18 to 24`, `25 to 29`, `30 to 34`, `35 to 39` would usually only make sense if they were monotonic, e.g., 1, 2, 3, 4.

Note that the treatment of categorical variables is different from that in Regression - Generalized Linear Model, which runs the analysis on dummy variables from the categorical predictors instead of converting them to numeric.

## Score signs

For Q 4.9.1 or later, (positive and negative) signs are applied to driver analysis scores to match the signs of the corresponding linear regression coefficients from the model including all of the independent variables. Thus the direction of the influence of each independent variable is presented in the scores, in addition to the magnitude. The magnitudes of the driver analysis scores (except for Elasticity) are normalized to sum to 100%. Statistical tests are conducted on the signed raw scores, and the value of test statistics may be different from previous versions, resulting in different test results.

See also Why Do Shapley and Kruskal Driver Analysis Have Negative Scores?.

## Statistical testing

The significance of each cell is determined by conducting a t-test comparing whether the raw score in the cell is statistically different from zero. The t-statistic in this case would be the signed raw score divided by the *standard error* of the raw score. The *standard error* is the standard deviation of the raw score estimate. When a Pick One, Pick Any or Date question is selected in the brown drop-down menu to form a crosstab, a t-test is conducted comparing whether the raw score in the cell is statistically different from the raw score obtained from the complement of the category, as explained in Testing the Complement of a Cell.

When we conduct the t-tests, we assume that the raw scores are normally distributed. In reality, the raw scores for Contribution, Shapley, Kruskal and Relative Importance Analysis are not normally distributed, since they cannot be less than zero. Even though the raw scores cannot be less than zero, the estimated standard errors are often sufficiently large that under the t-test, the raw scores are often determined to be not significant from zero.

Confidence intervals for each raw score may be displayed by selecting the Lower Confidence Bound and Upper Confidence Bound cell statistics. The intervals are computed using the standard errors of the raw scores with the assumption that the raw scores are normally distributed. The intervals are constrained to be between 0 and 1 when the raw scores are bound by these constraints (e.g. Shapley).

## Also known as

- Importance analysis.
- Key driver analysis.
- Preference regression.

## See also

- Regression - Driver (Importance) Analysis - Linear Regression Coefficients
- Regression - Driver (Importance) Analysis - Contribution
- Regression - Driver (Importance) Analysis - Beta
- Regression - Driver (Importance) Analysis - Kruskal
- Regression - Driver (Importance) Analysis - Shapley
- Regression - Driver (Importance) Analysis - Relative Importance Analysis
- Regression - Driver (Importance) Analysis - Elasticity

## References

- ↑ Grömping, Ulrike (2007). Estimators of Relative Importance in Linear Regression Based on Variance Decomposition. The American Statistician, 61, 139–147.
- ↑ Michael Conklin, Ken Powaga, Stan Lipovetsky (2004). Customer satisfaction analysis: Identification of key drivers. European Journal of Operational Research, Volume 154, Issue 3, 1 May 2004, Pages 819-827
- ↑ Lindeman, R. H., Merenda, P. F., & Gold, R. Z. (1980). Introduction to bivariate and multivariate analysis. Glenview, IL: Scott, Foresman and Company.
- ↑ Kruskal, W. (1987a), “Relative Importance by Averaging over Orderings,” The American Statistician, 41, 6–10.
- ↑ Tonidandel, S., LeBreton, J.M., Johnson, J.W. (2009), Determining the Statistical Significance of Relative Weights, Psychological Methods, Vol. 14, No. 4, 387-399.
- ↑ Grömping, Ulrike (2009). Variable Importance Assessment in Regression: Linear Regression versus Random Forest. The American Statistician, November 2009, Vol. 63, No. 4.

Further reading: Key Driver Analysis Software