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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!