How correlated list of stats

조회 수: 4 (최근 30일)
Chris
Chris 2011년 8월 29일
I have the stats for about 100 players. Each stat sheet is for a given player for games played. I am trying to find a function that will compare the stats for the 100 players and find out which ones are the closest in terms of correlation. Preferably percentage correlated. What function would be best for this.
  댓글 수: 1
the cyclist
the cyclist 2011년 8월 29일
There is not really enough detail here to do anything but guess at what stats you have, or what you mean by "closest in terms of correlation". I suggest you do two things to help us answer your question. First, post a sample of the data. Second, spend a little more time thinking, conceptually, about what you really mean by "closest".

댓글을 달려면 로그인하십시오.

채택된 답변

pangyuteng
pangyuteng 2011년 8월 29일
Cyclist is right, but I'd still like to give it a shot base on your question. Assuming all parameters are numbers, say you have 5 parameters for each player, with a total of 10 players.
statsheet = [magic(5),magic(5)];
You can simply obtian the correlation coefficient between each player with the following.
[r,p]=corrcoef(statsheet);
preferablyPercentageCorrelated = r.^2;
'preferablyPercentageCorrelated' will be the "preferably percentage correlated" values between each player.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Number games에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by