How can I analyze a set of data in the form of ratios?
1 次查看(过去 30 天)
显示 更早的评论
I have data in the form of ratios (out of 1). For example the two columns are color and non-color. under the color column, the first entry would be .75, and under the non-color column the first entry would be .25 (1-.75). I want to analyze this data for variance and using MATLAB any help?
采纳的回答
Will Forfang
2013-3-2
You can find the variance of either of the columns with the var command, like Juan mentioned. If x is your two column matrix:
V1= var(x(:,1)) %this gives you the variance of the first column
V2 = var(x(:,2)) %this gives you the variance of the second column
I'm not too familiar with Spearman's Rank Correlation, but after scanning over its wikipedia, it doesn't seem to be too related to variance. Are you sure you're actually looking for variance?
-Will
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!