Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
There are no random tests.
This formula is wrong; the denominator should be
sqrt((n00 + n01) * (n10 + n11) * (n00 + n10) * (n01 + n11))
.This problem has been copied from Eloquent Javascript which is licensed under Creative Commons attribution-noncommercial license.
In which it is clearly mentioned:
So you've to give the credit in the description.
This is copied from Eloquent Javascript - maybe you should at least credit it?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Because those are different things 🙂
This comment is hidden because it contains spoiler information about the solution
a and a, b and B. Therefore, there are 2 characters that occur in duplicate.
I hope that helps.
This comment is hidden because it contains spoiler information about the solution
The bottom-most example test cases looked something like this:
The double equal signs should be replaced with a comma.
But since the kata is in cooperation mode, I edited it myself. :-)
Thanks for a nice kata.
What are you saying the issue is?
Thanks for pointing that one out Steve! Feel free to implement the table if you think it is more clear. This Kata is in collaboration mode.
Apart from Steve's issues, the last provided test cases are using
Test.assertEquals
wrongly likeTest.expect
. They should be:This is an interesting and educational kata. Thanks for making it!
There are a few minor issues with the description:
The notation explanation could be clearer. You could borrow the table from Wikipedia, which is pretty clear:
The markdown for the table above looks like this:
Also, the second assertion in the sample tests expects the correlation to be
-.05
, but it should be-0.5
.