Lilly collects data on a sample of 40 high school students to evaluate whether the proportion of female high school students who take advanced math courses in high school varies depending upon whether they have been raised primarily by their father or by both their mother and their father. Two variables are found below in the data file: math (0 = no advanced math and 1 = some advanced math) and Parent (1= primarily father and 2 = father and mother).

Parent Math
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
1.0 0.0
2.0 0.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 1.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0
2.0 0.0

a) Conduct a crosstabs analysis to examine the proportion of female high school students who take advanced math courses is different for different levels of the parent variable.
b) What percent female students took advanced math class
c) What percent of female students did not take advanced math class when females were raised by just their father?
please show work to understand. Thank you.

To conduct a crosstabs analysis, we can use a statistical software or spreadsheet program like Excel. This analysis will allow us to examine the proportion of female high school students who take advanced math courses for different levels of the parent variable.

a) To perform a crosstabs analysis, we need to count the number of female students who took advanced math courses and the number who did not, separated by the levels of the parent variable. From the given data, we can create a contingency table:

Father Both Parents
Math = 0 18 12
Math = 1 5 5

To calculate the proportion, we can divide the number of females who took advanced math courses by the total number of females for each level of the parent variable.

Father: Proportion of females who took advanced math courses = 5 / (5 + 18) = 5 / 23 ≈ 0.217
Both Parents: Proportion of females who took advanced math courses = 5 / (5 + 12) = 5 / 17 ≈ 0.294

b) To calculate the percentage of female students who took advanced math classes, we can multiply the proportions obtained in part a) by 100.

Father: Percent of females who took advanced math courses = 0.217 * 100 ≈ 21.7%
Both Parents: Percent of females who took advanced math courses = 0.294 * 100 ≈ 29.4%

c) To calculate the percentage of female students who did not take advanced math classes when raised by just their father, we can subtract the proportion obtained in part a) from 1 and multiply by 100.

Percent of females who did not take advanced math class (Father) = (1 - 0.217) * 100 ≈ 78.3%