Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ab-test-result

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ab-test-result

Returns the improvement rate of your AB-test and answers if it's statistically significant

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ab-test-result

npm version Build Status Dependency Status devDependency Status Coverage Status

Returns the improvement rate of your AB-test (challengerImprovement) and answers if it's statistically significant (isSignificant).

The result returned also contains a statistics property with calculated statistical values.

npm install --save ab-test-result

Usage

	var abTestResult = require('ab-test-result');

	var test = {
		controlVisits: 490, // required
		controlConversions: 10, // required
		challengerVisits: 500, // required
		challengerConversions: 17 // required
	};
	var confidence = 0.9; // optional, defaults to 0.95

	var result = abTestResult.calcResult(test, confidence);
	/*
		result = {
			controlConversionRate: 0.02040816326530612,
			challengerConversionRate: 0.034,
			challengerImprovement: 0.666,
			isSignificant: true,
			statistics: {
				controlStandardError: 0.006387435072946544,
				challengerStandardError: 0.008104813384649889,
				zScore: 1.317131652811523,
				pValue: 0.09340000000000004
			}
		}
	*/

License

MIT

Keywords

FAQs

Package last updated on 22 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc