フィルターのクリア

How to test whether two arrays are statistically different?

16 ビュー (過去 30 日間)
Austin M. Weber
Austin M. Weber 2022 年 4 月 1 日
コメント済み: Star Strider 2022 年 4 月 1 日
This may be a silly question, but I don't have much of a background in statistics and I want to make sure I do this properly.
I have two 451x301 arrays. When plotted using imagesc(), they look extremely similar (although there are slight differences). Is there a way that I can test whether the two arrays are statistically different?

採用された回答

Star Strider
Star Strider 2022 年 4 月 1 日
I would plot them with surf and then look at each separately and then both together, depending on what they are (here, plotting the differences).
For example —
f = @(x,y) exp(-((x-1.1).^2/3 + (y-1.5).^2/4));
g = @(x,y) exp(-((x-1.2).^2/4 + (y-1.3).^2/3));
xv = linspace(-5, 5, 50);
[X,Y] = ndgrid(xv);
figure
surf(X,Y,f(X,Y))
title('f(x,y)')
figure
surf(X,Y,g(X,Y))
title('g(x,y)')
figure
surfc(X,Y,(f(X,Y)-g(X,Y)).^2)
title('(f(x,y) - g(x,y))^2')
A statistical test would depend on the matrices themselves and the how best to describe the differences.
The last plot calculates and plots the squared differences, and it is not obvious to me what statistical test would be most appropriate.
.
  4 件のコメント
Austin M. Weber
Austin M. Weber 2022 年 4 月 1 日
This is very helpful, thank you again!
Star Strider
Star Strider 2022 年 4 月 1 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by