JamoviTest::pathsampling( data = data, analysisContext = "omentum", totalSamples = cassette_number, firstDetection = first_cassette_tumor_identified, showBinomialModel = TRUE, showBootstrap = TRUE, showDetectionCurve = TRUE, showSensitivityCI = TRUE, showClinicalSummary = TRUE, showProbabilityExplanation = TRUE, showKeyResults = TRUE, showRecommendText = TRUE, showInterpretText = TRUE, showReferencesText = TRUE)
| Data Summary | |
|---|---|
| Measure | Value |
| Total cases supplied | 1096 |
| Cases analyzed | 1096 |
| Total samples (input) | 4395 (recorded) |
| Total samples analyzed | 4162 (up to first detection) |
| Mean samples per analyzed case | 4.01 |
| Median first detection | 1 |
| Cases without detected lesion | 1035 |
| Binomial estimator | Geometric MLE (first detection only) |
This analysis reports probabilities in two ways, depending on the clinical question:
Clinical question: If metastasis is truly present, how many blocks do I need to detect it?
Best used for: Setting minimum blocks per tumour-positive case, validating adequacy targets, or counselling surgeons on block counts required to avoid false reassurance.
Formula: P(detect | metastasis present) = 1 - (1-q)n
In Your Data: Among 61 cases with detected metastasis (q = 0.560):
Clinical Use: "How many samples do I need to confidently rule out metastasis?" This is the probability shown in the Diagnostic Yield Curve.
Clinical question: Across all specimens submitted (positive + negative), how often do we detect tumour with n blocks?
Best used for: Monitoring service-level performance, comparing surgeons/protocols, or highlighting when low prevalence—not sampling—limits detection.
Formula: P(detect overall) = Prevalence × Sensitivity = π × [1 - (1-q)n]
In Your Data: Observed prevalence = 5.6% (61/1096 cases had metastasis):
Clinical Use: "What percentage of incoming specimens will test positive?" This is useful for workload planning and quality metrics.
⚠️ Important: These are fundamentally different quantities!
• Conditional (sensitivity) assumes metastasis is present
• Population-level includes cases without metastasis
The ratio between them equals the prevalence (5.6% in your data). This module focuses on conditional probability (sensitivity) because that's what determines sampling adequacy.
Target confidence: 95%%
Recommended minimum samples: 4 (Bootstrap) achieving 96.7%% sensitivity (10000 iterations; 95% CI 62.2%-100.0%).
Model comparison:
Analysis Overview:
Pathology sampling adequacy analysis of 1096 cases to determine the minimum number of samples required to reliably detect lesions.
Key Findings:
Copy-ready text for reports:
"Sampling adequacy analysis of 1096 cases showed a per-sample detection probability of 56.0%. To achieve 95%% sensitivity, a minimum of 4 samples is recommended based on binomial probability modeling and bootstrap validation (10000 iterations, 95%% CI: 91.8%%-100.0%%). Observed data showed 88.5% of lesions detected within first 3 samples."
Clinical Recommendation: Submit a minimum of 4 samples to ensure adequate diagnostic sensitivity in routine practice.
Estimated per-sample detection probability: q = 0.5596
Estimation Method: Geometric MLE (first detection only)
Based on 61 positive cases with mean first detection at sample 1.79.
Formula: P(detect ≥ 1 in n samples | lesion present) = 1 - (1-q)n
Note: This estimates sensitivity (detection given lesion is present), not population-level detection rate.
| Binomial Model Predictions | ||
|---|---|---|
| Number of Samples | Sensitivity (P(detect | present)) | Marginal Gain |
| 1 | 56.0% | 56.0% |
| 2 | 80.6% | 24.6% |
| 3 | 91.5% | 10.9% |
| 4 | 96.2% | 4.8% |
| 5 | 98.3% | 2.1% |
| 6 | 99.3% | 0.9% |
| 7 | 99.7% | 0.4% |
| 8 | 99.9% | 0.2% |
| 9 | 99.9% | 0.1% |
| 10 | 100.0% | 0.0% |
| Minimum Samples for Target Confidence | |
|---|---|
| Target Confidence | Minimum Samples Required |
| 80.0% | 2 |
| 90.0% | 3 |
| 95.0% | 4 |
| 99.0% | 6 |
Empirical sensitivity estimates based on 10000 bootstrap iterations.
This method resamples cases with replacement to estimate sensitivity and confidence intervals without parametric assumptions.
Reference: Skala SL, Hagemann IS. Int J Gynecol Pathol. 2015;34(4):374-378.
| Bootstrap Sensitivity Estimates (Conditional) | |||
|---|---|---|---|
| Number of Samples | Mean Sensitivity (given present) | 95% CI Lower | 95% CI Upper |
| 1 | 57.4% | 44.3% | 68.9% |
| 2 | 78.6% | 67.2% | 88.5% |
| 3 | 88.5% | 80.3% | 95.1% |
| 4 | 96.7% | 91.8% | 100.0% |
| 5 | 100.0% | 100.0% | 100.0% |
| 6 | 100.0% | 100.0% | 100.0% |
| 7 | 100.0% | 100.0% | 100.0% |
| 8 | 100.0% | 100.0% | 100.0% |
| 9 | 100.0% | 100.0% | 100.0% |
| 10 | 100.0% | 100.0% | 100.0% |
Recommended minimum samples for 95% sensitivity: 4 (based on Bootstrap model) (10000 iterations; 95% CI 62.2%-100.0%).
This plan achieves an estimated sensitivity of 96.7% using the Empirical resampling of cases.
Observed cumulative detection:
This analysis addresses the question: How many tissue samples are necessary to reliably detect a lesion?
Key Concepts:
Assumptions and Limitations:
Methods:
Key References:
JamoviTest::pathsampling( data = data, analysisContext = "omentum", totalSamples = cassette_number, firstDetection = first_cassette_tumor_identified, sampleType = Location, showBinomialModel = TRUE, showBootstrap = TRUE, showDetectionCurve = TRUE, showSensitivityCI = TRUE, showClinicalSummary = TRUE, showProbabilityExplanation = TRUE, showKeyResults = TRUE, showRecommendText = TRUE, showInterpretText = TRUE, showReferencesText = TRUE, duplicate = 2)
| Data Summary | |
|---|---|
| Measure | Value |
| Total cases supplied | 1096 |
| Cases analyzed | 1096 |
| Total samples (input) | 4395 (recorded) |
| Total samples analyzed | 4162 (up to first detection) |
| Mean samples per analyzed case | 4.01 |
| Median first detection | 1 |
| Cases without detected lesion | 1035 |
| Binomial estimator | Geometric MLE (first detection only) |
This analysis reports probabilities in two ways, depending on the clinical question:
Clinical question: If metastasis is truly present, how many blocks do I need to detect it?
Best used for: Setting minimum blocks per tumour-positive case, validating adequacy targets, or counselling surgeons on block counts required to avoid false reassurance.
Formula: P(detect | metastasis present) = 1 - (1-q)n
In Your Data: Among 61 cases with detected metastasis (q = 0.560):
Clinical Use: "How many samples do I need to confidently rule out metastasis?" This is the probability shown in the Diagnostic Yield Curve.
Clinical question: Across all specimens submitted (positive + negative), how often do we detect tumour with n blocks?
Best used for: Monitoring service-level performance, comparing surgeons/protocols, or highlighting when low prevalence—not sampling—limits detection.
Formula: P(detect overall) = Prevalence × Sensitivity = π × [1 - (1-q)n]
In Your Data: Observed prevalence = 5.6% (61/1096 cases had metastasis):
Clinical Use: "What percentage of incoming specimens will test positive?" This is useful for workload planning and quality metrics.
⚠️ Important: These are fundamentally different quantities!
• Conditional (sensitivity) assumes metastasis is present
• Population-level includes cases without metastasis
The ratio between them equals the prevalence (5.6% in your data). This module focuses on conditional probability (sensitivity) because that's what determines sampling adequacy.
Target confidence: 95%%
Recommended minimum samples: 4 (Bootstrap) achieving 96.7%% sensitivity (10000 iterations; 95% CI 62.2%-100.0%).
Model comparison:
Analysis Overview:
Pathology sampling adequacy analysis of 1096 cases to determine the minimum number of samples required to reliably detect lesions.
Key Findings:
Copy-ready text for reports:
"Sampling adequacy analysis of 1096 cases showed a per-sample detection probability of 56.0%. To achieve 95%% sensitivity, a minimum of 4 samples is recommended based on binomial probability modeling and bootstrap validation (10000 iterations, 95%% CI: 91.8%%-100.0%%). Observed data showed 88.5% of lesions detected within first 3 samples."
Clinical Recommendation: Submit a minimum of 4 samples to ensure adequate diagnostic sensitivity in routine practice.
Estimated per-sample detection probability: q = 0.5596
Estimation Method: Geometric MLE (first detection only)
Based on 61 positive cases with mean first detection at sample 1.79.
Formula: P(detect ≥ 1 in n samples | lesion present) = 1 - (1-q)n
Note: This estimates sensitivity (detection given lesion is present), not population-level detection rate.
| Binomial Model Predictions | ||
|---|---|---|
| Number of Samples | Sensitivity (P(detect | present)) | Marginal Gain |
| 1 | 56.0% | 56.0% |
| 2 | 80.6% | 24.6% |
| 3 | 91.5% | 10.9% |
| 4 | 96.2% | 4.8% |
| 5 | 98.3% | 2.1% |
| 6 | 99.3% | 0.9% |
| 7 | 99.7% | 0.4% |
| 8 | 99.9% | 0.2% |
| 9 | 99.9% | 0.1% |
| 10 | 100.0% | 0.0% |
| Minimum Samples for Target Confidence | |
|---|---|
| Target Confidence | Minimum Samples Required |
| 80.0% | 2 |
| 90.0% | 3 |
| 95.0% | 4 |
| 99.0% | 6 |
Empirical sensitivity estimates based on 10000 bootstrap iterations.
This method resamples cases with replacement to estimate sensitivity and confidence intervals without parametric assumptions.
Reference: Skala SL, Hagemann IS. Int J Gynecol Pathol. 2015;34(4):374-378.
| Bootstrap Sensitivity Estimates (Conditional) | |||
|---|---|---|---|
| Number of Samples | Mean Sensitivity (given present) | 95% CI Lower | 95% CI Upper |
| 1 | 57.4% | 44.3% | 68.9% |
| 2 | 78.6% | 67.2% | 88.5% |
| 3 | 88.5% | 80.3% | 95.1% |
| 4 | 96.7% | 91.8% | 100.0% |
| 5 | 100.0% | 100.0% | 100.0% |
| 6 | 100.0% | 100.0% | 100.0% |
| 7 | 100.0% | 100.0% | 100.0% |
| 8 | 100.0% | 100.0% | 100.0% |
| 9 | 100.0% | 100.0% | 100.0% |
| 10 | 100.0% | 100.0% | 100.0% |
Recommended minimum samples for 95% sensitivity: 4 (based on Bootstrap model) (10000 iterations; 95% CI 62.2%-100.0%).
This plan achieves an estimated sensitivity of 96.7% using the Empirical resampling of cases.
Observed cumulative detection:
This analysis addresses the question: How many tissue samples are necessary to reliably detect a lesion?
Key Concepts:
Assumptions and Limitations:
Methods:
Key References:
JamoviTest::pathsampling( data = data, analysisContext = "omentum", totalSamples = cassette_number, firstDetection = first_cassette_tumor_identified, sampleType = TumorType, showBinomialModel = TRUE, showBootstrap = TRUE, showDetectionCurve = TRUE, showSensitivityCI = TRUE, showClinicalSummary = TRUE, showProbabilityExplanation = TRUE, showKeyResults = TRUE, showRecommendText = TRUE, showInterpretText = TRUE, showReferencesText = TRUE, duplicate = 2)
| Data Summary | |
|---|---|
| Measure | Value |
| Total cases supplied | 1096 |
| Cases analyzed | 1096 |
| Total samples (input) | 4395 (recorded) |
| Total samples analyzed | 4162 (up to first detection) |
| Mean samples per analyzed case | 4.01 |
| Median first detection | 1 |
| Cases without detected lesion | 1035 |
| Binomial estimator | Geometric MLE (first detection only) |
This analysis reports probabilities in two ways, depending on the clinical question:
Clinical question: If metastasis is truly present, how many blocks do I need to detect it?
Best used for: Setting minimum blocks per tumour-positive case, validating adequacy targets, or counselling surgeons on block counts required to avoid false reassurance.
Formula: P(detect | metastasis present) = 1 - (1-q)n
In Your Data: Among 61 cases with detected metastasis (q = 0.560):
Clinical Use: "How many samples do I need to confidently rule out metastasis?" This is the probability shown in the Diagnostic Yield Curve.
Clinical question: Across all specimens submitted (positive + negative), how often do we detect tumour with n blocks?
Best used for: Monitoring service-level performance, comparing surgeons/protocols, or highlighting when low prevalence—not sampling—limits detection.
Formula: P(detect overall) = Prevalence × Sensitivity = π × [1 - (1-q)n]
In Your Data: Observed prevalence = 5.6% (61/1096 cases had metastasis):
Clinical Use: "What percentage of incoming specimens will test positive?" This is useful for workload planning and quality metrics.
⚠️ Important: These are fundamentally different quantities!
• Conditional (sensitivity) assumes metastasis is present
• Population-level includes cases without metastasis
The ratio between them equals the prevalence (5.6% in your data). This module focuses on conditional probability (sensitivity) because that's what determines sampling adequacy.
Target confidence: 95%%
Recommended minimum samples: 4 (Bootstrap) achieving 96.7%% sensitivity (10000 iterations; 95% CI 62.2%-100.0%).
Model comparison:
Analysis Overview:
Pathology sampling adequacy analysis of 1096 cases to determine the minimum number of samples required to reliably detect lesions.
Key Findings:
Copy-ready text for reports:
"Sampling adequacy analysis of 1096 cases showed a per-sample detection probability of 56.0%. To achieve 95%% sensitivity, a minimum of 4 samples is recommended based on binomial probability modeling and bootstrap validation (10000 iterations, 95%% CI: 91.8%%-100.0%%). Observed data showed 88.5% of lesions detected within first 3 samples."
Clinical Recommendation: Submit a minimum of 4 samples to ensure adequate diagnostic sensitivity in routine practice.
Estimated per-sample detection probability: q = 0.5596
Estimation Method: Geometric MLE (first detection only)
Based on 61 positive cases with mean first detection at sample 1.79.
Formula: P(detect ≥ 1 in n samples | lesion present) = 1 - (1-q)n
Note: This estimates sensitivity (detection given lesion is present), not population-level detection rate.
| Binomial Model Predictions | ||
|---|---|---|
| Number of Samples | Sensitivity (P(detect | present)) | Marginal Gain |
| 1 | 56.0% | 56.0% |
| 2 | 80.6% | 24.6% |
| 3 | 91.5% | 10.9% |
| 4 | 96.2% | 4.8% |
| 5 | 98.3% | 2.1% |
| 6 | 99.3% | 0.9% |
| 7 | 99.7% | 0.4% |
| 8 | 99.9% | 0.2% |
| 9 | 99.9% | 0.1% |
| 10 | 100.0% | 0.0% |
| Minimum Samples for Target Confidence | |
|---|---|
| Target Confidence | Minimum Samples Required |
| 80.0% | 2 |
| 90.0% | 3 |
| 95.0% | 4 |
| 99.0% | 6 |
Empirical sensitivity estimates based on 10000 bootstrap iterations.
This method resamples cases with replacement to estimate sensitivity and confidence intervals without parametric assumptions.
Reference: Skala SL, Hagemann IS. Int J Gynecol Pathol. 2015;34(4):374-378.
| Bootstrap Sensitivity Estimates (Conditional) | |||
|---|---|---|---|
| Number of Samples | Mean Sensitivity (given present) | 95% CI Lower | 95% CI Upper |
| 1 | 57.4% | 44.3% | 70.5% |
| 2 | 78.7% | 68.9% | 88.5% |
| 3 | 88.5% | 80.3% | 95.1% |
| 4 | 96.7% | 91.8% | 100.0% |
| 5 | 100.0% | 100.0% | 100.0% |
| 6 | 100.0% | 100.0% | 100.0% |
| 7 | 100.0% | 100.0% | 100.0% |
| 8 | 100.0% | 100.0% | 100.0% |
| 9 | 100.0% | 100.0% | 100.0% |
| 10 | 100.0% | 100.0% | 100.0% |
Recommended minimum samples for 95% sensitivity: 4 (based on Bootstrap model) (10000 iterations; 95% CI 62.2%-100.0%).
This plan achieves an estimated sensitivity of 96.7% using the Empirical resampling of cases.
Observed cumulative detection:
This analysis addresses the question: How many tissue samples are necessary to reliably detect a lesion?
Key Concepts:
Assumptions and Limitations:
Methods:
Key References:
JamoviTest::pathsampling( data = data, analysisContext = "omentum", totalSamples = cassette_number, firstDetection = first_cassette_tumor_identified, positiveCount = total_cassettes_with_metastasis, showBinomialModel = TRUE, showBootstrap = TRUE, showDetectionCurve = TRUE, showSensitivityCI = TRUE, showClinicalSummary = TRUE, showEmpiricalCumulative = TRUE, showPopulationDetection = TRUE, showIncrementalYield = TRUE, duplicate = 2)
| Data Summary | |
|---|---|
| Measure | Value |
| Total cases supplied | 1096 |
| Cases analyzed | 1096 |
| Total samples (input) | 4395 (recorded) |
| Total samples analyzed | 4162 (up to first detection) |
| Mean samples per analyzed case | 4.01 |
| Median first detection | 1 |
| Cases without detected lesion | 1035 |
| Binomial estimator | Empirical Proportion (uses all positive samples) |
Analysis Overview:
Pathology sampling adequacy analysis of 1096 cases to determine the minimum number of samples required to reliably detect lesions.
Key Findings:
Copy-ready text for reports:
"Sampling adequacy analysis of 1096 cases showed a per-sample detection probability of 60.2%. To achieve 95%% sensitivity, a minimum of 4 samples is recommended based on binomial probability modeling and bootstrap validation (10000 iterations, 95%% CI: 91.8%%-100.0%%). Observed data showed 88.5% of lesions detected within first 3 samples."
Clinical Recommendation: Submit a minimum of 4 samples to ensure adequate diagnostic sensitivity in routine practice.
⚠️ DATA QUALITY WARNINGS
Estimated per-sample detection probability: q = 0.6023
Estimation Method: Empirical Proportion (uses all positive samples)
Based on 61 positive cases with 206 positive samples out of 342 total samples examined.
Formula: P(detect ≥ 1 in n samples | lesion present) = 1 - (1-q)n
Note: This estimates sensitivity (detection given lesion is present), not population-level detection rate.
| Binomial Model Predictions | ||
|---|---|---|
| Number of Samples | Sensitivity (P(detect | present)) | Marginal Gain |
| 1 | 60.2% | 60.2% |
| 2 | 84.2% | 24.0% |
| 3 | 93.7% | 9.5% |
| 4 | 97.5% | 3.8% |
| 5 | 99.0% | 1.5% |
| 6 | 99.6% | 0.6% |
| 7 | 99.8% | 0.2% |
| 8 | 99.9% | 0.1% |
| 9 | 100.0% | 0.0% |
| 10 | 100.0% | 0.0% |
| Minimum Samples for Target Confidence | |
|---|---|
| Target Confidence | Minimum Samples Required |
| 80.0% | 2 |
| 90.0% | 3 |
| 95.0% | 4 |
| 99.0% | 5 |
Empirical sensitivity estimates based on 10000 bootstrap iterations.
This method resamples cases with replacement to estimate sensitivity and confidence intervals without parametric assumptions.
Reference: Skala SL, Hagemann IS. Int J Gynecol Pathol. 2015;34(4):374-378.
| Bootstrap Sensitivity Estimates (Conditional) | |||
|---|---|---|---|
| Number of Samples | Mean Sensitivity (given present) | 95% CI Lower | 95% CI Upper |
| 1 | 57.4% | 44.3% | 68.9% |
| 2 | 78.7% | 67.2% | 88.5% |
| 3 | 88.5% | 80.3% | 95.1% |
| 4 | 96.7% | 91.8% | 100.0% |
| 5 | 100.0% | 100.0% | 100.0% |
| 6 | 100.0% | 100.0% | 100.0% |
| 7 | 100.0% | 100.0% | 100.0% |
| 8 | 100.0% | 100.0% | 100.0% |
| 9 | 100.0% | 100.0% | 100.0% |
| 10 | 100.0% | 100.0% | 100.0% |
Non-parametric estimation of detection probability based on actual observed data. Does not assume geometric distribution - uses bootstrap resampling for confidence intervals.
Based on: 61 positive cases with first detection positions ranging from 1 to 5.
| Empirical Detection Rates by Sample Threshold | ||||
|---|---|---|---|---|
| Samples Examined | Cumulative Detection | 95% CI Lower | 95% CI Upper | Incremental Yield |
| 1 | 57.3% | 44.3% | 70.5% | 57.3% |
| 2 | 78.6% | 68.9% | 88.5% | 21.3% |
| 3 | 88.5% | 80.3% | 95.1% | 9.9% |
| 4 | 96.7% | 91.8% | 100.0% | 8.2% |
| 5 | 100.0% | 100.0% | 100.0% | 3.3% |
| 6 | 100.0% | 100.0% | 100.0% | 0.0% |
| 7 | 100.0% | 100.0% | 100.0% | 0.0% |
| 8 | 100.0% | 100.0% | 100.0% | 0.0% |
| 9 | 100.0% | 100.0% | 100.0% | 0.0% |
| 10 | 100.0% | 100.0% | 100.0% | 0.0% |
Marginal benefit of examining each additional sample. Helps identify the optimal stopping point where yield diminishes.
Interpretation: High value (≥10%), Moderate (5-10%), Diminishing (<5%), Low (<2%).
| Marginal Benefit per Additional Sample | ||||
|---|---|---|---|---|
| From N Samples | To N+1 Samples | Additional Detection Rate | Additional Cases per 100 | Cost-Benefit Rating |
| 1 | 2 | 21.3% | 21.31 | High value |
| 2 | 3 | 9.8% | 9.84 | Moderate value |
| 3 | 4 | 8.2% | 8.20 | Moderate value |
| 4 | 5 | 3.3% | 3.28 | Diminishing returns |
| 5 | 6 | 0.0% | 0.00 | Low yield |
| 6 | 7 | 0.0% | 0.00 | Low yield |
| 7 | 8 | 0.0% | 0.00 | Low yield |
| 8 | 9 | 0.0% | 0.00 | Low yield |
| 9 | 10 | 0.0% | 0.00 | Low yield |
Distinguishes between:
Observed prevalence: 5.6% (61/1096 cases positive)
Note: Prevalence reflects this specific dataset and may not generalize.
| Conditional vs Population Detection | |||
|---|---|---|---|
| Samples | Prevalence | Sensitivity (given present) | Detection Rate (overall) |
| 1 | 5.6% | 60.2% | 3.4% |
| 2 | 5.6% | 84.2% | 4.7% |
| 3 | 5.6% | 93.7% | 5.2% |
| 4 | 5.6% | 97.5% | 5.4% |
| 5 | 5.6% | 99.0% | 5.5% |
| 6 | 5.6% | 99.6% | 5.5% |
| 7 | 5.6% | 99.8% | 5.6% |
| 8 | 5.6% | 99.9% | 5.6% |
| 9 | 5.6% | 100.0% | 5.6% |
| 10 | 5.6% | 100.0% | 5.6% |
JamoviTest::pathsampling( data = data, analysisContext = "omentum", totalSamples = cassette_number, firstDetection = first_cassette_tumor_identified, positiveCount = total_cassettes_with_metastasis, positiveSamplesList = cassettes_with_metastasis, showBinomialModel = TRUE, showBootstrap = TRUE, showDetectionCurve = TRUE, showSensitivityCI = TRUE, showClinicalSummary = TRUE, showEmpiricalCumulative = TRUE, showSpatialClustering = TRUE, showPopulationDetection = TRUE, showIncrementalYield = TRUE, showMultifocalAnalysis = TRUE, duplicate = 2)
| Data Summary | |
|---|---|
| Measure | Value |
| Total cases supplied | 1096 |
| Cases analyzed | 1096 |
| Total samples (input) | 4395 (recorded) |
| Total samples analyzed | 4162 (up to first detection) |
| Mean samples per analyzed case | 4.01 |
| Median first detection | 1 |
| Cases without detected lesion | 1035 |
| Binomial estimator | Empirical Proportion (uses all positive samples) |
Analysis Overview:
Pathology sampling adequacy analysis of 1096 cases to determine the minimum number of samples required to reliably detect lesions.
Key Findings:
Copy-ready text for reports:
"Sampling adequacy analysis of 1096 cases showed a per-sample detection probability of 60.2%. To achieve 95%% sensitivity, a minimum of 4 samples is recommended based on binomial probability modeling and bootstrap validation (10000 iterations, 95%% CI: 91.8%%-100.0%%). Observed data showed 88.5% of lesions detected within first 3 samples."
Clinical Recommendation: Submit a minimum of 4 samples to ensure adequate diagnostic sensitivity in routine practice.
⚠️ DATA QUALITY WARNINGS
Estimated per-sample detection probability: q = 0.6023
Estimation Method: Empirical Proportion (uses all positive samples)
Based on 61 positive cases with 206 positive samples out of 342 total samples examined.
Formula: P(detect ≥ 1 in n samples | lesion present) = 1 - (1-q)n
Note: This estimates sensitivity (detection given lesion is present), not population-level detection rate.
| Binomial Model Predictions | ||
|---|---|---|
| Number of Samples | Sensitivity (P(detect | present)) | Marginal Gain |
| 1 | 60.2% | 60.2% |
| 2 | 84.2% | 24.0% |
| 3 | 93.7% | 9.5% |
| 4 | 97.5% | 3.8% |
| 5 | 99.0% | 1.5% |
| 6 | 99.6% | 0.6% |
| 7 | 99.8% | 0.2% |
| 8 | 99.9% | 0.1% |
| 9 | 100.0% | 0.0% |
| 10 | 100.0% | 0.0% |
| Minimum Samples for Target Confidence | |
|---|---|
| Target Confidence | Minimum Samples Required |
| 80.0% | 2 |
| 90.0% | 3 |
| 95.0% | 4 |
| 99.0% | 5 |
Empirical sensitivity estimates based on 10000 bootstrap iterations.
This method resamples cases with replacement to estimate sensitivity and confidence intervals without parametric assumptions.
Reference: Skala SL, Hagemann IS. Int J Gynecol Pathol. 2015;34(4):374-378.
| Bootstrap Sensitivity Estimates (Conditional) | |||
|---|---|---|---|
| Number of Samples | Mean Sensitivity (given present) | 95% CI Lower | 95% CI Upper |
| 1 | 57.3% | 44.3% | 68.9% |
| 2 | 78.6% | 67.2% | 88.5% |
| 3 | 88.5% | 80.3% | 95.1% |
| 4 | 96.7% | 91.8% | 100.0% |
| 5 | 100.0% | 100.0% | 100.0% |
| 6 | 100.0% | 100.0% | 100.0% |
| 7 | 100.0% | 100.0% | 100.0% |
| 8 | 100.0% | 100.0% | 100.0% |
| 9 | 100.0% | 100.0% | 100.0% |
| 10 | 100.0% | 100.0% | 100.0% |
Non-parametric estimation of detection probability based on actual observed data. Does not assume geometric distribution - uses bootstrap resampling for confidence intervals.
Based on: 61 positive cases with first detection positions ranging from 1 to 5.
| Empirical Detection Rates by Sample Threshold | ||||
|---|---|---|---|---|
| Samples Examined | Cumulative Detection | 95% CI Lower | 95% CI Upper | Incremental Yield |
| 1 | 57.5% | 44.3% | 70.5% | 57.5% |
| 2 | 78.7% | 67.2% | 88.5% | 21.3% |
| 3 | 88.6% | 80.3% | 95.1% | 9.8% |
| 4 | 96.7% | 91.8% | 100.0% | 8.2% |
| 5 | 100.0% | 100.0% | 100.0% | 3.3% |
| 6 | 100.0% | 100.0% | 100.0% | 0.0% |
| 7 | 100.0% | 100.0% | 100.0% | 0.0% |
| 8 | 100.0% | 100.0% | 100.0% | 0.0% |
| 9 | 100.0% | 100.0% | 100.0% | 0.0% |
| 10 | 100.0% | 100.0% | 100.0% | 0.0% |
Marginal benefit of examining each additional sample. Helps identify the optimal stopping point where yield diminishes.
Interpretation: High value (≥10%), Moderate (5-10%), Diminishing (<5%), Low (<2%).
| Marginal Benefit per Additional Sample | ||||
|---|---|---|---|---|
| From N Samples | To N+1 Samples | Additional Detection Rate | Additional Cases per 100 | Cost-Benefit Rating |
| 1 | 2 | 21.3% | 21.31 | High value |
| 2 | 3 | 9.8% | 9.84 | Moderate value |
| 3 | 4 | 8.2% | 8.20 | Moderate value |
| 4 | 5 | 3.3% | 3.28 | Diminishing returns |
| 5 | 6 | 0.0% | 0.00 | Low yield |
| 6 | 7 | 0.0% | 0.00 | Low yield |
| 7 | 8 | 0.0% | 0.00 | Low yield |
| 8 | 9 | 0.0% | 0.00 | Low yield |
| 9 | 10 | 0.0% | 0.00 | Low yield |
Distinguishes between:
Observed prevalence: 5.6% (61/1096 cases positive)
Note: Prevalence reflects this specific dataset and may not generalize.
| Conditional vs Population Detection | |||
|---|---|---|---|
| Samples | Prevalence | Sensitivity (given present) | Detection Rate (overall) |
| 1 | 5.6% | 60.2% | 3.4% |
| 2 | 5.6% | 84.2% | 4.7% |
| 3 | 5.6% | 93.7% | 5.2% |
| 4 | 5.6% | 97.5% | 5.4% |
| 5 | 5.6% | 99.0% | 5.5% |
| 6 | 5.6% | 99.6% | 5.5% |
| 7 | 5.6% | 99.8% | 5.6% |
| 8 | 5.6% | 99.9% | 5.6% |
| 9 | 5.6% | 100.0% | 5.6% |
| 10 | 5.6% | 100.0% | 5.6% |
Analyzes how positive samples are distributed spatially:
Clinical significance: Clustered patterns may allow more targeted sampling; dispersed patterns require broader sampling strategy.
| Spatial Distribution Patterns | |||
|---|---|---|---|
| Pattern | Cases | Percentage | Mean Clustering Index |
| Clustered (focal) | 8 | 17.4% | 0.487 |
| Random | 38 | 82.6% | 0.938 |
| Dispersed (multifocal) | 0 | 0.0% | . |
Estimates number of separate foci based on spatial distribution of positive samples. Gaps > 2 samples suggest separate foci.
Clinical note: Multifocal involvement may indicate more advanced disease and can affect staging/treatment decisions.
| Number of Foci Distribution | |||
|---|---|---|---|
| Number of Foci | Cases | Percentage | Mean First Detection |
| Unifocal (1 focus) | 55 | 90.2% | 1.82 |
| Bifocal (2 foci) | 3 | 4.9% | 1.67 |
| Multifocal (3+ foci) | 3 | 4.9% | 1.33 |
Multifocal Detection: Probability of detecting multiple lesions in 'n' samples, assuming per-sample detection probability q = 0.602.
Useful for planning sampling when the goal is to find multiple foci (e.g., multifocal tumor).
| Probability of Detecting Multiple Lesions | |||
|---|---|---|---|
| Samples | P(≥1 lesion) | P(≥2 lesions) | P(≥3 lesions) |
| 1 | 60.2% | 0.0% | 0.0% |
| 2 | 84.2% | 36.3% | 0.0% |
| 3 | 93.7% | 65.1% | 21.9% |
| 4 | 97.5% | 82.3% | 47.9% |
| 5 | 99.0% | 91.5% | 68.7% |
| 6 | 99.6% | 96.0% | 82.4% |
| 7 | 99.8% | 98.2% | 90.6% |
| 8 | 99.9% | 99.2% | 95.2% |
| 9 | 100.0% | 99.6% | 97.6% |
| 10 | 100.0% | 99.8% | 98.8% |
| 1 | 60.2% | 0.0% | 0.0% |
| 2 | 84.2% | 36.3% | 0.0% |
| 3 | 93.7% | 65.1% | 21.9% |
| 4 | 97.5% | 82.3% | 47.9% |
| 5 | 99.0% | 91.5% | 68.7% |
| 6 | 99.6% | 96.0% | 82.4% |
| 7 | 99.8% | 98.2% | 90.6% |
| 8 | 99.9% | 99.2% | 95.2% |
| 9 | 100.0% | 99.6% | 97.6% |
| 10 | 100.0% | 99.8% | 98.8% |
[1] The jamovi project (2025). jamovi. (Version 2.7) [Computer Software]. Retrieved from https://www.jamovi.org.
[2] R Core Team (2025). R: A Language and environment for statistical computing. (Version 4.5) [Computer software]. Retrieved from https://cran.r-project.org. (R packages retrieved from CRAN snapshot 2025-05-25).