data 8 hw03

pdf

School

University of California, Berkeley *

*We aren’t endorsed by this school

Course

8

Subject

Statistics

Date

Feb 20, 2024

Type

pdf

Pages

6

Uploaded by ProfComputer848

Report
Data 8 - hw03 - email@berkeley.edu **Question 6.** In the code cell below, create a visualization that will help us determine if there is an association between birth rate and death rate during this time interval. It may be helpful to create an intermediate table here. # Generate your chart in this cell pop.scatter(4,5) Page 1
Data 8 - hw03 - email@berkeley.edu **Question 2.** State at least one reason why you chose the histogram from Question 1. Make sure to indicate which histogram you selected (ex: "I chose histogram A because ..."). I chose histogram B because it doesn't have any gaps. According to the scatter plot, there is no gap for the x values, while there is a significant gap for y values, creating two groups of points. Since there is no gap for the x values, the histogram also shouldn't have gaps for x values. Page 2
Data 8 - hw03 - email@berkeley.edu **Question 4.** State at least one reason why you chose the histogram from Question 3. Make sure to indicate which histogram you selected (ex: "I chose histogram A because ..."). There is a significant gap between y values, according to the scatter plot provided. This gap will also be resembled in a histogram, if the y values are used to be the x-axis of the histogram. Therefore, I chose histogram A because it has a gap separating two groups of values. Page 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Data 8 - hw03 - email@berkeley.edu **Question 1.** Produce histograms of all ride times in Boston using the given bins. equal_bins = np.arange(0, 120, 5) boston.hist(3, bins = equal_bins, unit = 'Minutes') Page 4
Data 8 - hw03 - email@berkeley.edu **Question 2.** Now, produce histograms of all ride times in Manila using the given bins. manila.hist(3, bins = equal_bins, unit = 'Minutes') # Don't delete the following line! plots.ylim(0, 0.05) Page 5
Data 8 - hw03 - email@berkeley.edu **Question 5.** What is the main difference between the two histograms. What might be causing this? **Hint:** Try thinking about external factors that may be causing the difference! The range of the two histograms are different. The boston histogram only has x values between 0 to 45, while the manila histogram has x values between 0 to 100. This might have been the result of how spread out the two cities are. Boston has a smaller metropolitan area, where the population is mostly concentrated. And Manila might have a larger area and a more spread out population. Page 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help