Question
q1- Describe what the following line of code is doing: np.corrcoef(x, y) You can assume that it is part of a larger body of code
q1- Describe what the following line of code is doing: np.corrcoef(x, y) You can assume that it is part of a larger body of code where np, x, and y have been defined
Group of answer choices Using the NumPy library (imported as alias np) to find the Pearson correlation between x and y
Using base Python built-in functions to find the covariance between x and y
This code would throw an error; there is no np.corrcoef function
None of these
Using base Python built-in functions to find the Pearson correlation between x and y
Using the NumPy library (imported as alias np) to find the covariance between x and y
q2-
Looking at the histogram below, would we expect the mean and median values to be significantly different? (Here we can define "significantly different" to mean they differ by more than 1.)
Group of answer choices
Yes
No
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