We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Artificial Intelligence
- Statistics and Machine Learning
- Correlation and Regression Lines - A Quick Recap #1
- Discussions
Correlation and Regression Lines - A Quick Recap #1
Correlation and Regression Lines - A Quick Recap #1
Sort by
recency
|
123 Discussions
|
Please Login in order to post a comment
I ultimately got the answer correct by hardcoding it in a plain text file. I'd still like to know why my code below isn't working. (Also, this text editor sucks!)
Code in R:
physics_scores <- c(15, 12, 8, 8, 7, 7, 7, 6, 5, 3) history_scores <- c(10, 25, 17, 11, 13, 17, 20, 13, 9, 15)
correlation <- cor(physics_scores, history_scores)
print(sprintf("%.3f", correlation)) It is giving correct value
Interface does not allow import of numpy. It appears others imported Python stdlib modules and some use non stdlib modules. How do we know which modules (if any) can be used to answer this question?
Why doesn't this code pass the test ?
I have run time error