From: Oleg on
I have two data tables as a result of two similar experiments. I want to check and, if possibly, to compare the chances whether residuals in rows have normal distribution with zero mean. The problem is that kstest compares with standart normal distribution (fixed mean and SD), and lillietest is nonparametric test.
Thanks for answers!
From: us on
"Oleg " <fosgen29(a)gmail.com> wrote in message <i2n84f$2r0$1(a)fred.mathworks.com>...
> I have two data tables as a result of two similar experiments. I want to check and, if possibly, to compare the chances whether residuals in rows have normal distribution with zero mean. The problem is that kstest compares with standart normal distribution (fixed mean and SD), and lillietest is nonparametric test.
> Thanks for answers!

a hint:
- if(f) you own the stats tbx, this might be helpful...

help ztest;

us
From: Wayne King on
"Oleg " <fosgen29(a)gmail.com> wrote in message <i2n84f$2r0$1(a)fred.mathworks.com>...
> I have two data tables as a result of two similar experiments. I want to check and, if possibly, to compare the chances whether residuals in rows have normal distribution with zero mean. The problem is that kstest compares with standart normal distribution (fixed mean and SD), and lillietest is nonparametric test.
> Thanks for answers!

Hi Oleg, How about:

1.) You can input the CDF into kstest() that you want (N(0,\sigma^2)) as a ProbDist object. See

>> doc ProbDistUnivParam

or
2.) You can standardize the residuals.

Wayne
From: Oleg on
simply saying, I want to answer: Can this vector of residuals with its standard deviation come from zero-mean normal distribution? If I have understood correctly, the simplest way is to use ztest(my_vector,0,std(my_vector)).
Thanks.
From: Oleg on
simply saying, I want to answer: Can this vector of residuals with its standard deviation come from zero-mean normal distribution? If I have understood correctly, the simplest way is to use ztest(my_vector,0,std(my_vector)).
Thanks.