Questions tagged [scipy]
SciPy is a python ecosystem of open-source packages for scientific computation. Some of the core packages include NumPy, SciPy, Matplotlib, IPython, SymPy, and pandas.
99 questions
3votes
1answer
296views
How to train a model to estimate the coefficients of a coupled ODE?
Consider the coupled ODE system below (Lotka-Volterra equations): $$ \frac{dx}{dt} = \alpha x - \beta x y, \\ \frac{dy}{dt} = - \gamma y + \delta x y , $$ How can I train a model to estimate the ...
1vote
1answer
35views
scipy bootstrap generates input with inconsistent numbers of samples
I have a dataset of 77 samples, and I am using scipy bootstrap to get a confidence interval to estimate the precision. I am baffled to see that it generates input variables with inconsistent numbers ...
3votes
3answers
159views
Specifying and fitting a custom distribution to data
I have a dataset of measurements $Y$ to which I want to fit a custom distribution, and thereby obtain an estimate of the distribution's parameters. Based on domain knowledge, I know that the process ...
0votes
0answers
12views
Heuristics for hierarchical clustering with custom linkage function
I made my own custom linkage function for SciPy, and I want to add heuristics. I cluster json sequences and for example if one cluster is sufficiently big (let’s say 20 Jsons) and the other one is ...
0votes
0answers
30views
Agglomerative clustering with min and max cluster size constraints
Are there any python packages that have agglomerative clustering algorithms which have min and max cluster size constraints built in? I found a great package called KMeansConstrained but unfortunately ...
0votes
0answers
38views
Custom linkage matrix, Dendrogram labels aren't correct
I created my own linkage function, that produces a linkage matrix with the right format of scipy (n-1x4). When I try to use the dendrogram function with the labels I used for the linkage, the ...
0votes
0answers
63views
why there is discrepancy in the result of code giving different results in matlab and python?
I want to solve the 1-D transient heat transfer equation Define a 1-D geometry(a line) in y-direction **dT/dt = (k/(rhocp))d²T/dy² I.C. : @t=0, temperature of all elements is 25°C B.C. : The geometry ...
0votes
1answer
15views
How set binary random projection to features, num_samples for X-train, x_test, y_train to match knn distances L dimension
Binary Random Projection of Features, Samples Creating a binary random projection that will be used in a kNN Hanning function for hamming distances on nearest neighbors that will be processed by ...
0votes
1answer
28views
Why does largest eigen value used for eigen vector calcuation?
Why is the largest eigenvalue used for eigenvector calculation? What is the significance of using a largest absolute value for the whitening of a picture?
0votes
2answers
907views
Solve a non-linear system, in Python, with the GAUSS-NEWTON algorithm? (Jacobian matrix J, etc.)
I would like to solve a non-linear system (which contains the goals of a football team in previous matches) using the Gauss-Netwon algorithm, in order to find the parameter (of frequency) to use as ...
1vote
1answer
170views
Using scipy poisson, is it possible to calculate lambda if given random variable (k) and cumulative density function (p) when k is a large value?
I'm learning the Poisson distribution and am trying to "backward" calculate lambda if given a random value (k) and cumulative density function value (p). My k value is rather large, over 200,...
1vote
1answer
46views
Optimization problem of find a pair of values (x, y) such that they produce an output z
Problem I am trying to create a process that determines the rent and purchase price of a home that gives me a capitalization rate of 0.08 for instance. Background Normally I calculate the ...
0votes
1answer
158views
Cramer von mises test requires too much resources
I am doing some data analysis, and I am using the cramer von mises test to check if two samples are derived from the same distribution. I am using the ...
0votes
1answer
288views
How can I take the cross-correlation between two discrete signal with slightly different discrete time points?
I have two discrete signals x1 and x2 with corresponding time points t1 and ...
1vote
1answer
297views
How to correctly compute the correlation index of a column value from table in Python 3?
I have a data table of daily values for the past 2 years that looks like this, and I need to calculate the correlations between the data in Python. I have no background in data science, so I am afraid ...