For this assignment, you will need two different data sets:
We will use these data sets for later homework assignments. Since scraping the data takes time, save these data sets to use again for the future programs.
The work to be submitted is the same for the undergraduate and graduate course.
CMP 464/788 Homework: | |
---|---|
#1-2 |
Using gradient descent compute the linear regression for the historical Bronx population versus the total New York City population. Display a plot containing the pairs (bx[i],nyc[i]) where bx[i] is the Bronx population in year i and nyc[i] is the total New York city population in year i (Hint: use a scatter plot to show this part). Include on your plot the linear regression line that you computed.
Make sure to include in the title of your plot the date plotted. #1: Submit your Python program as a .py file. #2: Submit a screen shot of the graphics window containing the plot. |
#3-4 |
The USGS collected images before and after the
Both: New Year's flooding: New Year's flooding (saved as png for December, 2015 and for January, 2016). Write a program that produces an image with flooded regions marked in red (that is, any pixel that is not "blue" in 2015 but is in the 2016 image).
#3: Submit your Python program as a .py file. #4: Submit a screen shot of the graphics window containing the plot. |
#5-6 |
The USGS remote sensing gallery contains an image of
New York City. Filter this image to be a ninth of its original size by saving one pixel out of every 3 x 3 subset.
#5: Submit your Python program as a .py file. #6: Submit a screen shot of the graphics window containing the plot. |