logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Elmer BaurData mining
(5/5)

823 Answers

Hire Me
expert
Jon CulshawwComputer science
(5/5)

911 Answers

Hire Me
expert
Sachin RanaComputer science
(5/5)

720 Answers

Hire Me
expert
Rex HuntGeneral article writing
(5/5)

595 Answers

Hire Me
Others
(5/5)

Calculate the median income of male employees and the median income of a female employee in the population

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Analyze the Income Gap between Female and Male Employees

 Introduction

This assignment is developed based on the three datasets collected from Kaggle.com at: https://www.kaggle.com/theoviel/kagglers-gender-pay-gap-salary-prediction. You may refer to the web- site for an explanation, cleaning, visualization, and basic analysis of the datasets. The three datasets: surveySchema.csv, freeFormResponses.csv, multipleChoiceResponses.csv. 

Tasks

Complete the following tasks:

1.   Calculate the median income of male employees and the median income of a female employee in the population. (look at the set of all employees in the datasets as the population). (1 point)

2.   Draw an overlaid graph to show the histograms of the incomes of female and male employees in the population. (You create one histogram for male, and another histogram for female, but the two histograms will be displayed in the same graph with different colors). (1 point)

3.   Use the random sampling, empirical distribution, sample comparison, bootstrap, hypothesis testing as well as A/B testing we discussed in the class to analyze the income gap between female and male employees.

Select a sample from the population. Make sure your sample include 500 employees selected from the population, and consider how to ensure the sampling strategy is fair since the datasets include overwhelmed male employees than female employees (1 point).

•  Define test statistic, null hypothesis, and alternative hypothesis (1 point).

Draw the income histogram for the sample, calculate the median income of the sample, and draw a red dot and a yellow dot of the female median income and male median income of the population, respectively, in the histogram (1 point).

Draw the histogram of the test statistic of the sample, and draw a red dot to show the corresponding test statistic of the population (e.g. the difference of the median incomes between female and male employees) in the diagram (1 point).

•  Write a procedure to use bootstrap to produce at least 5000 samples (1 point).

•  Draw the histogram of the test statistic of the bootstrap samples (1 point).

Define confidence interval and P-value to validate the hypothesis you defined (2 points).

4.   Submit Python code, the writing for explaining the data cleaning the procedure, defining the test statistic hypothesises, random sampling, bootstrap, confidential intervals, P-vales, as well as interpretation of your results, and all outputs described above.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme