Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I tabulate the variable 'marital' in python Descriptive Statistics Let's start with some basic descriptive statistics on the sample. This wilt take a

How do I tabulate the variable 'marital' in python image text in transcribed
Descriptive Statistics Let's start with some basic descriptive statistics on the sample. This wilt take a bit more thinking about because here we are dealing wath vartables that are categorical (and denoted as strings) and not numeric variables. That means we cannot simply use numpy commands. Instead, we nesd to use statistics that Will tell us about the number or proportion of people in each category. We will compute these statistics and then practice plotting them. The first one is done for you. What proportion of the sample was married at the time of the study? To answer this question, we need to tabulate the varibie called imaritar. When we "tabuiate" results, we arrange the cdata in a table, using counts (or percentages) of people in each cell (as in the contingency tables we looked at in lecture). We will also show the dota with a pie chart. tabulate- the data to give us a count of poople in each category of marital stater display(tblo) fois showg the table we made: The code below plotg the table as a pie chart fwich pergentages of people in each categoryl plt.show()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Write down the circumstances in which you led.

Answered: 1 week ago