English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

If I have a dataset in matlab, and I want to use a t-test, I have to make sure the dataset is normally distributed somehow, don't I?
how do I do that? is there any special function I can use?
thanks

2006-12-30 20:43:31 · 3 answers · asked by asaaiki 3 in Science & Mathematics Mathematics

3 answers

If you have the MATLAB Statistics Toolbox, then investigate the following functions:

kstest
lillietest
jbtest

If you don't have the MATLAB Statistics Toolbox, then try:

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3596&objectType=file
https://mail.sssup.it/~schiavo/matlab.html

2007-01-01 22:33:55 · answer #1 · answered by Predictor 3 · 0 0

The Matlab command is ncx2stat, but you'll need to figure out which test you're running before you can use it. The most common test involves knowing the sample size (65), the sample variance, and the stdv of the best fitting normal...

2016-03-17 22:47:53 · answer #2 · answered by Anonymous · 0 0

Take a look at the histogram. That should give some indication. You can also do a chi square test. I'm not very familiar with Matlab, but there are ways to test for normality.

2007-01-01 11:02:05 · answer #3 · answered by modulo_function 7 · 0 1

fedest.com, questions and answers