User Tools

Site Tools


r:t-test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
r:t-test [2023/10/13 13:41] – [One sample t-test against population parameter mu and sigma] hkimscilr:t-test [2024/04/15 08:52] (current) – [One sample t-test against population parameter mu and sigma] hkimscil
Line 30: Line 30:
 > potato_sample_large <- rnorm2(2500, 194,20) > potato_sample_large <- rnorm2(2500, 194,20)
 > mean(potato_sample_large) > mean(potato_sample_large)
-[1] 191+[1] 194
 > sqrt(var(potato_sample_large)) > sqrt(var(potato_sample_large))
 [1]   20 [1]   20
Line 82: Line 82:
 t <- (sample_mean - pop_mean) / (sample_sd/sqrt(n)) t <- (sample_mean - pop_mean) / (sample_sd/sqrt(n))
  
-abs(qt(0.05/2, 50))+abs(qt(0.05/2, 49))
  
 # or  # or 
r/t-test.txt · Last modified: 2024/04/15 08:52 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki