Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
64 views
13 pages
Logestic Regression Model
Uploaded by
tuneless wawe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Logestic Regression Model For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
64 views
13 pages
Logestic Regression Model
Uploaded by
tuneless wawe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Logestic Regression Model For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Logestic Regression Model For Later
You are on page 1
/ 13
Search
Fullscreen
ae UX Ul Web Data Digita’ More ’ UX Ul Design Design Development Analytics © Marketing Categories Design Design What is Logistic Regression? A Beginner's Guide & BY ANAMIKA THANDA, UPDATED ON VAY 11, 15 mins reac If you're new to the field of data analytics, you're probably trying to get to grips with all the various techniques and tools of the trade. One particular type of analysis that data analysts use is logistic regression —but what exactly is it, and what is it used for? This guide will help you to understand what logistic regression is, together with some of the key concepts related to regression analysis in general. By the end of this post, you will have a clear idea of what logistic regression entails, and you'll be familiar with the different types of logistic regression. We'll also provide examples of when this type of analysis is used, and finally, go over some of the pros and cons of logistic regression. We've divided our guide as follows: 1. An introduction to regression analysis 2. What is logistic regression? 3. Assumptions of logistic regression 4, What is logistic regression used for? 5. What are the different types of logistic regression? 6. What are the advantages and disacvantages of using log’stic regression? 7. Key takeaways and next stepsUx ul Web Data Digital More ov UX ul Design Design rr Oana Sa Gener ei Rea an Regression analysis is a type of predictive modeling technique which is used to find the relationship between a dependent variable (usually known as the “Y” variable) and either one independent variable (the “X” variable) or a series of independent variables. When two or more independent variables are used to predict or explain the outcome of the dependent variable, this is known as multiple regression Regression analysis can be used for three things: 1. Forecasting the effects or impact of specific changes. For example, if a manufacturing company wants to forecast how many units of a particular product they need to produce in order to meet the current demand. n Forecasting trends and future values. For example, how much will the stock price of Lufthansa be in 6 months from now? w . Determining the strength of different precictors—or, in other words, assessing how much of an impact the independent variable(s) has on a dependent variable. For example, if a soft drinks company is sponsoring a football match, they might want to determine if the ads being displayed during the match have accounted for any increase in sales. Regression analysis can be broadly classified into two types: Linear regression and logistic regression. In statistics, linear regression is usually used for predictive analysis. It essentially determines the extent to which there is a linear relationship between a dependent variable and one or more independent variables. In terms of output, linear regression will give you a trend line plotted amongst a set of data points. You might use linear regression if you wanted to predict the sales of a company based on the cost spent on online advertisements, or if you wanted to see how the change in the GDP might affect the stock price of a company.me UX Ul Web Data Digita’ More ’ UX Ul sDesignur Design ovDevelopment ww iAnaiytisscuvMarketing Categories Design Design 2. What is logistic regression? Logistic regression is a classification algorithm. It is used to predict a binary outcome based on a set of independent variables Ok, so what does this mean? A binary outcome is one where there are only two possible scenarios—either the event happens (1) or it does not happen (0). Independent variables are those variables or factors which may influence the outcome (or dependent variable) So: Logistic regression is the correct type of analysis to use when you're working with binary data. You know you're dealing with binary data when the output or dependent variable is dichotomous or categorical in nature; in other words, if it fits into one of two categories (such as “yes” or “no”, "pass" or “fail”, and so on). However, the independent variables can fall into any of the following categories: 1. Continuous—such as temperature in degrees Celsius or weight in grams. In technical terms, continuous data is categorized as either interval data, where the intervals between each value are equally split, or ratio data, where the intervals are equally split and there is a true or meaningful “zero”. For example, temperature in degrees Celsius would be classified as interval data; the difference between 10 and 11 degrees C is equal to the difference between 30 and 31 degrees C, but there is no true zero—a temperature of zero degrees does not mean there is “no temperature”, On the other hand, weight in grams would be classified as ratio data; it has the equal intervals and a true zero. In other words, if something weighs zero grams, it truly weighs nothing. n Discrete, ordinal—that is, data which can be placed into some kind of order on a scale. For example, if you are asked to state how happy you are on a scale of 1-5, the points on the scale represent ordinal data. A score of 1 indicates a lower degree of happiness than a score of 5, but there is no way of determining the numerical value betweenme UX ul Web Data Digital Moe ov UX ul Desigh (cin Desist ier Development oApaiticseye Marketing 1j\Galezories:ategorid@esi@tie”, Design “brown”, or “green”, but there is no hierarchy to these categories. So, in order to determine if logistic regression is the correct type of analysis to use, ask yourself the following: « Is the dependent variable dichotomous? In other words, does it fit into one of two set categories? Remember: The dependent variable is the outcome; the thing that you're measuring or predicting « Are the independent variables either interval, ratio, or ordinal? See the examples above for a reminder of what these terms mean. Remember: The independent variables are those which may impact, or be used to predict, the outcome. In addition to the two criteria mentioned above, there are some further requirements that must be met in order to correctly use logistic regression. These requirements are known as “assumptions”; in other words, when conducting logistic regression, you're assuming that these criteria have been met. Let's take a look at those now. 3. Logistic regression assumptions * The dependent variable is binary or dichotomous— i.e. It fits into one of two clear-cut categories. This applies to binary logistic regression, which is the type of logistic regression we've discussed so far. We'll explore some other types of logistic regression in section five. « There should be no, or very little, multicollinearity between the predictor variables—in other words, the predictor variables (or the independent variables) should be independent of each other. This means that there should not be a high correlation between the independent variables. In statistics, certain tests can be used to calculate the correlation between the predictor variables; if you're interested in learning more about those, just search “Spearman's rank correlation coefficient” or “the Pearson correlation coefficient.”me UX ul Web Data Digital Moe ov UX ul Desigite resign (an BavehementyouAnavticnectMarkatiogts cPgteePtiasalysis to Resign Design What are log odds? In very simplistic terms, log odds are an alternate way of expressing probabilities. In order to understand log odds, it's important to understand a key difference between odds and probabilities: odds are the ratio of something happening to something not happening, while probability is the ratio of something happening to everything that could possibly happen. For example: if you and your friend play ten games of tennis, and you win four out of ten games, the odds of you winning are 4 to 6 ( or, as a fraction, 4/6). The probability of you winning, however, is 4 to 10 (as there were ten games played in total). As we can see, odds essentially describes the ratio of success to the ratio of failure. In logistic regression, every probability or possible outcome of the dependent variable can be converted into log odds by finding the odds ratio. The log odds logarithm (otherwise known as the logit function) uses a certain formula to make the conversion. We won't go into the details here, but if you're keen to learn more, you'll ind a good explanation with examples in this guide. 4. What is logistic regression used for? Now we know, in theory, what logistic regression is—but what kinds of real-world scenarios can it be applied to? Why is it useful? Logistic regression is used to calculate the probability of a binary event occurring, and to deal with issues of classification. For example, predicting if an incoming email is spam or not spam, or predicting if a credit card transaction is fraudulent or not fraudulent. In a medical context, logistic regression may be used to predict whether a tumor is benign or malignant. In marketing, it may be used to predict if a given user (or group of users) will buy a certain product or not. An online education company might use logistic regression to predict whether a student will complete their course on time or not.me UX ul Web Data Digital More =v UX ul w Designs Design 11 :Bevelopments;. Anaivties i «Marketing >) Categories) urucr vDesigny-Besign profits. And that’s what every company wants, right? For example, it wouldn't make good business sense for a credit card company to issue a credit card to every single person who applies for one. They need some kind of method or model to work out, or predict, whether or not a given customer will default on their payments. The two possible outcomes, “will default” or “will not default”, comprise binary data—making this an ideal use-case for logistic regression. Based on what category the customer falls into, the credit card company can quickly assess who might be a good candidate for a credit card and who might not be. Similarly, a cosmetics company might want to determine whether a certain customer is likely to respond positively to a promotional 2-for-1 offer on their skincare range. In which case, they may use logistic regression to devise a model which predicts whether the customer will be a “responder” or a “non-responder.” Based on these insights, they'll then have a better idea of where to focus their marketing efforts. 5. What are the different types of Logistic regression? In this post, we've focused on just one type of logistic regression—the type where there are only two possible outcomes or categories (otherwise known as binary regression). In fact, there are three different types of logistic regression, including the one we're now familiar with: The three types of logistic regression are: 1. Binary logistic regression is the statistical technique used to predict the relationship between the dependent variable (Y) and the independent variable (X), where the dependent variable is binary in nature. For example, the output can beme UX ul Web Data Digtal More ¥ UX ul DesignapicDesianwo Bevelermenbrachnalytics|s (\Marketipg mofalegoriess outcorPesignt is Design very similar to logistic regression except that here you can have more than two possible outcomes, For example, let's imagine that you want to predict what will be the most- used transportation type in the year 2030. The transport type will be the dependent variable, with possible outputs of train, bus, tram, and bike (for example). w Ordinal logistic regression is used when the dependent variable (Y) is ordered (i.e ordinal). The dependent variable has a meaningful order and more than two categories hirt size (XS/S/M/LXL), answers on or levels. Examples of such variables might be an opinion poll (Agree/Disagree/Neutral), or scores on a test (Poor/Average/Good), 6. What are the advantages and disadvantages of using logistic regression? By now, you hopefully have a much clearer idea of what logistic regression is and the kinds of scenarios it can be used for. Now let’s consider some of the advantages and disadvantages of this type of regression analysis. Advantages of logistic regression + Logistic regression is much easier to implement than other methods, especially in the context of machine learning: A machine learning model can be described as a mathematical depiction of a real-world process. The process of setting up a machine learning model requires training and testing the model. Training is the process of finding patterns in the input data, so that the model can map a particular input (say, an image) to some kind of output, like a label. Logistic regression is easier to train and implement as compared to other methods + Logistic regression works well for cases where the dataset is linearly separable: A dataset is said to be linearly separable if it is possible to draw a straight line that can separate the two classes of data from each other. Logistic regression is used when yourme UX ul Web Data Digital Moe ov UX ul DesigthsurBesietow fBavenpmentnacAaabtion: vaMarketiog c. Galeassiesicient siResignit alBesien tells us about the direction of the relationship (positive or negative). Two variables are said to have a positive association when an increase in the value of one variable also increases the value of the other variable. For example, the more hours you spend training, the better you become at a particular sport. However: It is important to be aware that correlation does not necessarily indicate causation! In other words, logistic regression may show you that there is a positive correlation between outdoor temperature and sales, but this doesn’t necessarily mean that sales are rising because of the temperature. If you want to learn more about the difference between correlation and causation, take a look at this post Disadvantages of logistic regression + Logistic regression fails to predict a continuous outcome. Let’s consider an example to better understand this limitation. In medical applications, logistic regression cannot be used to predict how high a pneumonia patient’s temperature will rise. This is because the scale of measurement is continuous (logistic regression only works when the dependent or outcome variable is dichotomous). Logistic regression assumes linearity between the predicted (dependent) variable and the predictor (independent) variables. Why is this a limitation? In the real world, it is highly unlikely that the observations are linearly separable, Let’s imagine you want to classify the iris plant into one of two families: sentosa or versicolor. In order to distinguish between the two categories, you're going by petal size and sepal size. You want to create an algorithm to classify the iris plant, but there's actually no clear distinction—a petal size of 2cm could qualify the plant for both the sentosa and versicolor categories. So, while linearly separable data is the assumption for logistic regression, in reality, it's not always truly possible. * Logistic regression may not be accurate if the sample size is too small. If the sample size is on the small side, the model produced by logistic regression is based on a smaller number of actual observations. This can result in overfitting. In statistics,ae UX Ul Web Data Digita’ More ’ UX Ul Designo, aDesignacc Developmentic. Analytics) 1Marketingw oCategotiesaiase. Design Design 7. Final thoughts So there you have it: A complete introduction to logistic regression. Here are a few takeaways to summarize what we've covered:me UX ul Web Data Digital Moe ov UX ul Desigfistic RESIBRsiorRevelepmenton WRabtics — Marketing Categories Design Design * There are different types of regression analysis, and different types of logistic regression. It is important to choose the right model of regression based on the dependent and independent variables of your data Hopefully this post has been useful! If so, you might also enjoy this introductory guide to Bernoulli distribution—a type of discrete probability distribution. And, if you'd like to learn more about forging a career as a data analyst, why not try out a free, introductory data analytics short course. From there, check out some of the best online data analytics courses, then check out the following articles: * Aguide to the best data analytics bootcamps ° What Is the Monte Carlo Method? + What's the difference between classification and regression? What You Should Do Now 1. Get a hands-on introduction to data analytics and carry out your first analysis with our free, self-paced Data Analytics Short Course. 2. Take part in one of our FREE live online data analytics events with industry experts, and read about Azadeh's journey from school teacher to data analyst. 3. Become a qualified data analyst in just 4-8 months—complete with a job guarantee. 4. This month, we're offering the first 100 students a partial scholarship—worth up to $1,425 off—on all of our career-change programs #: Book your application call and secure your spot today! This article is part of:ae UX ul Web Data Digital Design Design Development — Analytics Aniarnika Thanda Writer for The CareerFoundry Blog Anamika is a a product Applied S fi More ’ UX Ul Marketing Categories Design Design | University of an 10 years in the es, Original n working Buddhist who | s dogs and data". d is a social butterfly, Related Data Analytics Articles Data Anaiytics Data Anaiytics The Best Reddit Data Advice 16 of the Best Python Machine for Beginners Learning Libraries to Try October 25, 2 11 minutes read ber 17, 2 3 - 9 minutes readae UX Ul Web Data Digita’ More ’ UX Ul Design Design Devel x: Data Analytics Video: How I'd Learn Data Analytics If | Had to Start Over October 16, 2023 - 2 minutes read CAREERFOUNDRY What is CareerFoundry?me UX Ul Web uDssign Design Development Web Development Data Analytics Digital Marketing Product Managemert INTRODUCTORY COLASES Intro to UX Design Intro to UI Design Intro to Fronterc Development Intro to Data Analytics, Intro to Digital Marketing Intro to Product Management ACVANCED COURSES Voce User Interface Design Ul for UX Designers Fronterc Development for Designers Animation for UI Designers Python for Web Developers Cloud Computing for Web Developers Wate thea from you! Connect with a program advisor Data Digital More Analytics joMatketing Categories For Businesses Media Jobs at CareerFoundry Become a Mentor CareerHub Ecitorial Policy Hire our Gracs Career Services ‘TERWS ARO CONDIMONS | PRNACY POLICY | CCOKE POLICY | IMPRINT | SECURITY Ux ul Design Design
You might also like
Practical Guide To Logistic Regression - Joseph M. Hilbe (2017)
PDF
100% (1)
Practical Guide To Logistic Regression - Joseph M. Hilbe (2017)
170 pages
ML Unit 3
PDF
No ratings yet
ML Unit 3
40 pages
(Book) Bayesian Logistik - Hilbe Practical Guide To Logistic Regression (PDFDrive)
PDF
No ratings yet
(Book) Bayesian Logistik - Hilbe Practical Guide To Logistic Regression (PDFDrive)
170 pages
5.1) Binary Logistic Regression
PDF
No ratings yet
5.1) Binary Logistic Regression
32 pages
Lecture 08
PDF
No ratings yet
Lecture 08
42 pages
ML 4
PDF
No ratings yet
ML 4
80 pages
Logistic Regression
PDF
100% (2)
Logistic Regression
47 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
25 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
36 pages
Ai Tech Agency Infographics
PDF
No ratings yet
Ai Tech Agency Infographics
65 pages
Joseph M. Hilbe - Practical Guide To Logistic Regression (2016, Taylor & Francis)
PDF
No ratings yet
Joseph M. Hilbe - Practical Guide To Logistic Regression (2016, Taylor & Francis)
162 pages
DMML Unit4
PDF
No ratings yet
DMML Unit4
77 pages
Session 9-Logistic Regression
PDF
No ratings yet
Session 9-Logistic Regression
33 pages
Lecture 22. GLM
PDF
No ratings yet
Lecture 22. GLM
41 pages
Business Analytics: Advance: Logistic Regression
PDF
100% (1)
Business Analytics: Advance: Logistic Regression
26 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
20 pages
ML 7th Sem AIML ITE Notes Complete LONG (1) - 34-62
PDF
No ratings yet
ML 7th Sem AIML ITE Notes Complete LONG (1) - 34-62
29 pages
Logisticregression
PDF
No ratings yet
Logisticregression
22 pages
Unit 3-2
PDF
No ratings yet
Unit 3-2
20 pages
MACHINE LEARNING Presentation Logistic Regression
PDF
No ratings yet
MACHINE LEARNING Presentation Logistic Regression
18 pages
Detailed Logistic Regression
PDF
No ratings yet
Detailed Logistic Regression
30 pages
Data Analytics Using R
PDF
No ratings yet
Data Analytics Using R
23 pages
Interview Questions
PDF
No ratings yet
Interview Questions
26 pages
Notes For Chapter 7
PDF
No ratings yet
Notes For Chapter 7
13 pages
Linear and Logistic Regression
PDF
No ratings yet
Linear and Logistic Regression
21 pages
HRA Chapter 6
PDF
No ratings yet
HRA Chapter 6
16 pages
Regression Analysis Linear Multiple Logistic
PDF
No ratings yet
Regression Analysis Linear Multiple Logistic
25 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
14 pages
Chapter 06 - US 7e
PDF
No ratings yet
Chapter 06 - US 7e
22 pages
02 LogisticRegression
PDF
No ratings yet
02 LogisticRegression
29 pages
What Is Logistic Regression
PDF
No ratings yet
What Is Logistic Regression
20 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
22 pages
Unit 3
PDF
No ratings yet
Unit 3
20 pages
7.logistics Regression - BDSM - Oct - 2020
PDF
No ratings yet
7.logistics Regression - BDSM - Oct - 2020
49 pages
Logistics Regression
PDF
No ratings yet
Logistics Regression
10 pages
Logistic Regression Report
PDF
No ratings yet
Logistic Regression Report
39 pages
Logistic Regression Model Study Assignment
PDF
100% (1)
Logistic Regression Model Study Assignment
5 pages
Regression Analysis
PDF
No ratings yet
Regression Analysis
14 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
16 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
27 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
8 pages
Report Logistic Regression
PDF
No ratings yet
Report Logistic Regression
21 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
25 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
14 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
10 pages
FALLSEM2024-25 MMAT501L TH VL2024250107615 2024-09-24 Reference-Material-I
PDF
No ratings yet
FALLSEM2024-25 MMAT501L TH VL2024250107615 2024-09-24 Reference-Material-I
12 pages
Logistic Ordinal Regression
PDF
No ratings yet
Logistic Ordinal Regression
10 pages
Logesti For Biginners
PDF
No ratings yet
Logesti For Biginners
13 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
7 pages
Chapter 24 - Logistic Regression
PDF
100% (7)
Chapter 24 - Logistic Regression
21 pages
spss10 LOGIT
PDF
No ratings yet
spss10 LOGIT
17 pages
Sonia Jessica - 2022 - How Does Logistic Regression Work
PDF
No ratings yet
Sonia Jessica - 2022 - How Does Logistic Regression Work
4 pages
Logit Regression Analysis
PDF
No ratings yet
Logit Regression Analysis
11 pages
新增 Microsoft Word Document
PDF
No ratings yet
新增 Microsoft Word Document
10 pages
Logistic Regression
PDF
No ratings yet
Logistic Regression
11 pages
CH 8
PDF
No ratings yet
CH 8
13 pages
What Is Logistic Regression - Statistics Solutions PDF
PDF
No ratings yet
What Is Logistic Regression - Statistics Solutions PDF
2 pages