Ke Wang 999161526
STA 104 Project Part I
# Introduction
This report summarizes the non-parametric statistical modeling and analysis results
associated with data about the number of deaths of four different types of extreme
weather in one year in the US. T

Statistics 104 Sample Midterm
Spring 2016
PROBLEM 1
The table below contains bus fares in 20 dierent cities
1.2
2.5
1.3
2.6
1.4
2.7
1.6
2.9
1.65
3.0
1.8
3.2
1.9
4.0
2.0
5.0
2.2
8
2.25
10
(a) Calculate sample mean Y , standard deviation s and median .
(b)

Problem 1
(a) Calculate sample mean Y , standard deviation s and median .
y = 3.06, sd = 2.257, = 2.375
(b) Carry out a t-test of the hypothesis H0 : = 3 vs Ha : < 3. Find the p-value and
state your conclusions at = 0.05.
y
3.06 3
=
= 0.1189 < t(0.95,

Statistics 104 Sample final exam
Please note that the sample exam requires you to run computer programs to
answer the question. In the final exam you will be given computer output as needed.
PROBLEM 1
An agronomist gave scores from 0 to 5 to denote insect

PROBLEM 1
(a) Permutation F-test
Use the function provided to get p value = 0.04. The function uses Monte Carlo
method with 10000 simulations. This is less than = 0.05, so reject the null
hypothesis.
Conclude not all means of different treatment are same.

Statistics 104
Name._S._'()-,-/cd_,._~
_ _
Midterm II
Sample
Instructions:
PRINT
PLEASE
1. WORK ALL PROBLEMS. Please, give details and explanations and
SHOW ALL YOUR WORK so that partial credits can be given.
2. You may use two page of notes, tables, and

STA 104 Spring 2016
Homework 5 - Due Friday, May 13th
5. A college wanted to see if the amount of alcohol consumption (high, low, moderate) was different between genders.
The data is on Smartsite, under the file alcohol.csv.
1. The opinions of doctors and

Solutions STA 104 Homework 6
Dr. Erin K. Melcon
1. (a) The distribution of the bootstrap median is:
It does not appear to be symmetric, but highly skewed.
(b) The 90% percentile based confidence interval is: (587, 1307)
(c) The 90% BCA confidence interval

STA 104 Spring 2016
Take Home Project I - Due Wednesday, April 27, in lecture.
You are allowed to work in by yourself (one person total) or with one other
person (two people total). No matter how many people you have in your
group, you must answer two que

-title: "STA 104 Week 5 R handout - Non-Parametric Linear regression"
author: "Erin K. Melcon"
date: "April 27, 2016"
output: html_document
-For this handout we will use the built-in dataset `faithful`, which contains the
columns `eruptions` (the length o

-title: "STA 104 R Handout Week 2"
author: "Dr. Erin K. Melcon"
output: html_document
-This handout will go over perform various steps of the Wilcoxon Rank-Sum test,
and the Mann-Whitney test.
The data that will be used in this handout is randomly generat

-title: "STA 104 R Handout Week 9 - KNN/Trees"
author: "Dr Erin K. Melcon"
output: html_document
-This handout will go over KNN for categorical and continuous responses, as well
as classification trees implemented by the function `ctree`.
We will use the

-title: "STA 104 R Handout Week 6 - Contingency Tables"
author: "Dr. Erin Melcon"
date: "May 3, 2016"
output: html_document
-The data I'll be working with *(Note: you do NOT have to do this for your
homework. Just read in the data as usual)* is one that I

Installing R and RStudio, and reading .csv or .txt files.
1
Installing R
One of the wonderful things about R is that it is free. This way, you may work on your homework in the
comfort of your home.
To download and install R, complete the following steps:

-title: "STA-104 R handout Week 3 - K group problems"
author: "Erin K. Melcon"
output: html_document
-# Add on - Confidence intervals for shift parameter
We will use the same "data" as in homework 2:
`cfw_r
numbers = round(c(rnorm(10,5,2), rnorm(10,7,1),1

STA 104 R Handout, Knitr and Dynamic Documents
1
Dynamic Documents
Dynamic documents are documents that are created by running code, and including the results of that code inside
of the document automatically (along with regular text). This requires that

-title: "STA 104 Project 1 Helpful Code"
author: "Erin K. Melcon"
date: "April 22, 2016"
output: html_document
-The purpose of this handout is to add some code you may find useful for your
project.
# 1. All pairwise differences
Assume we have two groups,

-title: "STA 104 R Handout 1 - Median Test, CDF, Permutations"
author: "Erin K. Melcon"
output: pdf_document
-# 1. Preliminaries
Before we discuss how to do our specific tests in R, we need to go over how to
read in data, access columns of data, and enter

-title: "STA 104 R Handout Week 7 - Bootstrapping"
author: "Dr Erin K. Melcon"
output: html_document
-This handout will go over several bootstrap methods of approaching data.
will use various datasets we have used in previous handouts.
We
# 1. Bootstrappi