奇葩!X与Y负相关但回归系数却为正?

2022-08-24 计量经济圈 计量经济圈

是不是有一些朋友在统计分析时会发现如下奇怪现象:在散点图及趋势线上,X与Y均是负相关。但是,使用xtreg y x i.year,fe 出来的结果是x与y正相关,即相关系数为正数,这是什么原因呢?

是不是有一些朋友在统计分析时会发现如下奇怪现象:在散点图及趋势线上,X与Y均是负相关。但是,使用xtreg y x i.year,fe 出来的结果是x与y正相关,即相关系数为正数,这是什么原因呢?

看下面网友的讨论,就明白了!

图片

图片

图片

图片

评论区 (2)
#插入话题
  1. [GetPortalCommentsPageByObjectIdResponse(id=1456820, encodeId=509714568209d, content=<a href='/topic/show?id=c4664446474' target=_blank style='color:#2F92EE;'>#奇葩#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=97, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=44464, encryptionId=c4664446474, topicName=奇葩)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=75e05802674, createdName=3631175, createdTime=Thu Aug 25 17:03:46 CST 2022, time=2022-08-25, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1573266, encodeId=6e8915e32661c, content=<a href='/topic/show?id=34009226531' target=_blank style='color:#2F92EE;'>#负相关#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=81, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=92265, encryptionId=34009226531, topicName=负相关)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=2c2115837741, createdName=hmwwww, createdTime=Thu Aug 25 17:03:46 CST 2022, time=2022-08-25, status=1, ipAttribution=)]
    2022-08-25 3631175
  2. [GetPortalCommentsPageByObjectIdResponse(id=1456820, encodeId=509714568209d, content=<a href='/topic/show?id=c4664446474' target=_blank style='color:#2F92EE;'>#奇葩#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=97, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=44464, encryptionId=c4664446474, topicName=奇葩)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=75e05802674, createdName=3631175, createdTime=Thu Aug 25 17:03:46 CST 2022, time=2022-08-25, status=1, ipAttribution=), GetPortalCommentsPageByObjectIdResponse(id=1573266, encodeId=6e8915e32661c, content=<a href='/topic/show?id=34009226531' target=_blank style='color:#2F92EE;'>#负相关#</a>, beContent=null, objectType=article, channel=null, level=null, likeNumber=81, replyNumber=0, topicName=null, topicId=null, topicList=[TopicDto(id=92265, encryptionId=34009226531, topicName=负相关)], attachment=null, authenticateStatus=null, createdAvatar=null, createdBy=2c2115837741, createdName=hmwwww, createdTime=Thu Aug 25 17:03:46 CST 2022, time=2022-08-25, status=1, ipAttribution=)]
    2022-08-25 hmwwww

相关资讯

Pearson,Kendall和Spearman三种相关分析方法的比较

     在SPSS软件相关分析中,pearson(皮尔逊), kendall(肯德尔)和spearman(斯伯曼/斯皮尔曼)三种相关分析方法有什么异同      两个连续变量间呈线性相关时,使用Pearson积差相关系数,不满足积差相关分析的适用条件时,使用Spearman秩相关系数来描述. &n