Midterm Exam 2 - Open Book Section
(R) - Part 2
Instructions
The R Markdown file includes the questions, the empty code chunk sections for your code, and the text
blocks for your responses. Answer the questions below by completing the R Markdown file. You may make
slight adjustments to get the file to knit/convert but otherwise keep the formatting the same. Once you’ve
finished answering the questions, submit your responses in a single knitted file as HTML only.
Partial credit may be given if your code is correct, but your conclusion is incorrect or vice versa.
Next Steps:
1. Save the .Rmd file in your R working directory - the same directory where you will download the
“Concrete_Data.csv” data file into. Having both files in the same directory will help in reading the
“Concrete_Data.csv” file.
2. Read the question and create the R code necessary within the code chunk section immediately below
each question. Knitting this file will generate the output and insert it into the section below the code
chunk.
3. Type your answer to the questions in the text block provided immediately after the response prompt.
4. Once you’ve finished answering all questions, knit this file and submit the knitted file as HTML on
Canvas.
, * Make sure to start submission of the exam at least 10 minutes before the end o f
the exam time. It is your responsibility to keep track of your time and submit
before the time limit.
* If you are unable to knit your file as HTML for whatever reason, you may uploa
d your Rmd/ipynb/PDF/Word file instead. However, you will be penalized 10%.
* If you are unable to upload your exam file for whatever reason, you may IMMEDI
ATELY attach the file to the exam page as a comment via Grades-> Midterm Exam 2
- Open Book Section (R) - Part 2 -> Comment box.
* Note that you will be penalized 10% (or more) if the submission is made within
5 minutes after the exam time has expired and a higher penalty if more than 5 mi
nutes. Furthermore, you will receive zero points if the submission is made after
15 minutes of the exam time expiring. We will not allow later submissions or re-
taking of the exam.
* If you upload your file after the exam closes, let the instructors know via a
private Piazza post. Please DON'T attach the exam file via a private Piazza post
to the instructors since you could compromise the exam process. Any submission r
eceived via Piazza will not be considered.
Mock Example Question
This will be the exam question - each question is already copied from Canvas and inserted into individual text
blocks below, you do not need to copy/paste the questions from the online Canvas exam.
Mock Response to Example Question: This is the section where you type your written answers to the
question. Depending on the question asked, your typed response may be a number, a list of variables, a few
sentences, or a combination of these elements.
Ready? Let’s begin.
In this exam, you will be considering various attributes of concrete and using the given data to predict if it is
strong enough or not.
The data in “Concrete_Data.csv” contains the following attributes:
1. Cement: kg in a m3 mixture
2. Blast Furnace Slag: kg in a m3 mixture (strength-enhancing compound)
3. Fly Ash: kg in a m3 mixture(reduces cracking, permeability, and bleeding, creating a dense, high-
durability concrete)
4. Water: kg in a m3 mixture
5. Superplasticizer: kg in a m3 mixture ( improve the workability of concrete)
6. Coarse Aggregate: kg in a m3 mixture
7. Fine Aggregate: kg in a m3 mixture
8. Age: Day (1~365)
9. Concrete strength: MPa 10.Total : summary of the count of observations with different combinations of
the specified variables (we will use it for building the logistic regression models)
10. Strong:If concrete strength is greater than 20MPa, the concrete is considered to be strong(1) otherwise
0.
(R) - Part 2
Instructions
The R Markdown file includes the questions, the empty code chunk sections for your code, and the text
blocks for your responses. Answer the questions below by completing the R Markdown file. You may make
slight adjustments to get the file to knit/convert but otherwise keep the formatting the same. Once you’ve
finished answering the questions, submit your responses in a single knitted file as HTML only.
Partial credit may be given if your code is correct, but your conclusion is incorrect or vice versa.
Next Steps:
1. Save the .Rmd file in your R working directory - the same directory where you will download the
“Concrete_Data.csv” data file into. Having both files in the same directory will help in reading the
“Concrete_Data.csv” file.
2. Read the question and create the R code necessary within the code chunk section immediately below
each question. Knitting this file will generate the output and insert it into the section below the code
chunk.
3. Type your answer to the questions in the text block provided immediately after the response prompt.
4. Once you’ve finished answering all questions, knit this file and submit the knitted file as HTML on
Canvas.
, * Make sure to start submission of the exam at least 10 minutes before the end o f
the exam time. It is your responsibility to keep track of your time and submit
before the time limit.
* If you are unable to knit your file as HTML for whatever reason, you may uploa
d your Rmd/ipynb/PDF/Word file instead. However, you will be penalized 10%.
* If you are unable to upload your exam file for whatever reason, you may IMMEDI
ATELY attach the file to the exam page as a comment via Grades-> Midterm Exam 2
- Open Book Section (R) - Part 2 -> Comment box.
* Note that you will be penalized 10% (or more) if the submission is made within
5 minutes after the exam time has expired and a higher penalty if more than 5 mi
nutes. Furthermore, you will receive zero points if the submission is made after
15 minutes of the exam time expiring. We will not allow later submissions or re-
taking of the exam.
* If you upload your file after the exam closes, let the instructors know via a
private Piazza post. Please DON'T attach the exam file via a private Piazza post
to the instructors since you could compromise the exam process. Any submission r
eceived via Piazza will not be considered.
Mock Example Question
This will be the exam question - each question is already copied from Canvas and inserted into individual text
blocks below, you do not need to copy/paste the questions from the online Canvas exam.
Mock Response to Example Question: This is the section where you type your written answers to the
question. Depending on the question asked, your typed response may be a number, a list of variables, a few
sentences, or a combination of these elements.
Ready? Let’s begin.
In this exam, you will be considering various attributes of concrete and using the given data to predict if it is
strong enough or not.
The data in “Concrete_Data.csv” contains the following attributes:
1. Cement: kg in a m3 mixture
2. Blast Furnace Slag: kg in a m3 mixture (strength-enhancing compound)
3. Fly Ash: kg in a m3 mixture(reduces cracking, permeability, and bleeding, creating a dense, high-
durability concrete)
4. Water: kg in a m3 mixture
5. Superplasticizer: kg in a m3 mixture ( improve the workability of concrete)
6. Coarse Aggregate: kg in a m3 mixture
7. Fine Aggregate: kg in a m3 mixture
8. Age: Day (1~365)
9. Concrete strength: MPa 10.Total : summary of the count of observations with different combinations of
the specified variables (we will use it for building the logistic regression models)
10. Strong:If concrete strength is greater than 20MPa, the concrete is considered to be strong(1) otherwise
0.