相关性分析怎么计算,相关性分析具体步骤

首页 > 教育 > 作者:YD1662024-05-08 20:48:34

# Simple linear relationship x1 <- -20:20 y1 <- x1 rnorm(41,0,4) plot(y1~x1, pch =18) cor(x1,y1) distanceCorrelation(x1,y1) MIC(x1,y1)

简单二次函数

# y ~ x**2 x2 <- -20:20 y2 <- x2**2 rnorm(41,0,40) plot(y2~x2, pch = 18) cor(x2,y2) distanceCorrelation(x2,y2) MIC(x2,y2)

三次函数

相关性分析怎么计算,相关性分析具体步骤(21)

# Cosine x3 <- -20:20 y3 <- cos(x3/4) rnorm(41,0,0.2) plot(y3~x3, type='p', pch=18) cor(x3,y3) distanceCorrelation(x3,y3) MIC(x3,y3)

圆函数

相关性分析怎么计算,相关性分析具体步骤(22)

# Circle n <- 50 theta <- runif (n, 0, 2*pi) x4 <- append(cos(theta), cos(theta)) y4 <- append(sin(theta), -sin(theta)) plot(x4,y4, pch=18) cor(x4,y4) distanceCorrelation(x4,y4) MIC(x4,y4)

上一页23456末页

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.