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

Analysis of how to understand R language and do normality Test

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

How to understand R language to do normality test analysis, I believe 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.

The function commonly used to test normality in R language is shaporo.test (), which is called Shapiro-Wilk (Shapiro-Wilke) normality test.

The corresponding original hypothesis is that the population from sample X has a normal distribution.

Like the code.

> x shapiro.test (x)

Shapiro-Wilk normality test

Data: x

W = 0.99187, p-value = 0.8117

P > 0.05 accept the original hypothesis

Today, a classmate proposed that the output data range of the function shaporo.test () is 3-5000. What should we do if it exceeds 5000? I haven't noticed that the sample size exceeds 5000 before.

The first thing that comes to mind is that among the samples greater than 5000, we can randomly select a sample less than 5000.

Sample code

X

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