Azerbaijan, Georgia, Uzbekistan
XcitiumRequest a demo
MenuClose
All materials

Data literacy · Analytics and statistics

Analytics, bias and statistical variation

Use business and security examples to distinguish analytics questions, predictions, relationships, bias and statistical variation.

Metrics and event charts on security operations displays

Key takeaway

Treat a model score as an estimate: assess the data, uncertainty, error costs and evaluation examples together.

The analytics question defines the answer

Start with a measurable question. “What happened?” calls for descriptive reporting; “why did it change?” calls for diagnostic analysis. “What may happen next?” requires a forecast and an assessment of its uncertainty, while “what should we do?” requires a decision rule and a comparison of actions. Counting login attempts last week is descriptive; estimating the chance of a future account takeover is predictive. One kind of analysis does not answer the next question by itself.

QuestionAnalyticsExample
What happened?DescriptiveDaily count of failed logins
Why did it happen?DiagnosticInvestigating the source of a change
What may happen?PredictiveEstimating a future risk probability
What should we do?PrescriptiveSelecting an action within constraints

Build a predictive project around a measurable goal

Define the target and time horizon first, such as which accounts may need review in the next 30 days. Collect and clean relevant history, separate training data from evaluation data, then start with a simple model suited to the task. Evaluate it on examples it has not seen and compare the operational costs of false positives and false negatives. Much better training than held-out performance can indicate overfitting. Strongly related predictors can make individual regression coefficients unstable; inspect their relationships and reconsider the variable set. As behavior changes, monitor performance and output distributions; revisit the threshold or model when drift appears.

  1. Define the objective

    State the target, time window and decision the prediction will inform.

  2. Prepare the data

    Check dates, labels and missing values; separate training and test sets.

  3. Evaluate and monitor

    Measure error types, results across relevant groups and change over time.

Regression models relationships; it does not prove causation

Regression describes a relationship between a chosen outcome and one or more factors with an equation. Linear regression can estimate a continuous value, such as next hour’s request volume; logistic regression can estimate the probability of a binary outcome. If failed logins and account takeovers rise together, that association can guide an investigation. A seasonal shift, campaign or hidden factor may affect both. Correlation shows co-movement; a causal claim requires a suitable study design, temporal ordering and checks for alternative explanations.

Linear regression

Estimates a linear relationship for a continuous outcome.

Logistic regression

Estimates a binary outcome probability and is used for classification tasks.

Distinguish bias from variation and evaluate groups

A systematic influence in data or measurement that pushes results in one direction is bias; random error can move results in either direction. More observations may reduce random error in an estimate of the mean, but they do not by themselves fix systematic bias from an unrepresented group or faulty measurement. Evaluate a model by relevant groups and real deployment conditions, not only by its average accuracy. Use representative test cases and report results by group to assess outcome quality.

Representation

Check that training and test data reflect the people and cases in deployment.

Group results

Compare quality and error rates across relevant subgroups.

Record the evidence

Record the metrics, evaluation conditions and known limitations.

Variance measures spread; standard deviation keeps the original units

Population variance is the sum of squared deviations from the population mean divided by N. To estimate population variance without bias from a sample, divide the sum of squared deviations from the sample mean by n−1 (for n > 1). Its units are the square of the original units, such as minutes². Standard deviation is the square root of variance and is therefore measured in minutes. Variance in daily login volume describes how much the baseline varies; a high value alone does not prove an attack. Check volume, event type and sample size in context, alongside the mean, median and other measures.

MeasureWhat it showsUnits
VarianceSquared spread around the meanSquare of the original unit
Standard deviationSquare root of varianceSame as the original measure