Describing a Categorical Relationship

Instructions

Describing a Categorical Relationship
Project Description:
Data was collected from several classes of Business students enrolled in a private religious affiliated university during the fall semester of the 2016 presidential election year. The variables collected included: 1) Sex – Female/Male; 2) HS – Private/Public; 3) Party – Democrat/Republican/Other (includes Independent, Libertarian, and Green); 4) Registered – Yes/No; 5) Likely Vote – 0-100%. For the purpose of this project, you will only be using the variables, Party and Registered. The purpose of this project is to describe graphically and numerically a categorical relationship and to understand the difference among joint, marginal, and conditional probabilities. Use this summary analysis to help you determine whether the choice of a student’s political party is independent or dependent of whether the student is registered to vote or not.
Instructions:
Use a cell reference or a single formula where appropriate in order to receive full credit. Do not copy and paste values or type values, as you will not receive full credit for your answers. For the purpose of grading the project you are required to perform the following tasks:
Step Instructions Points Possible
1 Start Excel. Download and open the workbook named: 0
Describing_a_Categorical_Relationship_Start.
2 In cells C8-F13, insert a pivot table putting political party affiliation on the rows and values areas and registered to vote on the columns area. 2
Insert PivotTable
Go to the Voting Data worksheet. Select the PivotTable in the Tables group of the Insert tab of the Ribbon.
Selecting Data Series
Choose Select a table or range and select columns A-F on the Voting Data worksheet. Select Existing Worksheet and choose cell H2 on the Voting Data worksheet as the location for the pivot table. Do not check any additional boxes in the Create PivotTable dialog.
Edit PivotTable
In the PivotTable Fields list, drag-and-drop the Registered field into the columns area and Party field into the rows and values areas. In the Fields list, open the drop-down menu to the right of the Registered field and uncheck the (blank) box. Then open the drop-down menu for the Party field and uncheck the (blank) box. Select design Pivot Style Light 20 in the PivotTable Styles group of the Design tab of the Ribbon. Set Times New Roman, size 14 pt. font to the text in the pivot table in the Home tab of the Ribbon. Change the name of the pivot table to Table1 in the PivotTable group of the Analyze tab on the Ribbon.
Moving PivotTable
Select the pivot table. Then choose Move PivotTable in the Actions group of the Analyze tab on the Ribbon. In the Move PivotTable dialog, select cells C8-F13 on the Problem worksheet.
Note: Filters should be set to both the Registered and Party fields. Other options will not be graded.
3 In cells C17-F22, insert a pivot table putting political party affiliation on the rows and values areas and registered to vote on the columns area and showing the values as ‘% of Grand Total’. 2
Insert PivotTable
Go to the Voting Data worksheet. Select the PivotTable in the Tables group of the Insert tab of the Ribbon.
Selecting Data Series
Choose Select a table or range and select columns A-F on the Voting Data worksheet. Select Existing Worksheet and choose cell H9 on the Voting Data worksheet as the location for the pivot table. Do not check any additional boxes in the Create PivotTable dialog.
Edit PivotTable
In the PivotTable Fields list, drag-and-drop the Registered field into the columns area and Party field into the rows and values areas. In the Fields list, open the drop-down menu to the right of the Registered field and uncheck the (blank) box. Then open the drop-down menu for the Party field and uncheck the (blank) box. In the Values area, open the drop-down list to the right of the field name and select the Value Field Settings option. Choose % of Grand Total in the Show Values As tab. Click on Number Format button and set percentage format that displays two decimal places. Select design Pivot Style Light 20 in the PivotTable Styles group of the Design tab of the Ribbon. Set to the text in the pivot table Times New Roman, size 14 pt. font in the Home tab of the Ribbon. Change the name of the pivot table to Table2 in the PivotTable group of the Analyze tab on the Ribbon.
Moving PivotTable
Select the pivot table. Then choose Move PivotTable in the Actions group of the Analyze tab on the Ribbon. In the Move PivotTable dialog, select cells C17-F22 on the Problem worksheet.
Note: Filters should be set to both the Registered and Party fields. Other options will not be graded.
4 In cells C26-F31, insert a pivot table putting political party affiliation on the rows and values areas and registered to vote on the columns area and showing the values as ‘% of Row Total’. Use columns A-F on the Voting Data worksheet. Choose cell H16 on the Voting Data worksheet as the location for the pivot table. In the PivotTable Fields list, drag-and-drop the Registered and Party fields into appropriate areas. Select to show all values except the blanks for the Registered and Party fields. Choose % of Row Total and set percentage format that displays two decimal places in the Show Values As tab of the Value Field Settings. Select design Pivot Style Light 20. Set to the text in the pivot table Times New Roman, size 14 pt. font. Change the name of the pivot table to Table3. Move the pivot table in cells C26-F31 on the Problem worksheet. Note: Filters should be set to both the Registered and Party fields. Other options will not be graded. 2
5 In cell J35, identify the probability that the business student is a registered voter. 1
6 In cell J36, choose the type of probability in step 5) from the drop-down menu. 1
7 In cell J37, identify the probability that the business student is registered and a Republican. 1
8 In cell J38, choose the type of probability in step 7) from the drop-down menu. 1
9 In cell J39, identify the probability that the business student is registered to vote given they are Republicans. 1
10 In cell J40, choose the type of probability in step 9) from the drop-down menu. 1
11 In cell J41, identify the probability that the business student is registered to vote if they are a Democrat. 1
12 In cell J43, identify the probability that the business student is not registered to vote and not affiliated with either the Democratic or the Republican party. 1
13 In cells C47-G47 insert a Clustered Column Chart to show the distribution of the registered (Yes/No) across the three political parties. 2
Inserting Chart
Select the Column Chart and then the Clustered Column Chart from the provided chart options in the Charts group of the Insert tab of the Ribbon.
Selecting Data Series
Choose Select Data in the Design tab on the Ribbon. Delete any series created automatically using the Remove button and add new series using Add button.
Add a new series for the distribution of those not registered to vote across the three political parties using cells D28-D30 as the Series values. Use cell D27 to set the series name.
Add new series for the distribution of the registered to vote across the three political parties using cells E28-E30 as the Series values. Use cell E27 to set the series name.
Edit Category Labels using cells C28-C30 as the Axis label range.
Edit Chart Elements
Select design Style 1 in the Design tab of the Ribbon. Then go to the Add Chart Elements drop-down list. Add the legend and choose the Right option. Add the data labels and choose the Outside End option.
Chart Size and Position
Go to the Format tab on the Ribbon. Set the chart height and width so the entire chart fits within cells C47-G47.
14 In cells C51-G51 insert a Stacked Column Chart to show the distribution of the registered Yes/No across the three political parties. 2
Inserting Chart
Select the Column Chart and then the Stacked Column Chart from the provided chart options in the Charts group of the Insert tab of the Ribbon.
Selecting Data Series
Choose Select Data in the Design tab on the Ribbon. Delete any series created automatically using the Remove button and add new series using Add button.
Add a new series for the distribution of those not registered to vote across the three political parties using cells D28-D30 as the Series values. Use cell D27 to set the series name.
Add new series for the distribution of the registered to vote across the three political parties using cells E28-E30 as the Series values. Use cell E27 to set the series name.
Edit Category Labels using cells C28-C30 as the Axis label range.
Edit Chart Elements
Select design Style 1 in the Design tab of the Ribbon. Then go to the Add Chart Elements drop-down list. Add the legend and choose the Right option. Add the data labels and choose the Center option.
Chart Size and Position
Go to the Format tab on the Ribbon. Set the chart height and width so the entire chart fits within cells C51-G51.
15 In cell C60, based on steps 13-14, identify whether the distribution of being registered to vote or not appears to differ between the three party affiliations. Choose from the drop-down menu the letter from A to D corresponding to one of the options listed in cells C55-I58. 1
16 Identify whether the analysis supports that being registered to vote is independent of party affiliation. Choose the correct answer from the drop-down menu in cell C64. 1
17 Save the workbook. Close the workbook and then exit Excel. Submit the workbook as directed. 0
Total Score 20

