We use the form y hat = a + bx for the least-squares line. In
some...
We use the form y hat = a + bx for the least-squares line. In
some computer printouts, the least-squares equation is not given
directly. Instead, the value of the constant a is given, and the
coefficient b of the explanatory or predictor variable is
displayed. Sometimes a is referred to as the constant, and
sometimes as the intercept. Data from Climatology Report No. 77-3
of the Department of Atmospheric Science, Colorado State
University, showed the following relationship between elevation...
Using R and install.packages("MASS"), library(MASS)
1. Generate the following vector using at least two methods.
0,...
Using R and install.packages("MASS"), library(MASS)
1. Generate the following vector using at least two methods.
0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4
2. Generate the following vector.
Apple1, Banana2, Orange3, Cranberry4,
Watermelon5
3. Generate the following vector using the “rep” function.
a, a, b, b, c, c, a, a, b, b, c, c
4. In vector y = (8, 3, 5, 7, 6, 6, 8, 9, 2, 3, 9, 4, 10, 4,
11), which elements of y contains...
1. The data below show the historical
relationship between production levels and overhead costs at your...
1. The data below show the historical
relationship between production levels and overhead costs at your
company.
a) Construct a scatterplot of y versus x.
b) Find the least-squares regression line
(i.e., calculate the coefficients and show the equation) relating
overhead costs to production.
c) Graph the regression line on the plot.
It is recommended that you use Excel to create the scatterplot,
but do not use the Excel functions to calculate the slope and
intercept of the regression line....
Although there is some truth in the following statements, which
best describes accepting risk as part...
Although there is some truth in the following statements, which
best describes accepting risk as part of a decision-making process,
given the definition of risk we have used in this class?
Taking a course of action when you are not sure about what will
happen in the future.
Taking a course of action even though you know that only bad
things could possibly happen.
Taking a course of action when you are uncertain about the
future, but only good outcomes...
*Answer all questions using R-Script*
Question 1
Using the built in CO2 data frame, which contains...
*Answer all questions using R-Script*
Question 1
Using the built in CO2 data frame, which contains data from an
experiment on the cold tolerance of Echinochloa crus-galli; find
the following.
a) Assign the uptake column in the
dataframe to an object called "x"
b) Calculate the range of x
c) Calculate the 28th percentile of
x
d) Calculate the sample median of
x
e) Calculate the sample mean of x and
assign it to an object called "xbar"
f) Calculate...
Conducting a Simulation
For example, say we want to simulate the probability of getting
“heads” exactly...
Conducting a Simulation
For example, say we want to simulate the probability of getting
“heads” exactly 4 times in 10 flips of a fair coin.
One way to generate a flip of the coin is to create a vector in
R with all of the possible outcomes and then randomly select one of
those outcomes. The sample function takes a vector of elements (in
this case heads or tails) and chooses a random sample of size
elements.
coin <- c("heads","tails")...