Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ab-test-result
Advanced tools
Returns the improvement rate of your AB-test and answers if it's statistically significant
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
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
}
}
*/
FAQs
Returns the improvement rate of your AB-test and answers if it's statistically significant
We found that ab-test-result demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.