Applied Nonparametric STATISTICS-LEC9

Source: Internet
Author: User

Ref:https://onlinecourses.science.psu.edu/stat464/print/book/export/html/12

The case before us is: response is continuous, variable is discrete. Example: If you intend to check whether the median of GPA is related to the position of the student sitting in the classroom,

Then the median of GPA is continuous, is the response variable, the position of the student sitting (before and after) is discrete, is the explanatory variable.

It is also a continuous case to consider explanatory variables, that is, to check the causal relationship between the two consecutive variables. Among them, we are most concerned about the strength and direction of the relationship.

First, we consider the case of linear correlation , calculating Pearson ' s correlation coefficient

Calculate Pearson ' s Correlation coefficient

Cor.test (x, y)

The results will give the coefficient cor, confidence interval, p-value

Calculate slope (least squares fitting)

> h=c (up, up, up) > W=c (172, 167, 145) > lm (W~H)

Note: Here is the use of y~x to fit, it should be possible to choose a different formula. In the result, the slope is-10.85.

Spearman ' s Rank Correlation

Using the rank value of two variables, the permutation calculation Pearson ' s, that is Spearman ' s

Kendall ' s Tau Rank Correlation

Measuring Association by counting the number of concordant and disconcordant pairs

Concordant Pairs

Applied Nonparametric STATISTICS-LEC9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.