Data Science Lab
Data Science Lab
Functions!
I have a sinking
feeling about all
of this fun?
Congratulations, Ravens!
Assignments…
Homework #1 is due tomorrow evening (2/5)
Getting started with R (tutorial + "quiz" + text)
There will be time this evening, if you'd like to use it…
started? finished? thoughts so far?
http://www.propublica.org/article/everything-we-know-so-far-about-obamas-big-data-operation
Following up…
http://www.propublica.org/article/everything-we-know-so-far-about-obamas-big-data-operation
Palm trees!
R in the
NYT
http://www.nytimes.com/2009/01/07/
technology/business-computing/07program.html
Our path
g 2
… R's toolsets, in
m
m
now building gra i l l s
r o Sk
larger pieces… P
descriptive
statistics
Subject
Central Limit Expertise
Theorem
Functions
You might want to start with Chapter 9's Integrated Development Environment…
RStudio An IDE that wraps R IDE like to know
what this means!
Editable
files/scripts Live data
Console
interactions
You might want to start with Chapter 9's Integrated Development Environment…
summary
Descriptive statistics hist
quantile
sd, mean
state populations
o n e
s i s of …
h i
T l ca s e
c i a
spe
Making random
numbers work for you!
Stanislaw Ulam
(Los Alamos badge)
Making random
numbers work for you!
H
0 1 42 3 4 5 6 7 8 9
A
H
Hw #2: Monte Carlo Monty Hall
Both envelopes hold some positive amount of money (in a check or IOU),
but one of these two envelopes holds twice as much money as the other.
cat is better
than print
seq_along creates
a list of indices
Thoughts?
Could we write a Monty Hall function?
MH <- function()
smaller details
machine specifics
www.acm.org/education/curric_vols/CC2005_Final_Report2.pdf
CS vs. IS and IT ?
Week 10 Week 13
classes vs. objects final projects
Week 11 Week 14
methods and data final projects
Week 12 Week 15
inheritance final exam
• Neighbor's name
Data?!
• A place they consider home