The management of your team wants you to run descriptive statistics on the relative skill of your team from 2013-2015. In this project, you will use the variable 'elo_n' to represent the relative skill of the teams. Calculate descriptive statistics including the mean, median, variance, and standard deviation for the relative skill of your team.
Make the 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

print("Your Team's Relative skill in 2013 to 2015")
print("________________________________")

#.............TODO: make your edits here ................
mean = your_team_df['elo_n'].??MEAN FUNCTION?? ()
median = your_team_df ['elo n'].??MEDIAN FUNCTION?? ()
variance = your_team_df ['elo n'].?? TVAR FUNCTION?? ()
stdeviation = your_team_df ['elo n'].??STD_FUNCTION??

print('Mean =' , round(mean, 2))
print('Median =' , round(median, 2))
print('variance =' , round(variance, 2))
print('Standard deviation =' , round(stdeviation, 2))

Respuesta :

Answer:

I will suppose data here ,when you run your you just need to use your own statistics data for mean ,median, variance and standard deviation

data1 = {1, 3,4,7,12,3,45}

x = np.arange(20)

print("Your Team's Relative skill in 2013 to 2015")

print("descriptive statistics including the mean, median, variance, and standard deviation for the relative skill of your team")

mean = your_team_df['elo_n'].mean(data1)

median = your_team_df ['elo n'].median(data1)

variance = your_team_df ['elo n']. tvar(x)

stdeviation = your_team_df ['elo n'].stdev(data)

print('Mean =' , round(mean, 2))

print('Median =' , round(median, 2))

print('variance =' , round(variance, 2))

print('Standard deviation =' , round(stdeviation, 2))