Skip to content

Conversation

@caser
Copy link
Contributor

@caser caser commented Nov 18, 2013

I saw this post in the open issues, and upon closer inspection, realized that the z_score algorithm wasn't calculating z-scores correctly.

I re-implemented the z_score algorithm with the correct math, and then refactored it out into its own module. This effectively decouples the z_score calculation from the alternative class. The alternative class now implements its own z_score method which simply passes data along to the calculate method in the new module.

I also tweaked the z_score specs to work with the new implementation, and changed the UI output in the case that the experiment doesn't yet have sufficient data.

Finally, I updated the documentation with a section about statistical validity. It may make sense in future versions to implement a minimum sample size calculator in Split that hides significance data until the experiment has run its course, which would minimize false positives (and is best practices in A/B testing). Until then, it seems prudent to have some sort of warning or advice to users so that they are running statistically valid tests.

Happy to tweak things if need be.

Cheers,
Casey

@andrew
Copy link
Member

andrew commented Nov 19, 2013

That looks awesome, very nicely done. I'll get it merged in, and also add you as a contributor.

Thanks! 🤘

andrew added a commit that referenced this pull request Nov 19, 2013
@andrew andrew merged commit caf1ebd into splitrb:master Nov 19, 2013
@andrew
Copy link
Member

andrew commented Nov 19, 2013

I think I'm going to bundle this up with dropping 1.8.7 support into a 1.0 release within the next couple weeks.

@nclzz
Copy link

nclzz commented Nov 21, 2013

@andrew How can i reference the last version of split in my Gemfile with this pull request merged?

@caser
Copy link
Contributor Author

caser commented Nov 22, 2013

Thanks Andrew - I've been busy, but will open up a new thread with ideas for other features related to statistical validity this weekend. Cool project.

@wadtech
Copy link

wadtech commented Nov 22, 2013

@nclzz add the github hash key to your gemfile entry

gem 'split', :github => 'andrew/split'

@nclzz
Copy link

nclzz commented Nov 22, 2013

Thanks

Peter Mellett wrote:

@nclzz https://github.com/nclzz add the github hash key to your
gemfile entry

|gem 'split', :github => 'andrew/split'|


Reply to this email directly or view it on GitHub
#221 (comment).

@nfm
Copy link

nfm commented Jan 13, 2014

Thanks @caser! ❤️ ❤️ ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants