help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Statistical test for equality ?


From: stn021
Subject: Re: Statistical test for equality ?
Date: Mon, 23 Dec 2013 22:02:32 +0100

2013/12/17 CdeMills <address@hidden>
... This is a bit vague...



Hi,

yes, the question is a bit vague. Also on first sight it also appears trivial.

I would like to test if x1=x2. That means I have two samples, meaning two vectors x1 and x2. Now I want to know if x1(1) = x2(1) , x1(2) = x2(2) , ... , x1(end) = x2(end).

Sounds easy, in octave I simply write x1 == x2

The trouble is, that in reality x1 is not _exactly_ equal to x2. In reality it is more like x1 = x2+random noise. So the question could be asked like this: how much noise is allowed before the null-hypothesis x1==x2 should be replaced by the alternative hypthesis.



Correlation answers to "how precisely do my samples match the equation x1 = b*x2+a"

I would like to know "how precisely to my samples match the equation x1 = 1*x2+0"

Correlation would give the same answer for x1=x2 and x2=5*x2 , so it cannot tell the difference between two equal sample and to highly correlated ones.


The whole question revolves around simulation models. I would like to have some meaningful answer whether my model works. And to me it seemed obvious to ask if measured values are equal to simulated values, for the same set of independent variables. So x1 are measured values, x2 are results of the simulation, and the simulation works if the simulated values are statistically significantly equal to the measure values.





 
Do you mean f.i. something similar to
http://www.itl.nist.gov/div898/handbook/prc/section3/prc31.htm 
or
http://www.itl.nist.gov/div898/handbook/prc/section2/prc22.htm


Both articles are about equal or non-equal means.

My question is _not_ if mean(x1) == mean(x2) . Also that question is easily answered, for example with a t-test.

Obviously if x1==x2 then mean(x1)==mean(x2),
but the inverted conclusion does not work, if mean(x1)==mean(x2) then maybe x1==x2 of maybe not.

Testing for equal means does not necessarily imply equality of the samples, only equality of the means.
 
THX
stn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]