Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Calculate the mean of the values in x _ train and y _ train, storing the resulting values in variables named mean _ x and
Calculate the mean of the values in xtrain and ytrain, storing the resulting values in variables named meanx and
meany You may use the sum function, as well as the variable ntrain that you defined earlier in the notebook.
Print the results with text output as shown below. Round the displayed value of meanx to decimal places, and round
the displayed value of meany to decimal places. Do not round the actual values stored within the variables
themselves, just the values displayed.
Mean of X xxxx
Mean of Y xxxx
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started