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

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
主站蜘蛛池模板: 绥化市| 娄底市| 玉门市| 天气| 洱源县| 虞城县| 富锦市| 仁寿县| 卢龙县| 鹤庆县| 邢台市| 平昌县| 七台河市| 瑞金市| 黑山县| 南溪县| 新泰市| 许昌县| 湾仔区| 长武县| 平江县| 陆良县| 高台县| 山西省| 河北省| 平塘县| 离岛区| 通化市| 江安县| 台州市| 共和县| 突泉县| 濮阳县| 东阳市| 奉化市| 双桥区| 财经| 明水县| 于都县| 会同县| 湄潭县|