mukul975/privacy-data-protection-skills

audit-sampling-methods

- Guides privacy audit sampling methodology including statistical and non-statistical sampling, sample size determination, stratification techniques, attribute sampling for compliance testing, confidence level selection, tolerable deviation rates, and extra…

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/mukul975/privacy-data-protection-skills --skill audit-sampling-methods

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

Privacy Audit Sampling Methods

Overview

Audit sampling is the application of audit procedures to less than 100% of items within a population to form a conclusion about the entire population. In privacy auditing, sampling is used to test compliance of processing activities, DSAR responses, consent records, vendor contracts, and other privacy controls without examining every individual record.

ISA 530 (International Standard on Auditing — Audit Sampling) and IIA Practice Advisory 2320-3 (Audit Sampling) provide the authoritative frameworks. For privacy audits, sampling must account for the heightened regulatory scrutiny of personal data processing and the potential for significant harm from individual non-compliant records.

Sampling Approaches

ApproachDescriptionWhen to Use
Statistical SamplingUses probability theory to select samples and evaluate results; allows quantification of sampling riskWhen audit conclusions must be defensible to regulators; large populations; need to extrapolate results
Non-Statistical (Judgemental) SamplingAuditor uses professional judgement to select itemsSmall populations; targeted testing of known risk areas; supplementary to statistical sampling

Statistical Sampling Methods

Attribute Sampling

Used to estimate the rate of deviation (non-compliance) in a population.

ParameterDescriptionTypical Privacy Audit Values
Population SizeTotal items in the auditable populatione.g., 1,000 DSARs, 500 vendor contracts
Confidence LevelProbability that sample results reflect the population90% (standard); 95% (regulatory-facing)
Tolerable Deviation RateMaximum acceptable non-compliance rate5% (standard); 2% (critical controls)
Expected Deviation RateEstimated actual non-compliance rateBased on prior audits or risk assessment
Sample SizeNumber of items to testCalculated from above parameters

Sample Size Reference Table (Attribute Sampling)

Population90% Confidence / 5% Tolerable95% Confidence / 5% Tolerable95% Confidence / 2% Tolerable
100384564
2504250100
5004454131
1,0004557154
5,0004659176
10,000+4659181

Stratified Sampling

Divides the population into subgroups (strata) and samples proportionally or disproportionately from each.

Stratification FactorExample StrataRationale
Business UnitEU, US, APACDifferent regulatory requirements per jurisdiction
Data SensitivityStandard, sensitive, special categoryHigher-risk data categories warrant more testing
Processing PurposeMarketing, HR, customer serviceDifferent compliance requirements per purpose
Time PeriodQ1, Q2, Q3, Q4Detect seasonal patterns or deterioration
Vendor TierTier 1 (high volume), Tier 2, Tier 3Focus sampling on highest-risk vendors

Non-Statistical Sampling Methods

MethodDescriptionApplication
Haphazard SelectionItems selected without structured method but avoiding biasQuick preliminary testing
Block SelectionAll items in a specific period or locationTesting a specific time window (e.g., all DSARs in March)
Judgemental SelectionAuditor selects items based on risk factorsTargeting high-value items, known exceptions, or anomalies

Privacy-Specific Sampling Considerations

ConsiderationGuidance
Individual harm thresholdEven a single non-compliant record can cause significant harm; auditors must not dismiss isolated findings
Regulatory expectationsSupervisory authorities may expect higher confidence levels for critical controls (breach notification, consent)
Special category dataApply lower tolerable deviation rates (2%) for processing involving special category data under Article 9
Automated processingFor fully automated processes, increase sample to verify algorithmic consistency across edge cases
Cross-border transfersStratify by destination country to verify adequacy/safeguard mechanism for each transfer route

Evaluating Sample Results

ScenarioSample Deviation RateConclusion
Rate below tolerable deviatione.g., 2% observed vs 5% tolerablePopulation likely compliant; no material finding
Rate equals tolerable deviatione.g., 5% observed vs 5% tolerableBorderline; consider expanding sample or raising as medium finding
Rate exceeds tolerable deviatione.g., 12% observed vs 5% tolerableMaterial non-compliance; formal finding required
Zero deviations found0% observedStrong evidence of compliance (but does not guarantee 100%)

Extrapolation

When sample results show deviations, the auditor must project findings to the full population:

ElementCalculation
Point estimate(Deviations found / Sample size) × Population size
Upper deviation limitCalculated using statistical tables at the selected confidence level
Projected monetary impactPoint estimate × average impact per deviation

Related by task

from this repository

More skills

All skills
mukul975
Community

applying-privacy-design-patterns

- Systematic application of the eight privacy design patterns per Hoepman: minimize, hide, separate, abstract, inform, control, enforce, and demonstrate. Covers pattern selection methodology per processing activity, mapping to GDPR principles, and practical implementation guidance for privacy-by-design system architecture.

installs
1
GitHub stars
315
Updated
Mar 16
mukul975
Community

brazil-lgpd

- Guides compliance with Brazil's Lei Geral de Proteção de Dados (LGPD, Lei 13.709/2018). Covers the 10 lawful bases under Art. 7, DPO appointment, ANPD enforcement, data subject rights under Arts. 17-22, and international transfer mechanisms. Keywords: LGPD, Brazil data protection, ANPD, lawful bases, data subject rights, international transfers.

installs
1
GitHub stars
315
Updated
Mar 16
mukul975
Community

adequacy-assessment

- Guides assessment of third-country adequacy decisions under GDPR Article 45 for international data transfers. Covers the current EC adequacy decisions list, adequacy assessment criteria, partial adequacy handling, and monitoring of adequacy decision reviews. Keywords: adequacy decision, Article 45, third country, adequate protection, EC adequacy list.

installs
1
GitHub stars
295
Updated
Mar 16
mukul975
Community

age-gating-services

- Implements age-gating mechanisms for online services to restrict access based on user age. Covers hard gates versus soft gates, neutral age prompts, re-verification triggers, circumvention prevention, and regulatory requirements under GDPR, COPPA, UK Online Safety Act, and DSA. Keywords: age gate, age restriction, neutral prompt, children, online services, access control.

installs
1
GitHub stars
295
Updated
Mar 16