Question: 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:

In python please a) Write a function that calculates and returns the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!