Stats homework
This presentation is the property of its rightful owner.
Sponsored Links
1 / 8

Stats Homework PowerPoint PPT Presentation


  • 49 Views
  • Uploaded on
  • Presentation posted in: General

Stats Homework. Go to http://sqlzoo.net/ Do as much as you can in 2 hours Let me know what you did by email No need to send me lots of screen shots Just summarize your experience (good, bad, ugly). http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html. Plot Example.

Download Presentation

Stats Homework

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Stats homework

Stats Homework

  • Go to http://sqlzoo.net/

  • Do as much as you can in 2 hours

  • Let me know what you did by email

    • No need to send me lots of screen shots

    • Just summarize your experience (good, bad, ugly)


Http www nytimes com 2009 01 07 technology business computing 07program html

http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html


Plot example

Plot Example

  • help(ldeaths)

  • plot(mdeaths, col="blue", ylab="Deaths", sub="Male (blue), Female (pink)", ylim=range(c(mdeaths, fdeaths)))

  • lines(fdeaths, lwd=3, col="pink")


Scatter plot

Scatter Plot

  • plot(as.vector(mdeaths), as.vector(fdeaths))

  • g=glm(fdeaths ~ mdeaths)

  • abline(g)

  • g$coef

    (Intercept) mdeaths

    -45.2598005 0.4050554


Hist density

Hist & Density

  • par(mfrow=c(2,1))

  • hist(fdeaths/mdeaths, nclass=30)

  • plot(density(fdeaths/mdeaths))


Help demo example

Help, Demo, Example

  • demo(graphics)

    • example(plot)

    • example(lines)

    • help(cars)

    • help(WWWusage)

    • example(abline)

    • example(text)

    • example(par)

  • boxplots

    • example(boxplot)

    • help(chickwts)

  • demo(plotmath)

  • pairs

    • example(pairs)

    • help(quakes)

    • help(airquality)

    • help(swiss)

    • help(attitude)

    • Anorexia

      • utils::data(anorexia, package="MASS")

      • pairs(anorexia, col=c("red", "green", "blue")[anorexia$Treat])

  • counting

    • example(table)

    • example(quantile)

    • example(hist)

    • help(faithful)


Stats homework

  • Randomness

    • example(rnorm)

    • example(rbinom)

    • example(rt)

  • Normality

    • example(qqnorm)

  • Regression

    • help(cars)

    • example(glm)

    • demo(lm.glm)


  • Login