Question: FINAL - Instructions for Part 2 - Coding Read the data in the file 'Final _ Exam _ Data.csv ' into a dataframe. The spreadsheet

FINAL - Instructions for Part 2- Coding
Read the data in the file 'Final_Exam_Data.csv' into a dataframe. The spreadsheet can be found in the module, either in Week 16, or in the Assignments sections. Use the data in the columns for the subplots as defined below. Column names are written in quotes.
Create a figure with 2 by 2 subplots.
TOP-LEFT subplot:
a. Plot 'theta' vs 'cosTheta'.
b. Make sure that the points are plotted as red dots.
c. Label the x-axis, y-axis and the title as 'Theta','Amplitude' and 'Cosine Theta', respectively.
TOP-RIGHT subplot:
a. Create a new variable that contains only the elements of 'signal' where the values are positive. Plot this variable in the subplot using black dots.
b. Set the y-axis limits to -5 to 5.
c. Set the markersize to 0.6.
d. Label the x-axis, y-axis and the title as 'Sample No', 'Amplitude' and 'Positive signal', respectively.
BOTTOM-LEFT subplot:
a. Plot 'theta' vs 'signal'.
b. Label the x-axis, y-axis and the title as 'Theta', 'Amplitude' and 'Signal', respectively.
BOTTOM-RIGHT subplot:
a. Make a histogram of 'signal'.
b. Set the number of bins in the histogram to 50.
c. Label x-axis, y-axis and the title as 'Signal','Frequency' and 'Histogram of signal', respectively.
Make sure that your plot is identical to what is shown in 'Final_Exam_Figure.png', also in Canvas.
Turn in:
a. Your code.
b. A screen-shot of your plot. You can also save the figure as a *.png, if you choose to do so, turn in the .png file.
c. Make sure to list your name in the comments block in your code.
 FINAL - Instructions for Part 2- Coding Read the data in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!