-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Term Entry] Python - NumPy Linear-algebra: .cholesky() #6438
Conversation
|
||
This example shows how to apply Cholesky decomposition to a covariance matrix calculated from actual data. It demonstrates the usefulness of Cholesky decomposition in statistical analysis by providing information about the correlation structure of the data. The diagonal elements of the Cholesky factor can give insight into the variance contributed by each independent component. | ||
|
||
To explore more about NumPy and its role in statistics, consider exploring the [Learn Statistics with NumPy](https://www.codecademy.com/enrolled/courses/intro-statistics-numpy) course at Codecademy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great content. Example 1 is sufficient to explain the syntax and working of the function. Example 2 and 3 will be more suitable for an article instead of the term entry. We can remove those in my opinion. @mamtawardhani
We need 2-3 examples per entry. Do you suggest replacing the existing examples with simpler ones, or can we keep these? |
In the second example, we can use np.allclose() function along with np.linalg.eigvals() function instead of the manual calculation to show if the input matrix is positive definite (All the eigenvalues of a positive definite matrix are greater than 0). We can give one example where the input matrix is positive definite and another example where the input matrix isn't positive definite to show that the function only processes positive-definite matrices. This will reduce extra information contained in the examples. |
Hey @raditya1117, I've changed examples 2 and 3 based on your suggestions. Could you please check? Thanks! 🙇🏻 |
Looks good @mamtawardhani. |
👋 @mamtawardhani 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/python/deque Please note it may take a little while for changes to become visible. |
Description
[Term Entry] Python - NumPy Linear-algebra: .cholesky(
Issue Solved
Closes #6417
Type of Change
Checklist
main
branch.Issues Solved
section.