- R Programming By Example
- Omar Trejo Navarro
- 205字
- 2021-07-02 21:30:43
Predicting Votes with Linear Models
This chapter shows how to work with statistical models using R. It shows how to check data assumptions, specify linear models, make predictions, and measure predictive accuracy. It also shows how to find good models programatically to avoid doing analysis by hand, which can potentially save a lot of time. By the end of this chapter, we will have worked with various quantitative tools that are used in many business and research areas nowadays. The packages used in this chapter are the same ones from the previous chapter.
Just like in the previous chapter, the focus here will be on automating the analysis programatically rather than on deeply understanding the statistical techniques used in the chapter. Furthermore, since we have seen in Chapter 2, Understanding Votes With Descriptive Statistics, how to work efficiently with functions, we will use that approach directly in this chapter, meaning that when possible we'll work directly with functions that will be used to automate our analysis. We will cover the following:
- Splitting data into training and testing sets
- Creating linear regression models used for prediction
- Checking model assumptions with various techniques
- Measuring predictive accuracy for numerical and categorical data
- Programatically finding the best possible model
- 后稀缺:自動(dòng)化與未來(lái)工作
- 大數(shù)據(jù)戰(zhàn)爭(zhēng):人工智能時(shí)代不能不說(shuō)的事
- Drupal 7 Multilingual Sites
- Getting Started with MariaDB
- 群體智能與數(shù)據(jù)挖掘
- Windows 7寶典
- Spark大數(shù)據(jù)技術(shù)與應(yīng)用
- 大數(shù)據(jù)驅(qū)動(dòng)的設(shè)備健康預(yù)測(cè)及維護(hù)決策優(yōu)化
- Mastering ServiceNow Scripting
- 教育機(jī)器人的風(fēng)口:全球發(fā)展現(xiàn)狀及趨勢(shì)
- 大數(shù)據(jù)案例精析
- Spark大數(shù)據(jù)商業(yè)實(shí)戰(zhàn)三部曲:內(nèi)核解密|商業(yè)案例|性能調(diào)優(yōu)
- Cortex-M3嵌入式處理器原理與應(yīng)用
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)訓(xùn)(職業(yè)模塊)
- 計(jì)算機(jī)組裝與維修實(shí)訓(xùn)