Bartleby Related Questions Icon

Related questions

Question
H
Step 6: Descriptive Statistics: Points Scored By Your Time in Home Games
The management of your team wants you to run descriptive statistics on the points scored by your team in the games played at your team's venue i
2015. Calculate descriptive statistics including the mean, median, variance, and standard deviation for points scored by your team played at Home.
following edits to the code block below:
1. Replace ??MEAN_FUNCTION?? with the name of Python function that calculates the mean.
2. Replace ??MEDIAN_FUNCTION?? with the name of Python function that calculates the median.
3. Replace ??VAR_FUNCTION?? with the name of Python function that calculates the variance.
4. Replace ??STD_FUNCTION?? with the name of Python function that calculates the standard deviation.
After you are done with your edits, click the block of code below and hit the Run button above.
print("Points Scored by Your Team in Home Games (2013 to 2015)")
print("
")
your_team_home_df = your_team_df[your_team_df['game_location'] =='H'].copy()
# ---- TODO: make your edits here
mean = your_team_home_df['ptd' ]??MEAN_FUNCTION??()
median = your_team_home_df['ptd']??MEDIAN_FUNCTION?? ()
variance = your_team_home_df['ptd']??VAR_FUNCTION()
stdeviation = your_team_home_df['ptd']??STD_FUNCTION??
print('Mean =', round (mean, 2))
print('Median =', round (median, 2))
print('Variance =, round(variance,2))
print('standard Deviation = ', round(stdeviation, 2))
E
expand button
Transcribed Image Text:H Step 6: Descriptive Statistics: Points Scored By Your Time in Home Games The management of your team wants you to run descriptive statistics on the points scored by your team in the games played at your team's venue i 2015. Calculate descriptive statistics including the mean, median, variance, and standard deviation for points scored by your team played at Home. following edits to the code block below: 1. Replace ??MEAN_FUNCTION?? with the name of Python function that calculates the mean. 2. Replace ??MEDIAN_FUNCTION?? with the name of Python function that calculates the median. 3. Replace ??VAR_FUNCTION?? with the name of Python function that calculates the variance. 4. Replace ??STD_FUNCTION?? with the name of Python function that calculates the standard deviation. After you are done with your edits, click the block of code below and hit the Run button above. print("Points Scored by Your Team in Home Games (2013 to 2015)") print(" ") your_team_home_df = your_team_df[your_team_df['game_location'] =='H'].copy() # ---- TODO: make your edits here mean = your_team_home_df['ptd' ]??MEAN_FUNCTION??() median = your_team_home_df['ptd']??MEDIAN_FUNCTION?? () variance = your_team_home_df['ptd']??VAR_FUNCTION() stdeviation = your_team_home_df['ptd']??STD_FUNCTION?? print('Mean =', round (mean, 2)) print('Median =', round (median, 2)) print('Variance =, round(variance,2)) print('standard Deviation = ', round(stdeviation, 2)) E
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS