Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python problem. Let n = 100 and x = (1,...,n) and y = (1, 1/2,...,1/n). Create these vectors in python. Calculate average, standard deviation, variance
Python problem.
Let n = 100 and x = (1,...,n) and y = (1, 1/2,...,1/n). Create these vectors in python.
Calculate average, standard deviation, variance of x and correlation between x and y
Packages needed:
import numpy as np, numpy.random as npr, numpy.linalg as la import scipy.stats as st import matplotlib.pyplot as plt
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