thericerca
← All sample studies
Read-only sample study. A complete walkthrough — from problem statement to a validated report — using recidivism.csv (432 rows × 7 cols). Sign in to run your own.
Sample study · survival design

Time to Recidivism After Release

Research information
Statement of the problem

This study examines how quickly released prisoners are re-arrested and which baseline factors — including a randomized financial-aid intervention — influence the timing of re-arrest.

Objectives
  • To describe the weeks_to_arrest and arrested indicator among the released prisoners.
  • To estimate survival curves for the financial_aid vs no-aid groups (Kaplan-Meier).
  • To compare recidivism-free time between the financial_aid groups (log-rank).
  • To model how age and prior offenses predict recidivism time (Cox regression).
Dataset
recidivism.csv432 rows × 7 cols
ColumnKindMissingDistinct
weeks_to_arrestnumeric049
arrestednumeric02
financial_aidnumeric02
agenumeric028
racenumeric02
wexpnumeric02
prionumeric017
Feasibility & estimateFree
✓ Feasibledesign: survival · via heuristic

Detected a survival design with 7 analyzable variable(s) and 3 analytical question(s). Recommended 5 statistical test(s). Estimated cost: 47 credits.

Recommended analysis
To describe the weeks_to_arrest and arrested indicator among the released prisoners.
Descriptive Statistics(weeks_to_arrest)
Frequency & Percentage Distribution(arrested)
To estimate survival curves for the financial_aid vs no-aid groups (Kaplan-Meier).
Kaplan–Meier Survival Estimate(weeks_to_arrest, arrested, financial_aid)
Log-Rank Test(weeks_to_arrest, arrested, financial_aid)
Cox Proportional Hazards Regression(weeks_to_arrest, arrested, financial_aid)
To model how age and prior offenses predict recidivism time (Cox regression).
Kaplan–Meier Survival Estimate(weeks_to_arrest, arrested)
Cox Proportional Hazards Regression(weeks_to_arrest, arrested, age, prio)
Dataset Complexity12
Statistical Tests13
AI Interpretation9
Visualizations8
Report Generation5
Total to run47 credits
Estimated runtime: ~55-110 seconds
ResultsComputed
7 tests47 credits
Descriptive Statistics (weeks_to_arrest)
nmaxminstdmeanmoderangemedianvariablevariance
43252112.66245.854525152weeks_to_arrest160.334
Frequency & Percentage Distribution (arrested)
arrested · 073.6%
arrested · 126.4%
Kaplan–Meier Survival Estimate (weeks_to_arrest, arrested, financial_aid)
N432
ngroupeventscensoredmedian survivalrestricted mean
2160661500.859
2161481680.889

Observed 114 event(s) in 432 subject(s).

Log-Rank Test (weeks_to_arrest, arrested, financial_aid)
n.s.
χ²3.838df1N432p.050
ngroupevents
216066
216148

The result is not statistically significant (p = 0.0501 >= 0.05).

Cox Proportional Hazards Regression (weeks_to_arrest, arrested, financial_aid)
n.s.
N432p.050
Concordance0.546
medium
coefp valuehr ci lowpredictorhr ci highhazard ratio
-0.3690.0520.477financial_aid1.0030.691

The result is not statistically significant (p = 0.0501 >= 0.05).

Kaplan–Meier Survival Estimate (weeks_to_arrest, arrested)
N432
ngroupeventscensoredmedian survivalrestricted mean
432overall1143180.884

Observed 114 event(s) in 432 subject(s).

Cox Proportional Hazards Regression (weeks_to_arrest, arrested, age, prio)
significant
N432p< .001
Concordance0.633
medium
coefp valuehr ci lowpredictorhr ci highhazard ratio
-0.0690.0010.896age0.9720.933
0.0950.0001.042prio1.1591.099

The result is statistically significant (p = 0.0000 < 0.05).

Proportional-hazards assumption may be violated; hazard ratios should be interpreted cautiously.
Report

Publication-ready report

Tests used · Results · Discussion — generated from the computed statistics.

Numeric-claim check passed · 27 numbers verified · prose: llm:gemini

Run your own study

Bring your problem statement, objectives, and a dataset — thericerca does the rest.

Get started →