Questions tagged [python]
Python is a programming language commonly used for machine learning. Use this tag for any *on-topic* question that (a) involves `Python` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `Python`.
4,826 questions
0
votes
0
answers
31
views
neophyte python coder needs hand held analyzing data [closed]
So, I have this scientific instrument, and I'm getting great data out of it, but as all real apparatus are prone to, the signal can have lots of noise mixed in.
To combat that error, I've implemented ...
0
votes
0
answers
29
views
Understanding Chatterjee's correlation coefficient
I came across the Chatterjee's correlation (xicor) coefficient, which takes care of non-monotonic relationships. My data looks like below-
The xicor for this data is 0.52, which I think is too much, ...
0
votes
0
answers
17
views
Could not perform 5-fold cross validation among distributed client's survival data
I am working with veteran survival data whose summary statistics is shared here:
As you can see that only 137 samples are here in this dataset and 10 observations are censored. I have distributed ...
0
votes
0
answers
13
views
Should I compute baseline hazard of CoxPH model using training data or test data?
I have read that the following formula is used to estimate the cumulative baseline hazard function:
I am using CoxPH model from PyCox package to fit into a survival dataset with regular 1 events and ...
0
votes
0
answers
14
views
How to choose matrices in an univariate dynamic probit model for online inference (Assumed Density Filter)
I'm working with a specific state space model (Non Linear Non Gaussian) which is the univariate probit model (one binary observation at each time with a Gaussian latent process.
$$
\theta_t = G\theta_{...
0
votes
0
answers
30
views
Multivariate Normal Tail CDF Implementation
Are there any efficient codes that can evaluate the probabilites of a multivariate normal CDF (4-10 variables), in MATLAB or R or Python. Probabiites in the range of 10^-5 to 10^-6
I used MATLAB's ...
4
votes
1
answer
136
views
Confidence interval for the parameters of a non-linear model
I am trying to understand how to obtain the confidence interval for a function fitted with scipy.optimize.least_squares. If my understanding is correct, I'd need to take the "Modified Jacobian ...
0
votes
0
answers
40
views
ANCOVA or GLMM for logistic regression with fixed and random effects
I'm running an experiment where subjects need to determine if a test-image is identical or different from their (memorized) target-image. The images are divided between categories (e.g. ...
1
vote
0
answers
17
views
How to apply FDR correction when one survey item is sex-specific
I am analyzing survey data with ~80 items. Most items apply to all respondents, but one item is male-specific and therefore has a smaller denominator (approx. n/2).
I am comparing symptom frequencies ...
0
votes
0
answers
31
views
How to identify and quantify main tendencies across participants from cluster membership heatmaps?
I'd appreciate your thoughts on the following problem.
I've created a heatmap plot (attached) showing the cluster membership ratio for each participant (in separate subplots) and condition (η).
Now, I'...
0
votes
1
answer
113
views
Is there a method to calculate a regression using the inverse of the relationship between independent and dependent variable?
I am trying to use regression to analyze a titration, I have the following relationship that I know should fit the data, but $V_b$ is the independent variable and $\left[H^+\right]$, which is $10^{-p\...
1
vote
0
answers
21
views
Assembling boxes on pallets (YOLOv8n), problems with detection
I'm developing a computer vision solution to count boxes in fractional palettes.
Problem: inconsistent detections. I don't know if it's due to a lack of data, annotations, architecture, or ...
0
votes
0
answers
26
views
What is the best way to determine if cross validated R-squared scores are significantly different? [duplicate]
I'm comparing, pairwise, the results of Linear Regression models with transformations applied to one numerical feature and the target. I'm using K folds cross validation scoring with R-squared. The ...
2
votes
2
answers
157
views
How can I get scipy.curve_fit to converge on data involving a wrapping phase angle?
I am trying to fit the phase angle of complex data with a very simple function phi(f) = mf, where m is the gradient and ...
4
votes
1
answer
201
views
Can I have some help choosing a very low-sample estimator?
I want to forecast what next semester's finances may look like, regarding my campus job. I get paid bi-weekly, and have eight past data points: ...