Question: In [36]: I import numpy as np import scipy . stats as st import pandas as pd import matplotlib. pyplot as plt from IPython. display

 In [36]: I import numpy as np import scipy . stats
as st import pandas as pd import matplotlib. pyplot as plt from

In [36]: I import numpy as np import scipy . stats as st import pandas as pd import matplotlib. pyplot as plt from IPython. display import display, HTML nba_orig_df = pd. read_csv( 'nbaallelo. csv' ) assigned_years_league_df = nba_orig_df[ (nba_orig_df[ 'year_id' ]. between(1996, 1998) ) ] mean_elo_n_project_team = assigned_team_df [ 'elo_n' ]. mean() print("Mean Relative Skill of the assigned team in the years 1996 to 1998 =", round(mean_elo_n_project_team, 2) ) mean_elo_n_your_team = your_team_df[ 'elo_n' ]. mean() print("Mean Relative Skill of your team in the years 2013 to 2015 =", round(mean_elo_n_your_team, 2) ) # Hypothesis Test # - - - - TODO: make your edits here - - -- test_statistic, p_value = st. ttest_ind(assigned_team_df['elo_n' ], your_team_dr['elo_n' ]) print( "Hypothesis Test for the Difference Between Two Population Means" ) print("Test Statistic =", round(test_statistic, 2) ) print("P-value =", round(p_value, 4) ) NameError Traceback (most recent call last) in 8 assigned_years_league_df = nba_orig_df[ (nba_orig_df[ 'year_id' ]. between(1996, 1998) ) ] 9 - - -> 10 mean_elo_n_project_team = assigned_team_df[ 'elo_n' ]. mean( ) 11 print("Mean Relative Skill of the assigned team in the years 1996 to 1998 =", round(mean_elo_n_project_team, 2) ) 12 NameError: name 'assigned_team_of' 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 Mathematics Questions!