Question: need help in step three I believe the relative skill variable is elo_n and null hypothesis is 1420 but I can n ot get the

 need help in step three I believe the relative skill variable

need help in step three I believe the relative skill variable is elo_n and null hypothesis is 1420 but I can not get the right syntax not sure where I am going wrong.

is elo_n and null hypothesis is 1420 but I can not get

the right syntax not sure where I am going wrong. + x

+ x Marken + Run C Step 2: Pick Your Team In this step, you will pick your team. The range of years that you will study for your team is 2013-2015. Make the following edits to the code block below: 1. Roplaco ?TEAM?? with your choice of team from one of the flowing team names Bucks, Bus Cavaliers, Concs Clippers Grizzlies Hawks, Meat Jaz2 King Knicks Lakers Magic Mavericks, Nets, Nuggets. Pacers Pelicans Pistons Raptors Rachels Surers, Sours, Suns Thunder Timberwolves, Trailblazers, Warriors, Wizards Remember to enter the team name within single quotes. For example, if you picked the Suns, then ??TEAM?? should be replaced with Suns. After you are done with your edits, dick the block of code below and hit the Run button above In (251: Mange of years: 2011-2015 Nate: the line below select all team within the three-year period 2013. 2015. This is not your years leagues de nba orig deba orig dri'year id .between 2013, 2015) # The datarea for your team is call your team dr. --- TODO! m e your dit here - your team of your years leagoa dflyour years laques de Ezan id e a ) your team at your teardreset inte drops True Hisplay (HNL your teandt.headi).ta hitnl (1 printi printed only the stat five chaecvationa..." print(" bor of CNS in the datasot , len your tean de game 2012 1 2012100NYK 7 012 143 144 W 3 31 1 1 1 1 1 4 201211DOMIA year_id fran id sapp pts op een geme location game_result 2013 Heat 107 108 110 1586.1121 2113 Heat 104 1505 1548 2100 111 111 112 111 v 1 34 464 474. 1 1 1 1 1 14 (4) ta544 141 140 14H: 2013 Heat 403 73 1650 7230 1311 5804 printed only the first tive obrvations... Number of rain the data - 246 Step 3: Hypothesis Test for the Population Mean (1) A relative skill level of 1420 represents a antically low skill level in the league. The management of your team has hypothesired that the average relative skill level of your team in the years 2013-2015 is greater than 1420. Test this clam using a 5% level of significance. For this test, assume that the population standard deviation for relative skilvelis unknown. Make the following edits to the code black below 1. Replace ? DATAFRAME YOUR TEAM?? with the name of your car's dataframe. Sea Step 2 for the name of your team's catrame 2. Replace RELATIVE SKILL?? with the name of the variable for relative skil See the table included in the Project Two instructions above to pick the variable name Enclose this variable in sing quotes. For example, the variable name is var2 then roplace 7 RELATIVE SKILL? ith var 3. Replace ??NULL HYPOTHESIS VALUE?? with the mean value of the relative skilunder the null pothesia Aher you are done with your odits, dick the block of code below and hit the Run button above In timport scapy.stata as st Me relativ kill low of your te Tean wo your tean your tean d 'ela n' lon() print Mean Belative skill of your team in the year 2013 to 2015 -", con mean who your text. 21) #lytathesia Test - TODO make your its re- test statisti, p value = t.ttest sa UTAFRAME YOUR TRANS LATIVE SELL ). LLWYPOTHESIS VALUE print("Hypothum Tuat for the population Man") print("test tattacie , round test statistic,2)) print(" value". Tout p val.) Remember to enter the team name within single quotes. For example, if you picked the Suns, then ??TEAM?? should be replaced with 'Suns! After you are done with your edits, click the block of code below and hit the Run button above. In [25]: # Range of yoars: 2013-2015 (Note: The line below selects all teams within the three-year period 2013-2015. This is not your_years leagues af nba orig af (nba orig df['year id' ) .between (2013, 2015))] I # The dataframe for your team is called your_team df. # ---- TODO: make your edits here your team df = your years_leagues df[(your years leagues df['fran id')=="Heat") ] your team df = your team_df.reset index (drop=True) display (HTML, (your team_df.head().to_html())) print("printed only the first five observations...") print ("Number of rows in the dataset -", len (your_team df)) game_id year_id fran_id pts opp_pts elon opp elo_n game_location game result 0 201210300MIA 1 201211020NYK 2 201211030MIA 3 201211050MIA 4 201211070MIA 2013 2013 2013 2013 2013 Heat 120 Heat 84 Heat 119 Heat 124 Heat 103 107 1666.3193 104 1647.6675 116 1650.0934 99 1656.5652 73 1659.7239 1586.1121 1548.2699 1554.4674 1504.0280 1361.5804 I III printed only the first five observations... Number of rows in the dataset - 246 jupyter Project Two Jupyter Script Last Checkpoint: 09/20/2019 (autosaved) File Edit View Insert Cell Kernel Widgets Help Trusted Python 3 O a + x + Run C Markdown sa Step 3: Hypothesis Test for the Population Mean (1) A relative skill level of 1420 represents a critically low skill level in the league. The management of your team has hypothesized that the average relative skill level of your team in the years 2013-2015 is greater than 1420. Test this claim using a 5% level of significance. For this test, assume that the population standard deviation for relative skill level is unknown. Make the following edits to the code block below: 1. Replace ??DATAFRAME_YOUR_TEAM?? with the name of your team's dataframe. See Step 2 for the name of your team's dataframe. 2. Replace ??RELATIVE SKILL?? with the name of the variable for relative skill. See the table included in the Project Two instructions above to pick the variable name. Enclose this variable in single quotes. For example, if the variable name is var2 then replace ??RELATIVE SKILL?? with var2 3. Replace ??NULL_HYPOTHESIS_VALUE?? with the mean value of the relative skill under the null hypothesis. After you are done with your edits, click the block of code below and hit the Run button above. In [28]: import scipy.stats as st # Mean relative skill level of your team mean_elo_your team = your team df['elo n'].mean() print("Mean Relative Skill of your team in the years 2013 to 2015 ", round (mean olo your team, 2)) # Hypothesis Test + ---- TODO: make your edits here --- test_statistic, p_value = st.ttest 1samp ("Heat"I''1,"1420") print("Hypothesis Test for the Population Mean") print("Test Statistic", round (test_statistic, 2)) print("P-value=", round(p_value, 4)) Mean Relative Skill of your team in the years 2013 to 2015 - 1617.48 TypeError Traceback (most recent call last) in 8 # Hypothesis Test 9 # ---- TODO: make your edits here ---- ---> 10 test_statistie, p value = st.ttest 1samp ("Heat" l'elo n'l,"1420") 11 + x Marken + Run C Step 2: Pick Your Team In this step, you will pick your team. The range of years that you will study for your team is 2013-2015. Make the following edits to the code block below: 1. Roplaco ?TEAM?? with your choice of team from one of the flowing team names Bucks, Bus Cavaliers, Concs Clippers Grizzlies Hawks, Meat Jaz2 King Knicks Lakers Magic Mavericks, Nets, Nuggets. Pacers Pelicans Pistons Raptors Rachels Surers, Sours, Suns Thunder Timberwolves, Trailblazers, Warriors, Wizards Remember to enter the team name within single quotes. For example, if you picked the Suns, then ??TEAM?? should be replaced with Suns. After you are done with your edits, dick the block of code below and hit the Run button above In (251: Mange of years: 2011-2015 Nate: the line below select all team within the three-year period 2013. 2015. This is not your years leagues de nba orig deba orig dri'year id .between 2013, 2015) # The datarea for your team is call your team dr. --- TODO! m e your dit here - your team of your years leagoa dflyour years laques de Ezan id e a ) your team at your teardreset inte drops True Hisplay (HNL your teandt.headi).ta hitnl (1 printi printed only the stat five chaecvationa..." print(" bor of CNS in the datasot , len your tean de game 2012 1 2012100NYK 7 012 143 144 W 3 31 1 1 1 1 1 4 201211DOMIA year_id fran id sapp pts op een geme location game_result 2013 Heat 107 108 110 1586.1121 2113 Heat 104 1505 1548 2100 111 111 112 111 v 1 34 464 474. 1 1 1 1 1 14 (4) ta544 141 140 14H: 2013 Heat 403 73 1650 7230 1311 5804 printed only the first tive obrvations... Number of rain the data - 246 Step 3: Hypothesis Test for the Population Mean (1) A relative skill level of 1420 represents a antically low skill level in the league. The management of your team has hypothesired that the average relative skill level of your team in the years 2013-2015 is greater than 1420. Test this clam using a 5% level of significance. For this test, assume that the population standard deviation for relative skilvelis unknown. Make the following edits to the code black below 1. Replace ? DATAFRAME YOUR TEAM?? with the name of your car's dataframe. Sea Step 2 for the name of your team's catrame 2. Replace RELATIVE SKILL?? with the name of the variable for relative skil See the table included in the Project Two instructions above to pick the variable name Enclose this variable in sing quotes. For example, the variable name is var2 then roplace 7 RELATIVE SKILL? ith var 3. Replace ??NULL HYPOTHESIS VALUE?? with the mean value of the relative skilunder the null pothesia Aher you are done with your odits, dick the block of code below and hit the Run button above In timport scapy.stata as st Me relativ kill low of your te Tean wo your tean your tean d 'ela n' lon() print Mean Belative skill of your team in the year 2013 to 2015 -", con mean who your text. 21) #lytathesia Test - TODO make your its re- test statisti, p value = t.ttest sa UTAFRAME YOUR TRANS LATIVE SELL ). LLWYPOTHESIS VALUE print("Hypothum Tuat for the population Man") print("test tattacie , round test statistic,2)) print(" value". Tout p val.) Remember to enter the team name within single quotes. For example, if you picked the Suns, then ??TEAM?? should be replaced with 'Suns! After you are done with your edits, click the block of code below and hit the Run button above. In [25]: # Range of yoars: 2013-2015 (Note: The line below selects all teams within the three-year period 2013-2015. This is not your_years leagues af nba orig af (nba orig df['year id' ) .between (2013, 2015))] I # The dataframe for your team is called your_team df. # ---- TODO: make your edits here your team df = your years_leagues df[(your years leagues df['fran id')=="Heat") ] your team df = your team_df.reset index (drop=True) display (HTML, (your team_df.head().to_html())) print("printed only the first five observations...") print ("Number of rows in the dataset -", len (your_team df)) game_id year_id fran_id pts opp_pts elon opp elo_n game_location game result 0 201210300MIA 1 201211020NYK 2 201211030MIA 3 201211050MIA 4 201211070MIA 2013 2013 2013 2013 2013 Heat 120 Heat 84 Heat 119 Heat 124 Heat 103 107 1666.3193 104 1647.6675 116 1650.0934 99 1656.5652 73 1659.7239 1586.1121 1548.2699 1554.4674 1504.0280 1361.5804 I III printed only the first five observations... Number of rows in the dataset - 246 jupyter Project Two Jupyter Script Last Checkpoint: 09/20/2019 (autosaved) File Edit View Insert Cell Kernel Widgets Help Trusted Python 3 O a + x + Run C Markdown sa Step 3: Hypothesis Test for the Population Mean (1) A relative skill level of 1420 represents a critically low skill level in the league. The management of your team has hypothesized that the average relative skill level of your team in the years 2013-2015 is greater than 1420. Test this claim using a 5% level of significance. For this test, assume that the population standard deviation for relative skill level is unknown. Make the following edits to the code block below: 1. Replace ??DATAFRAME_YOUR_TEAM?? with the name of your team's dataframe. See Step 2 for the name of your team's dataframe. 2. Replace ??RELATIVE SKILL?? with the name of the variable for relative skill. See the table included in the Project Two instructions above to pick the variable name. Enclose this variable in single quotes. For example, if the variable name is var2 then replace ??RELATIVE SKILL?? with var2 3. Replace ??NULL_HYPOTHESIS_VALUE?? with the mean value of the relative skill under the null hypothesis. After you are done with your edits, click the block of code below and hit the Run button above. In [28]: import scipy.stats as st # Mean relative skill level of your team mean_elo_your team = your team df['elo n'].mean() print("Mean Relative Skill of your team in the years 2013 to 2015 ", round (mean olo your team, 2)) # Hypothesis Test + ---- TODO: make your edits here --- test_statistic, p_value = st.ttest 1samp ("Heat"I''1,"1420") print("Hypothesis Test for the Population Mean") print("Test Statistic", round (test_statistic, 2)) print("P-value=", round(p_value, 4)) Mean Relative Skill of your team in the years 2013 to 2015 - 1617.48 TypeError Traceback (most recent call last) in 8 # Hypothesis Test 9 # ---- TODO: make your edits here ---- ---> 10 test_statistie, p value = st.ttest 1samp ("Heat" l'elo n'l,"1420") 11

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