User Tools

Site Tools


c:ms:2026:normal_and_t_distribution_graph_comparison

This is an old revision of the document!


# difference between normal(z) distribution and t distribution
curve(dnorm(x), from = -4, to = 3+4, 
      main = "normalized distribution of sample means", 
      ylab = "Density", xlab = "z-value", col = "black", lwd = 2)
curve(dt(x, 3), from = -4, to = 3+4, 
      main = "normalized distribution of sample \n means from p1 and p2 (n=16)", 
      ylab = "Density", xlab = "z-value", col = "red", lwd = 2, add=T)
curve(dt(x, 7), from = -4, to = 3+4, 
      main = "normalized distribution of sample \n means from p1 and p2 (n=16)", 
      ylab = "Density", xlab = "z-value", col = "red", lwd = 2, add=T)
curve(dt(x, 15), from = -4, to = 3+4, 
      main = "normalized distribution of sample \n means from p1 and p2 (n=16)", 
      ylab = "Density", xlab = "z-value", col = "red", lwd = 2, add=T)
curve(dt(x, 30), from = -4, to = 3+4, 
      main = "normalized distribution of sample \n means from p1 and p2 (n=16)", 
      ylab = "Density", xlab = "z-value", col = "red", lwd = 2, add=T)

# difference between normal(z) distribution and t distribution
curve(dnorm(x), from = -4, to = 3+4, 
      main = "normalized distribution of sample means", 
      ylab = "Density", xlab = "z-value", col = "black", lwd = 2)
curve(dt(x, 3), from = -4, to = 3+4, 
      main = "normalized distribution of sample \n means from p1 and p2 (n=16)", 
      ylab = "Density", xlab = "z-value", col = "red", lwd = 2, add=T)
curve(dt(x, 10000000), from = -4, to = 3+4, 
      main = "normalized distribution of sample \n means from p1 and p2 (n=16)", 
      ylab = "Density", xlab = "z-value", col = "green", lwd = 2, add=T)
c/ms/2026/normal_and_t_distribution_graph_comparison.1776209305.txt.gz · Last modified: by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki