/**
 * Co-occurrence Statistics
 *
 * Statistical analysis tools for co-occurrence data.
 *
 * @since v1.66.1
 */
import type { CooccurrenceEntry } from '../recommendation-types.js';
/**
 * Calculate mean of an array of numbers
 */
export declare function mean(values: number[]): number;
/**
 * Calculate standard deviation
 */
export declare function standardDeviation(values: number[]): number;
/**
 * Calculate confidence interval for a proportion
 * Uses Wilson score interval for better accuracy with small samples
 */
export declare function wilsonConfidenceInterval(successes: number, total: number, confidence?: number): {
    lower: number;
    upper: number;
};
/**
 * Calculate correlation coefficient between two plugin's co-occurrence patterns
 */
export declare function correlationCoefficient(entriesA: CooccurrenceEntry[], entriesB: CooccurrenceEntry[]): number;
/**
 * Determine confidence level from sample size
 */
export declare function getConfidenceLevel(sampleSize: number): 'low' | 'medium' | 'high';
/**
 * Calculate statistical significance of probability difference
 * Uses two-proportion z-test
 */
export declare function isSignificantDifference(p1: number, n1: number, p2: number, n2: number, alpha?: number): boolean;
/**
 * Detect trend in time-series data using linear regression
 */
export declare function detectTrend(dataPoints: Array<{
    timestamp: number;
    value: number;
}>): 'increasing' | 'stable' | 'decreasing';
/**
 * Find clusters of highly correlated plugins
 */
export declare function findPluginClusters(entries: CooccurrenceEntry[], minCorrelation?: number): string[][];
/**
 * Calculate plugin centrality (how connected it is to other plugins)
 */
export declare function calculateCentrality(pluginId: string, entries: CooccurrenceEntry[]): number;
/**
 * Get summary statistics for co-occurrence data
 */
export declare function getSummaryStatistics(entries: CooccurrenceEntry[]): {
    totalPairs: number;
    avgProbability: number;
    medianProbability: number;
    stdDevProbability: number;
    highConfidencePairs: number;
    avgSampleSize: number;
};
//# sourceMappingURL=statistics.d.ts.map