Kamis, 28 September 2023

One Sample Test Uji untuk mencari perbandingan rata -rata

 

One Sample adalah uji untuk mencari perbadingan antara rata-rata dengan rata-rata hypothesis. Hal ini dilakukan pada uji hipotesis. Kalau uji Hipotesis satu akan menunjukkan perbedaan antara rata-rata hipotesis dan rata-rata hitung.

Untuk mencari soal maka kita bisa menghtung dengan nilai. Ini disebut juga one sample test

> x1=rnorm(100,mean=500,sd=50)

> t.test(x1,mu=450)

 

                One Sample t-test

 

data:  x1

t = 10.232, df = 99, p-value < 2.2e-16

alternative hypothesis: true mean is not equal to 450

95 percent confidence interval:

 490.0691 509.3493

sample estimates:

mean of x

 499.7092

The formula for a one-sample t-test in LaTeX format is:


\[ t = \frac{{\bar{x} - \mu}}{{\frac{{s}}{{\sqrt{n}}}}}, \]


where:

- \( t \) is the t-statistic,

- \( \bar{x} \) is the sample mean,

- \( \mu \) is the population mean (the value being tested against),

- \( s \) is the sample standard deviation, and

- \( n \) is the sample size.


You can use this LaTeX code within your Blogspot post to display the formula.

Adapun  foumula rumusnya adalah sebagai berikut:

t = \frac{{\bar{x} - \mu}}{{\frac{{s}}{{\sqrt{n}}}}}


Tidak ada komentar:

Posting Komentar

Membuat diagram scatter

 Untuk mengetahui hubungan antara dua variabel baik antara variabel dependend dan independen maupun variabel independen adalah menggunakan s...