Reference no: EM13902246
Instructions: Copy the entire R work into the "R document editor" save it and email it with any graphical output. Also make a print out of your work and turn it in with the final exam.
(a) Start up R.
(b) Type "> getwd()" without the ">" symbol.
(c) Type "Sys.time()"
(d) Type "Sys.info()"
(e) Type in any free responses as comments using #.
1. The following data represent the number of days of absences and the final average grade in a particular class at a certain university.
Number of Absences Xi |
Average Grade Yi |
0 |
89.2 |
0 |
94 |
1 |
91.3 |
2 |
83.5 |
3 |
81.1 |
4 |
73.9 |
4 |
78.2 |
5 |
68.3 |
5 |
65 |
6 |
64.3 |
7 |
71.8 |
8 |
58.5 |
9 |
45.5 |
a) Using "R", draw a boxplot of the average grades
b) Using "R", draw a scatter plot with appropriate x and y labels
c) Does the scatter plot suggest that the least-square line is a good predictor?
d) Using "R", compute the least-square line for predicting the average grade.
e) What is the predicted average grade when the number of absences is 6?
2. Consider the data set "gala" from the following source:
> install.packages("faraway")
>library(faraway)
> data(gala)
a) Describe the nature of the data set and the variable names with appropriate units. You may use the commands "head()" and/or "??".
b) Perform numerical summary analyses - means, standard deviations, five-number summaries, etc. for the variables "Species" and "Elevation". (You can extract these variables by the commands x<-gala$Species and y<-gala$Elevation)
c) Perform graphical summary analyses on x and y
- one variable boxplots, histograms, etc.
- two variable scatterplots.
Why should an analyst expect valuation based on dividends
: Conceptually, why should an analyst expect valuation based on dividends and valuation based on the free cash flows for common equity shareholders to yield identical value estimates?
|
Components of the hydrologic cycle
: Discuss the major components of the hydrologic cycle and identify the processes involved in the transfer or exchange of water from one reservoir to another. In the correct context, use the following vocabulary in your discussion: watershed, transp..
|
How does that transaction affect free cash flows
: If the firm uses cash to repay debt, how does that transaction affect free cash flows for common equity shareholders in that period?
|
Examples of environmental laws and policies
: Is it possible to have effective environmental laws? What are some examples of environmental laws and policies around the world? Here comes economics again, how does the cost-benefit ratio play into environmental laws?
|
Draw a boxplot of the average grades
: Using "R", draw a boxplot of the average grades, Using "R", draw a scatter plot with appropriate x and y labels and Does the scatter plot suggest that the least-square line is a good predictor
|
Suggestions for improvement
: Is the city livable? Why or why not? Please explain each standard of livabilty as well as suggestions for improvement where the City is found to be "not livable."
|
Impediments for disaster prevention in megacities
: Describe impediments for disaster prevention in megacities, as discussed by Wenzel (2006).
|
Modernity and post-modernity
: Give an analysis of what is meant by the terms modernity and post-modernity? How are these concepts reflected in landscape? What examples of modern and postmodern landscapes can be found in your local community?
|