用python进行多元线性回归,对数据进行中心化和标准化

您所在的位置:网站首页 多元线性回归分析数据标准化 用python进行多元线性回归,对数据进行中心化和标准化

用python进行多元线性回归,对数据进行中心化和标准化

2023-09-07 13:46| 来源: 网络整理| 查看: 265

In regression analysis, if there are two or more independent variables, it is called multiple regression. In fact, a phenomenon is often associated with multiple factors. It is more effective and practical to predict or estimate the dependent variable by the optimal combination of multiple independent variables than to predict or estimate only one independent variable. Therefore, multivariate linear regression is more practical than univariate linear regression.

Multivariate linear regression is similar to univariate linear regression. The least square method can be used to estimate the model parameters, and the model and model parameters need to be statistically tested.

Data centralization is different from standardization. Centralization is to subtract the average from the original data, while standardization is to subtract the average from the original data and then divide it by the standard deviation. The data obtained is the data with 0 as the average and 1 as the standard deviation. The purpose of data centralization is to unify the scale of data of different variables. raw data 在这里插入图片描述

# -*- coding: utf-8 -*- """ Cr


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3