Table of Contents
Logistic regression is a statistical analysis technique used to predict the likelihood of a binary outcome based on one or more independent variables. In order to perform logistic regression in Google Sheets, one can use the built-in function “LOGEST”. This function allows the user to input the data and specify the independent and dependent variables, as well as any additional parameters. Once the function is applied, the resulting output will provide the regression coefficients and other relevant statistical information. Google Sheets also offers various charting options to visually represent the logistic regression model. Overall, performing logistic regression in Google Sheets is a simple and effective way to analyze and predict binary outcomes using readily available data.
Perform Logistic Regression in Google Sheets
Logistic regression is a method we can use to fit a regression model when the response variable is binary.
The following step-by-step example shows how to perform logistic regression in Google Sheets.
Step 1: Install the XLMiner Analysis ToolPak
To perform logistic regression in Google Sheets, we need to first install the free XLMiner Analysis Toolpak.
To do so, click Add-ons > Get add-ons:

Next, type XLMiner Analysis ToolPak in the search bar and click the icon that appears:

Lastly, click the blue Install button.

Step 2: Enter the Data
Next, we’ll enter the following data into Google Sheets:

We will fit a logistic regression model that uses points and assists to predict whether a basketball player gets drafted into the NBA (0 =No, 1 = Yes).
Step 3: Perform Logistic Regression
To fit the logistic regression model, click the Extensions tab, then click XL Miner Analysis ToolPak, then click Start:


Once you click OK, the summary of the logistic regression model will be displayed:

The coefficients in the output indicate the average change in log odds of getting drafted.
For example, a one unit increase in points is associated with an average increase of 0.212 in the log odds of getting drafted.
The sign on the coefficients tells us whether there is a positive or negative associated between each predictor variable and the response variable.
For example, since points has a positive sign for the coefficient it means that increasing the value for points increases the chances that a player gets drafted (assuming assists is held constant).
Conversely, since assists has a negative sign for the coefficient it means that increasing the value for assists decreases the chances that a player gets drafted (assuming points is held constant).
The p-values in the output also give us an idea of how effective each predictor variable is at predicting the probability of getting drafted:
- P-value for points: 0.02
- P-value for assists: 0.35
We can see that points seems to be a statistically significant predictor variable since it has a p-value less than .05, but assists does not seem to be statistically significant since it does not have a p-value less than .05.
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I perform logistic regression in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-perform-logistic-regression-in-google-sheets/
stats writer. "How can I perform logistic regression in Google Sheets?." PSYCHOLOGICAL SCALES, 26 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-perform-logistic-regression-in-google-sheets/.
stats writer. "How can I perform logistic regression in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-perform-logistic-regression-in-google-sheets/.
stats writer (2024) 'How can I perform logistic regression in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-perform-logistic-regression-in-google-sheets/.
[1] stats writer, "How can I perform logistic regression in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I perform logistic regression in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
