- Mastering Machine Learning with R(Second Edition)
- Cory Lesmeister
- 251字
- 2021-07-09 18:23:57
Classification methods and linear regression
So, why can't we just use the least square regression method that we learned in the previous chapter for a qualitative outcome? Well, as it turns out, you can, but at your own risk. Let's assume for a second that you have an outcome that you are trying to predict and it has three different classes: mild, moderate, and severe. You and your colleagues also assume that the difference between mild and moderate and moderate and severe is an equivalent measure and a linear relationship. You can create a dummy variable where 0 is equal to mild, 1 is equal to moderate, and 2 is equal to severe. If you have reason to believe this, then linear regression might be an acceptable solution. However, qualitative assessments such as the previous ones might lend themselves to a high level of measurement error that can bias the OLS. In most business problems, there is no scientifically acceptable way to convert a qualitative response to one that is quantitative. What if you have a response with two outcomes, say fail and pass? Again, using the dummy variable approach, we could code the fail outcome as 0 and the pass outcome as 1. Using linear regression, we could build a model where the predicted value is the probability of an observation of pass or fail. However, the estimates of Y in the model will most likely exceed the probability constraints of [0,1] and thus be a bit difficult to interpret.
- 數(shù)據(jù)庫應(yīng)用實戰(zhàn)
- 算法競賽入門經(jīng)典:習(xí)題與解答
- SQL Server入門經(jīng)典
- 從0到1:數(shù)據(jù)分析師養(yǎng)成寶典
- Python數(shù)據(jù)分析、挖掘與可視化從入門到精通
- Remote Usability Testing
- 數(shù)據(jù)庫程序員面試筆試真題庫
- 數(shù)據(jù)挖掘原理與SPSS Clementine應(yīng)用寶典
- 圖數(shù)據(jù)實戰(zhàn):用圖思維和圖技術(shù)解決復(fù)雜問題
- 辦公應(yīng)用與計算思維案例教程
- Instant Autodesk AutoCAD 2014 Customization with .NET
- 數(shù)字IC設(shè)計入門(微課視頻版)
- 聯(lián)動Oracle:設(shè)計思想、架構(gòu)實現(xiàn)與AWR報告
- 深入理解InfluxDB:時序數(shù)據(jù)庫詳解與實踐
- Oracle 內(nèi)核技術(shù)揭密