Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Theory Of Numbers

Authors: William J LeVeque

1st Edition

0486150763, 9780486150765

More Books

Students also viewed these Mathematics questions

Question

Always show respect for the other person or persons.

Answered: 1 week ago