Biology  >  Solutions Guide  >  LS 40 (Life Science) Homework 1 Solutions (Lecture 1 W21)updated in Jan 2021 (All)

LS 40 (Life Science) Homework 1 Solutions (Lecture 1 W21)updated in Jan 2021

Document Content and Description Below

Homework 1 Solutions By Ashley (Adapted from previous solutions) updated in January 2021 by Ana Gomez points: 21 completion points, 5 accuracy points = 26 points total 1. The age distribution of f ... irst-time mothers in the United States has changed greatly over the last forty years, so we’d like you to analyze a representative dataset of ages of first time mothers in 1980 and 2016. If you’d like to know more about this phenomenon, see the New York Times article “ The Age That Women Have Babies: How a Gap Divides America .” For each dataset (provided in the turn-in sheet), do the following steps: a. Use Python to plot a dot plot, beeswarm plot, histogram, violin plot, and boxplot. (5 points for completion) In [1]: # Import Python libraries %matplotlib inline import matplotlib as mat import seaborn as sns import numpy as np import matplotlib.pyplot as plt # for displaying plots side by side in subplots In [2]: # Dataset for Homework 1: Representative dataset of age of first time mothers in USA in 1980 and 2016 ages1980 = [23,32,20,27,28,20,29,25,19,19,19,27,27,25,24,18,17,20,22,17,22,20, ages2016 = [21,29,41,23,35,16,18,19,26,29,33,19,18,28,21,18,24,31,37,31,27,36, 18,40,33,27,25,26,22,29,27,30,29,30,25,28,24,23,17,19,36,18,29,22,25,20,20,34, In [21]: # Dot plots p1 = sns.stripplot(data=ages1980,jitter=True) p1.set(ylabel = "Age of First-Time Mothers", title = "1980") Homework 1 Solutions (Lecture 1 W21) 2/5/21, 1:02 AM file:///Users/ana/Downloads/Assignment%20Solutions%2021W/Homew…0Solutions/Homework%201%20Solutions%20(Lecture%201%20W21).html Page 2 of 13 [Text(0, 0.5, 'Age of First-Time Mothers'), Text(0.5, 0, ''), Text(0.5, 1.0, '1980')] [Text(0, 0.5, 'Age of First-Time Mothers'), Text(0.5, 1.0, '2016')] [Show More]

Last updated: 3 years ago

Preview 1 out of 13 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of LS 40 (Life Science) Homework 1 Solutions (Lecture 1 W21)updated in Jan 2021 document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$13.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

171
0

Document information


Connected school, study & course


About the document


Uploaded On

Jul 09, 2021

Number of pages

13

Written in

All

Seller


Profile illustration for Academia1434
Academia1434

Member since 5 years

211 Documents Sold

Reviews Received
36
2
4
2
17
Additional information

This document has been written for:

Uploaded

Jul 09, 2021

Downloads

 0

Views

 171

Document Keyword Tags

Recommended For You

Get more on Solutions Guide »

$13.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·