Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example Analysis of bivariate normal Distribution and Bivariate correlation Analysis in R language

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Through the example analysis of bivariate normal distribution and bivariate correlation analysis in R language, it is believed that many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Pearson coefficient, Spelman coefficient and Kendall coefficient are the three major correlation coefficients that we often use in bivariate correlation analysis. When Pearson coefficient is used, there is a basic condition that the two variables should satisfy the bivariate normal distribution, otherwise it is recommended to choose Spelman correlation coefficient.

Therefore, before the correlation analysis of two continuous data, it is necessary to test the multivariate (binary) normal distribution. In R language, we can do this using the mshapiro.test function in the mvnormtest package.

Case data: employee data

Our backend replied to [employee] to download case data.

Bivariate normal distribution test

Now I want to examine the correlation between the initial salary and the current salary, first of all, let's do the binary normal distribution test.

Mydata

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report