Assignment on evolution
The driving model in evolution is the r, K -model.1 Basically the story is
that populations grow exponentially (at rate r) until they end up reaching
their carrying capacity (K
RIC: Risk Ination Criterion
February 29, 2012
1
Admistrivia
2
Status so far
The model
Y = + 1 x1 + 2 x2 + 3 x3 + + p xp +
where
is N (0, 2 ).
Notation: here the subscripts identify which variable we a
200th Darwin day: Heterocarpy in daisies
Dean Foster
Avi Shmida
February 13, 2012
1: Review of Evolution
Genes are in it for themselves:
(Read the original Darwin, The Origin of
Species or a modern
Class: Naive bayes for Linguistics Simple regression (R-squared
of 0.54) then 5 variable multiple regression (R-squared of 0.73). Using
80 variables we have a simple regression (R-squared = 1.0) and a
Obama vs the SP500
First the data itself:
>
>
>
>
>
obama <- read.csv("obama.csv")
sp500 <- read.csv("sp500.csv")
obama$rowIndex <- 1:(dim(obama)[1])
both <- merge(sp500, obama, "Date")
both <- both[s
First practice in R
February 7, 2012
Lets look at a simple data set from your rst regression class here at Penn.
First grab the le:
http:/www-stat.wharton.upenn.edu/~waterman/fsw/datasets/txt/Cleaning
Second R Practice
January 18, 2012
For this assignment we will be using the famous Boston housing data set.
You can download it here:
http:/www-stat.wharton.upenn.edu/~magarick/471/boston.dat
Descript
Statistics 405/705
Spring, 2017
Introduction to Programming in R
Instructor and TA
Robert Stine
444 Huntsman Hall
[email protected]
Ruoqi Yu
[email protected]
There are two sections of this course; these me
Code
Show All Code
Hide All Code
Download Rmd
Assignment #4
Prof Stine
Due February 22
This R-Notebook has both the questions as well as places for you to insert your answers. Turn in the .Rmd
file
Code
Show All Code
Hide All Code
Download Rmd
Assignment #1
Insert your name here
Due January 25
This R-Notebook has both the answers, along with some explanation and grading notes.
Question 1
Use
Code
Show All Code
Hide All Code
Download Rmd
Lecture 2: Matrices and Lists
Robert Stine, Stat 405/471
Spring 2017
Lecture 1 introduces vectors, one-dimensional sequences consisting of all numbers,
Code
Show All Code
Hide All Code
Download Rmd
Solutions #3
Prof Stine
Due February 8
Question 1 Dates in R
R has numerous functions for manipulating dates. Most important, R can read dates from fil
Code
Show All Code
Hide All Code
Download Rmd
Solutions, Assignment #2
Prof Stine
Due February 1
This R-Notebook has both the questions as well as places for you to insert your answers. Turn in the
(pdf version)
1
Status so far
The model
Yi = + xi +
where
i
i
are iid and
i
N (0, 2 ).
First we discussed tting ( + xi )
Then we discussed the residuals
Now we want to discuss how to estimate the
Class: Taylor
February 7, 2012
(pdf version)
Story time: Dan Willingham, the Cog Psyc
Willingham: Professor of cognitive psychology at Harvard
Why students dont like school
We know lots about psych
These exercises are to show you computer techniques. Do simple prints
to conrm that they worked for you and short write ups. So no detailed
descriptions, but a sentence here and there is nice. (Includ
CAPM: Berndt CAPM
Dean Foster
February 7, 2012
1
Admistrivia
Start on next homework. It walks you through using all the ideas
we have talked about in class so far.
No writeups necessary. Just practi
Admistrivia
HW 2 due next Tuesday
The magic of bootstrap
Suppose you are considering two measures of center:
mean
median
Which is better? Theory is very dicult to do. So use bootstrap!
Consider a f
Class: bootstrap
cfw_Admistrivia
H omework due today.
cfw_Suggested readings
( pdf version )
Suggested readings
Wiki article .
How to bootstrap in R .
More theoretical description of bootstrap
Efron c
Admistrivia
Homework due today.
Suggested readings
(pdf version)
Suggested readings
Wiki article.
How to bootstrap in R.
More theoretical description of bootstrap
Efron came up with the idea. See
Class: CCA
April 4, 2012
Admistrivia
Last time: Prize for compression
Lit review due today
One shot learning
Discriptors
POS: Noun / verb
Tone: formal / informal
gender: male / female
sentiment:
Class: Doglegs /piecewise linear / Bent
stick
February 7, 2012
(online version)
Story time: Publishing books
Information wants to be free
I could tell you who said thatbut wiki is down today
Accede
Admistrivia
HW 2 due next Tuesday
I put up notes (in Rnw) which have examples of all the bootstraps
I talked about in class last time.
Nice article by Jim Manzi on experiments.
Science is observati
Class: Rare counts
April 2, 2012
(pdf version)
1
Admistrivia
Lit review due wednesday.
Lyle Ungar (Computer Science), Dean Foster (Wharton Statistics), and Mark Liberman (Linguistics) are looking fo
Admistrivia
Large clouds of data
Projecting all words down to a small diminsional space
Allows looking at them in a nice graph
Makes pretty pictures
How to project?
PCA
Look at words documents/ar