/** * Statistical Test Utilities * * Collection of statistical functions for hypothesis testing, * effect size calculation, and confidence intervals. */ /** * Mann-Whitney U test for comparing two independent samples. * Tests whether two populations have the same distribution. * * H0: Both populations have the same distribution * H1: Populations have different distributions * * Returns p-value (smaller = more significant difference) * @param sampleA * @param sampleB */ export declare const mannWhitneyUTest: (sampleA: number[], sampleB: number[]) => { u: number; pValue: number; significant: boolean; }; /** * Standard normal cumulative distribution function. * @param z */ export declare const normalCDF: (z: number) => number; /** * Calculate Cohen's d effect size. * Measures the standardized difference between two means. * * Interpretation: * - 0.2: Small effect * - 0.5: Medium effect * - 0.8: Large effect * @param sampleA * @param sampleB */ export declare const cohensD: (sampleA: number[], sampleB: number[]) => number; /** * Calculate confidence interval for a mean. * @param values * @param _confidence */ export declare const confidenceInterval: (values: number[], _confidence?: number) => { lower: number; upper: number; }; /** * Calculate Jaccard similarity between two sets. * @param setA * @param setB */ export declare const jaccardSimilarity: (setA: Set, setB: Set) => number; /** * Calculate path diversity (entropy of path lengths). * @param paths */ export declare const pathDiversity: (paths: Array<{ nodes: string[]; }>) => number; /** * Coverage metric for systematic literature review. * Measures how well the sampled subgraph covers different topical regions. * @param sampledNodes * @param graph * @param graph.getDegree * @param graph.getAllNodeIds */ export declare const calculateTopicCoverage: (sampledNodes: Set, graph: { getDegree(nodeId: string): number; getAllNodeIds(): string[]; }) => { coverage: number; avgDegree: number; hubRatio: number; }; //# sourceMappingURL=statistical-functions.d.ts.map