Problem

Describing a Categorical Relationship
Use the data collected from business students at a private religious affiliated University in the fall of the 2016 presidential election year to determine whether the choice of a student’s political party is independent of being registered to vote during the fall semester of a presidential election. In order to determine independence, it is important to understand the difference between joint and conditional probabilities, how to obtain these probability distributions and how to interpret these results visually using appropriate bar charts. Use a cell reference or a single formula where appropriate in order to receive full credit. Do not copy and paste values or type values, as you will not receive full credit for your answers.
1-2) Construct a pivot table putting political party affiliation on the rows and values areas and registered to vote on the columns area. Remove the blanks from Party and Registered fields. Follow the directions in steps 1-2 in the instructions document. Insert the pivot table in cells C8-C13.
3) Construct a pivot table putting political party affiliation on the rows and values areas and registered to vote on the columns area. Show the values as ‘% of Grand Total’. Remove the blanks from Party and Registered fields. Follow the directions in step 3 in the instructions document. Insert the pivot table in cells C17-F22.
4) Construct a pivot table putting political party affiliation on the rows and values areas and registered to vote on the columns area. Show the values as ‘% of Row Total’. Remove the blanks from Party and Registered fields. Follow the directions in step 4 in the instructions document. Insert the pivot table in cells C26-F31.
Given this is a representative sample of business students at a religious affiliated university, if one randomly selects a business student attending a religious affiliated university, calculate the following probabilities and identify their types.
5) In cell J35, identify the probability that the business student is a registered voter.
6) In cell J36, choose the type of probability in step 5) from the drop-down menu.
7) In cell J37, identify the probability that the business student is registered and a Republican.
8) In cell J38, choose the type of probability in step 7) from the drop-down menu.
9) In cell J39, identify the probability that the business student is registered to vote given they are Republicans.
10) In cell J40, choose the type of probability in step 9) from the drop-down menu.
11) In cell J41, identify the probability that the business student is registered to vote if they are a Democrat.
12) In cell J43, identify the probability that the business student is not registered to vote and not affiliated with either
the Democratic or the Republican party.
13) Construct a clustered column chart to visually show the distribution of registered (Yes/No) across the three political parties. Follow the directions in step 13 in the instructions document. Insert the chart in cells C47-G47.
14) Construct a stacked column chart to visually show the distribution of registered (Yes/No) across the three political parties. Follow the directions in step 14 in the instructions document. Insert the chart in cells C51-G51.
15) In cell C60, based on steps 13-14, identify whether the distribution of being registered to vote or not appears to differ between the three party affiliations. Choose from the drop-down menu the letter from A to D corresponding to one of the options listed in cells C55-I58.
A Yes, because the majority of students in both the Democrat and Republican parties are registered to vote, while the majority of students in the ‘Other’ parties are not registered to vote.
B Yes, because the distribution of Yes/No changes considerably for each party observed.
C No, because the ‘Other’ party is about equally split between registered and not registered.
D No, because the distributions of registered Yes/No are similar between the Democrats and the Republicans.
16-17) Identify whether the analysis supports that being registered to vote is independent of party affiliation. Choose the correct answer from the drop-down menu in cell C64.

