Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python please a) Write a function that calculates and returns the difference in director salaries depending on the gender (male average income female average

In python please

a) Write a function that calculates and returns the difference in director salaries depending on the gender (male average income female average income). Report the value.

b) Create a randomization test function to perform a randomization test to determine whether the reported difference is statistical significant. Plot a histogram of the null-distribution and the real value. Report the p-value for the two-sided test.

c) What do you conclude about the relationship between gender and salary? What can you conclude about the claim that there is gender discrimination in the American film industry?

This is the structure of the data:

image text in transcribed

Unnamed: \begin{tabular}{rrrrrrrrr} & Unnamed: & boxoff & prodcost & dirlncome & dirGender & year & month & genre numTI \\ \hline 0 & 0 & 88.648583 & 44.742936 & 1.143234 & male 2012 & 3 & comedy \\ 1 & 1 & 145.334924 & 38.835516 & 3.393535 & female 2014 & 11 & drama \\ 2 & 2 & 238.265684 & 29.532283 & 2.418883 & male 2015 & 6 & other \\ 3 & 3 & 212.714742 & 157.111899 & 2.034115 & male 2014 & 10 & adventure \\ 4 & 4 & 120.175461 & 30.547155 & 0.963219 & female 2012 & 1 & comedy \end{tabular}

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

Students also viewed these Databases questions