官术网_书友最值得收藏!

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
主站蜘蛛池模板: 北安市| 双峰县| 普陀区| 长宁区| 嘉黎县| 水城县| 逊克县| 盐边县| 舒兰市| 资源县| 泰安市| 金坛市| 方正县| 庄河市| 乳山市| 曲周县| 海口市| 安国市| 子长县| 长子县| 疏附县| 丹凤县| 汕头市| 昌江| 许昌县| 抚顺市| 措美县| 久治县| 剑川县| 芜湖县| 全南县| 台南县| 福泉市| 泸州市| 固镇县| 特克斯县| 泽普县| 萍乡市| 闵行区| 富顺县| 怀仁县|