Question: I am getting an error with this script if this is what assigned team Bulls and then your assigned team Spurs Step 6: Hypothesis Test

I am getting an error with this script if this is what assigned team "Bulls" and then your assigned team "Spurs"

I am getting an error with this script if this is
Step 6: Hypothesis Test for the Difference Between Two Population Means The management of your team wants to compare the team with the assigned team (the Bulls in 1996-1998). They claim that the skill level of your team in 2013-2015 is the same as the skill level of the Bulls in 1996 to 1998. In other words, the mean relative skill level of your team in 27013 to 2015 is the same as the mean relative skill level of the Bulls in 1996-1998. Test this claim using a 1% level of significance. Assume that the population standard deviation is unknown. Make the following edits to the code block below: 1. Replace ??7DATAFRAME_ASSIGNED_TEAM?? with the name of assigned team's dataframe. See Step 1 for the name of assigned team's dataframe. 2. Replace ??7DATAFRAME_YOUR_TEAM?? with the name of your team's dataframe. See Step 2 for the name of your team's dataframe. 3. Replace ??RELATIVE_SKILL?? with the name of the variable for relative skill. See the table included in Project Two instructions above to pick the variable name. Enclose this vanable in single quotes. For example, if the variable name is var2 then replace ??> RELATIVE _SKILL?? with 'var2". After you are done with your edits, click the block of code below and hit the Run button above. [In [8]: PW amport scipy.stats as st # Assuming the DataFrames and variable names are as follows: # assigned_team_df is the DataFrame for the Bulls in 1996-1998 # your_team_df is the DataFrame for your team in 2013-2015 # 'elo_n" is the variable for relative skill mean elo n_project_team = assigned_team_df['Bulls'].mean() print("Mean Relative Skill of the assigned team in the years 1996 to 1998 =", round(mean_elo_n_project_team,?)) mean_elo_n_your_team = your_team_df['elo_n'].mean() print("Mean Relative Skill of your team in the years 2013 to 2615 =", round({mean_elo_n_your_team,?)) # Hypothesis Test # ---- TODO: make your edits here ---- test_statistic, p_value = st.ttest_ind(assigned_team_df['Bulls'],your_team_df [ Spurs' ]) print("Hypothesis Test for the Difference Between Two Population Means") print("Test Statistic =", round(test_statistic,?)) print("P-value =", round(p_value,4)) NameError Traceback (most recent call last) in 6 # 'elon' is the variable for relative skill 7 ----> 8 mean_elo_n_project_team = assigned_team_df[ 'Bulls' |.mean() 9 print("Mean Relative Skill of the assigned team in the years 1996 to 1998 =", round(mean_elo_n_project_team,?)) 16 mean_elo_n_your_team = your_team_df['elo_n' ].mean() NameError: name 'assigned team_df" is not defined

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 Accounting Questions!