Voting Data

Sex HS Job Registered Party LikelyVote
Female Public Income Yes Republican 90
Female Private Job satisfaction No Republican 75
Female Private Job satisfaction Yes Republican 90
Female Public Job satisfaction Yes Democrat 40
Male Public Income No Other 0
Male Private Job satisfaction Yes Democrat 99
Female Public Job satisfaction Yes Republican 75
Female Public Income Yes Democrat 75
Female Public Job satisfaction Yes Republican 50
Female Public Income Yes Republican 90
Male Private Job satisfaction No Other 50
Male Public Job satisfaction Yes Republican 78
Male Private Job satisfaction Yes Republican 50
Female Public Job satisfaction Yes Democrat 100
Male Public Job satisfaction Yes Republican 100
Male Private Income Yes Republican 78
Female Public Income Yes Republican 100
Female Private Income Yes Republican 100
Male Public Job satisfaction No Democrat 0
Female Public Job satisfaction Yes Democrat 100
Male Private Job satisfaction Yes Republican 100
Female Public Job satisfaction Yes Democrat 100
Female Private Income Yes Democrat 100
Female Private Income Yes Democrat 100
Female Public Job satisfaction No Republican 0
Male Public Income No Other 0
Female Public Income Yes Other 100
Male Private Income No Republican 75
Male Public Job satisfaction Yes Other 100
Male Private Job satisfaction Yes Other 80
Female Public Job satisfaction No Republican 50
Male Public Income No Republican 30
Female Public Job satisfaction Yes Democrat 90
Female Public Job satisfaction No Republican 0
Male Public Job satisfaction Yes Republican 100
Female Public Job satisfaction Yes Republican 70
Male Private Job satisfaction Yes Other 90
Female Public Job satisfaction Yes Democrat 100
Male Public Job satisfaction Yes Democrat 35
Male Public Income Yes Democrat 100
Male Public Job satisfaction No Republican 0
Female Public Job satisfaction Yes Democrat 75
Female Public Job satisfaction No Republican 80
Female Public Income No Republican 0
Female Public Job satisfaction No Democrat 0
Male Public Income Yes Republican
Male Public Income Yes Republican 100
Female Private Job satisfaction No Other 1
Female Public Income No Republican 75
Female Public Income No Republican 75
Female Private Income No Democrat 0
Female Public Income No Republican 75
Female Public Income No Other 0
Male Public Job satisfaction Yes Republican 100
Male Public Job satisfaction No Other 0
Female Public Job satisfaction Yes Other 100
Male Public Job satisfaction Yes Republican 25
Male Public Job satisfaction Yes Democrat 100
Female Public Job satisfaction Yes Republican 50
Female Public Job satisfaction Yes Republican 100
Male Public Income Yes Republican 40
Male Private Job satisfaction No Republican 70
Female Private Job satisfaction No Other 1
Female Public Income No Republican 0
Female Private Income No Other 50
Female Private Job satisfaction No Republican 0
Female Private Job satisfaction No Democrat 0
Female Public Job satisfaction Yes Republican 100
Male Private
Male Public Job satisfaction Yes Republican 50
Male Public Job satisfaction Yes Other 100
Female Private Job satisfaction No Other 0
Male Private Income Yes Republican 10
Female Public Job satisfaction Yes Democrat 100
Male Public Income Yes Republican 50
Female Public Job satisfaction Yes Democrat 100
Male Private Job satisfaction No Other 0
Male Public Income Yes Republican 100
Male Public Job satisfaction Yes Other 0
Female Private Income No Republican 60
Female Private Income No Republican 60
Male Public Income Yes Republican 70
Male Public Income Yes Democrat 100
Male Public Yes Republican 20
Male Public Job satisfaction Yes Republican 95
Male Public Job satisfaction No Republican 70
Female Public Income Yes Democrat 75
Male Public Job satisfaction Yes Democrat 100
Male Private Income No Republican
Male Public Job satisfaction No Other 0
Male Private Job satisfaction Yes Democrat 88
Male Public Job satisfaction Yes Other 50
Female Public Income Yes Republican 50
Male Public Job satisfaction Yes Democrat 80
Female Public Income No Other 70
Male Public Job satisfaction Yes Democrat
Female Public Income No Other 10
Male Public Income Yes Republican 100
Male Public Job satisfaction Yes Republican 35
Male Public Income No Democrat 20
Male Private Income Yes Republican 0
Male Private Job satisfaction No Republican 0
Male Private Income No Democrat 40
Male Private
Female Public Income No Democrat 0
Male Public Income No Republican 0
Male Public Job satisfaction Yes Democrat 100
Male Public Income Yes Republican 100
Male Public Income Yes Republican 100
Male Private Income No Other 0
Male Public Income No Other 0
Male Public Income Yes Democrat 100
Male Public Income No Republican 50
Male Public Income Yes Republican
Female Public Job satisfaction Yes Republican 30
Male Private Income Yes Democrat 100
Male Private Job satisfaction Yes Democrat 100
Male Public Job satisfaction Yes Other 65
Male Public Job satisfaction Yes Other 50
Male Public Income Yes Republican 100
Female Public Income Yes Republican 80
Male Private Job satisfaction Yes Other 0
Male Private Income Yes Republican 100
Male Public Job satisfaction Yes Other 100
Female Public Income Yes Democrat 90
Female Private Job satisfaction Yes Democrat 100
Female Public Income No Republican 0
Female Private Job satisfaction No Democrat 0
Male Public Income Yes Democrat 75
Male Public Job satisfaction Yes Democrat 70
Male Public Income Yes Republican 100
Male Public Income Yes Republican 100
Male Private Income Yes Democrat 100
Male Public Income Yes Democrat 0
Male Public Job satisfaction No Other 10
Male Public Job satisfaction Yes Democrat 100
Female Public Job satisfaction Yes Republican 50
Male Public Income Yes Republican 100
Female Private Job satisfaction Yes Democrat 0
Male Public Income Yes Democrat 100
Male Private Income Yes Other 90