Question: 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
Get step-by-step solutions from verified subject matter experts
