11.08.2013 Views

Slika - Shrani.si

Slika - Shrani.si

Slika - Shrani.si

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A. Juriˇ<strong>si</strong>ć in V. Batagelj: Verjetnostni račun in statistika 567<br />

✬<br />

✫<br />

Preizkus Kolmogorov-Smirnova v R-ju<br />

> t z z<br />

[1] 4.1 2.2 4.7 3.8 4.7 3.5 3.3 3.6 4.4 2.9 4.3 4.2 3.9 3.1<br />

[15] 3.1 2.5 4.5 3.0 2.6 3.4 1.9 3.5 3.2 3.1 3.7 2.6 3.1 3.2<br />

[29] 3.4 3.7 3.4 3.3 4.1 1.6 3.9 3.3 3.0 3.7 3.2 3.8<br />

> "lot(den<strong>si</strong>ty(z),main="gostoti")<br />

> "urve(dnorm(x,mean=3.5,sd=0.7),add=TRUE,col="red")<br />

> "lot(ecdf(z),main="porazdelitvi")<br />

> curve(pnorm(x,mean=3.5,sd=0.7),add=TRUE,col="red")<br />

> ks.test(z,"pnorm",mean=3.5,sd=0.7)<br />

One-sample Kolmogorov-Smirnov test<br />

data: z<br />

D = 0.1068, p-value = 0.7516<br />

alternative hypothe<strong>si</strong>s: two.<strong>si</strong>ded<br />

Warning message:<br />

cannot compute correct p-values with ties in:<br />

ks.test(z, "pnorm", mean = 3.5, sd = 0.7)<br />

Univerza v Ljubljani ▲<br />

❙ ▲<br />

▲<br />

● ❙ ▲<br />

▲<br />

☛ ✖<br />

▲<br />

✩<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!