- Advanced Machine Learning with R
- Cory Lesmeister Dr. Sunil Kumar Chinnamgari
- 247字
- 2021-06-24 14:24:36
Classification methods and linear regression
So, why can't we 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're 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 labels 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's no scientifically acceptable way to convert a qualitative response into one that's 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 hence be a bit difficult to interpret.
- Intel FPGA/CPLD設計(基礎篇)
- 新媒體跨界交互設計
- Arduino入門基礎教程
- Effective STL中文版:50條有效使用STL的經驗(雙色)
- Svelte 3 Up and Running
- STM32嵌入式技術應用開發全案例實踐
- SiFive 經典RISC-V FE310微控制器原理與實踐
- LPC1100系列處理器原理及應用
- Neural Network Programming with Java(Second Edition)
- 新編電腦組裝與硬件維修從入門到精通
- The Applied Artificial Intelligence Workshop
- Applied Deep Learning with Keras
- 超炫的35個Arduino制作項目
- Arduino項目開發:智能控制
- 系統安裝、維護及故障排除實戰