Question
Thanks in advance for the help! Develop a user defined function MyVar that calculates a variance by using the following equation, MySummer = i =1
Thanks in advance for the help!
Develop a user defined function "MyVar" that calculates a variance by using the following equation,
MySummer = i=1 n
And, test your own function by using the values
n
(X Avg)2
n
(X4 2X5 +13X7)
iii (5X4 13X3 X2)
i 2n1
MyVar= i=1
where Avg represents the average of variable X i . And, test your own function by using the
values given on the sheet "P3". Remember that this function must have three arguments (X, Avg, and n).
(b) Develop a user defined function "MySummer" that calculate the weighted average with the
equation, given. Reminder: this function must have two arguments, X, and n.
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