Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
08-07-2021
Written in
2021/2022

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 t 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 = plot(data=ages1980,jitter=True) (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 Read less
Institution
University Of California - Los Angeles
Course
LS 40 Popular Culture in Modern Chinese Societies









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
University Of California - Los Angeles
Course
LS 40 Popular Culture in Modern Chinese Societies

Document information

Uploaded on
July 8, 2021
Number of pages
13
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
academia1434 Chamberlain School Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
408
Member since
6 year
Number of followers
368
Documents
934
Last sold
3 months ago
Academia1434

Get the best academic help in all courses. Everything you need to improve yourself, study materials organised by courses, universities in plenty. Because your planning is not always perfect, you need to be able to secure a high score. (Ask anything directly if need be)

3.6

53 reviews

5
23
4
8
3
11
2
2
1
9

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions