Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For Exercises 6-10, work with the adult ch3 training data set. The response is whether income exceeds $50,000. 6. Add a record index field

image text in transcribed

For Exercises 6-10, work with the adult ch3 training data set. The response is whether income exceeds $50,000. 6. Add a record index field to the data set. 7. Determine whether any outliers exist for the education field. 8. Do the following for the age field. a) Standardize the variable. b) Identify how many outliers there are and identify the most extreme outlier. 9. Derive a flag for capital-gain, called capital-gain-flag, which equals 0 for capital gain equals zero, and 1 otherwise (hint: use code for replace based on a condition- dataset/'column] = np.where(dataset['column'] value, value if true, value_if_false). 10. Age anomaly? Select only records with age at least 80. Construct a histogram with the data of people whose age is at least 80 (hint: a way to solve the question is to use np.where). Explain what you see in one sentence and why it is like that in another sentence.

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_2

Step: 3

blur-text-image_3

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

Advanced Accounting

Authors: Floyd A. Beams, Joseph H. Anthony, Bruce Bettinghaus, Kenneth Smith

12th edition

133451860, 978-0133451863

More Books

Students also viewed these Accounting questions

Question

Briefly discuss Aristotles approach to dreaming.

Answered: 1 week ago

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago