Thana Hussein
Fan Yang
Stat 3022 Lab Section 002
16 September 2016
HW1.R
# Question 1 [10 pts]
# 1.1 Draw 50 random numbers from the normal distribution with mean 1 and
standard deviation 0.3, and use variable x to store it. Find its summary statistics
an
#5.12 Comparing Fonts
# A) Explanotory variabe: font used
# Repsonse variable: final exam score
# B) The treatments (fonts used on the exam) were randomly assigned to the
subjects (students in the course), so it was a controlled and randomized
experiment
Thana Hussein
Stat 3022 Lab Section 002
7 October 2016
HW4.R
# STAT 3022 HW4
# Due Fri,
Oct 7 before
library(Stat2Data)
data(package="Stat2Data")
lecture
# 2.14 [5pt] Textbook prices
data("TextPrices")
attach(TextPrices)
# A) Perform a signifiance test to
STAT-HW5.R
thanahussein
Thu Oct 13 19:17:23 2016
library(Stat2Data)
library(car)
# 3.12
a. b. c. [4pt]
library(Stat2Data)
data("MLB2007Standings")
# A) Fit a multiple regression model to predeict WinPct based on Runs and
ERA. Write down
# the prediction e
Thana Hussein
Lab Section 002
30 September 2016
STAT-HW3.R
library(Stat2Data)
data(package="Stat2Data")
# 1.8 [4pt]
# A) Make a scatterplot and comment on what you see
data(Cereal)
plot(Cereal)
#There are three categories included here: Calories, Sugar an
STAT-HW2.R
thanahussein
Thu Sep 22 17:58:34 2016
# Question:
# Does number of beestings depend on previous stings? Use BeeStings
dataset of the textbook (which is used for HW1 also) to do a statistical
analysis and report. (20pt)
# Be sure to have all fou