Is there any way to artificially create a probability calibration for data coming from another model?

I have predictions, which come from a survival model, this model gives me very low probabilities, and I am not sure if they fulfill the real probability of the phenomenon.

For example, I calculate $P\left( T\leq t+d \middle| Tt \right)$ and the probabilities are very low (with $d=180$).

To summarize, I need these probabilities to be on average another number (let's say $0.2$). Is it possible to create an artificial calibration with only this number (the desired average) as the input?

I have thought of creating a vector of size $n$ equal to the size of that distributes $X_i \sim Ber(p=0.2)$ and assign its ones to the top $np$ probabilities and its zeros to the latest $n(1-p)$. Which would result in a table with a column of probabilities obtained with the survival model and another column with an $0$ or $1$ depending on the said probability.

After getting this table, I would simply use CalibratedClassifierCV from scikit-learn. Is this the correct way?

Topic data-science-model probability-calibration probability

Category Data Science


Sound like you are interested in controlling for some of the time varying coefficients in the Cox model using priors using Bayesian methods. Here are some references that might help you:

Bayesian Survival Analysis - COX PHD Time Varying Covariates Implementation This discusses the rstanarm package for R. Also refers to a Python version

https://stats.stackexchange.com/questions/510468/bayesian-survival-analysis-cox-phd-time-varying-covariates-implementation

Examples of how to use in R

https://cran.r-project.org/web/packages/rstanarm/vignettes/rstanarm.html

Python Survival Analysis using PYMC3

https://docs.pymc.io/en/v3/pymc-examples/examples/survival_analysis/survival_analysis.html#:~:text=Bayesian%20Survival%20Analysis%C2%B6&text=Survival%20analysis%20studies%20the%20distribution,model%20in%20Python%20using%20PyMC3.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.