# Questions tagged [python]

For mathematical questions about Python; questions purely about the language, syntax, or runtime errors are off-topic here and would likely be better received on Stack Overflow.

503 questions
Filter by
Sorted by
Tagged with
17 views

### Hypothesis testing for anti proportional correlation

currently I am a bit in trouble regarding hypothesis testing - definitely my weakest area of math. I was studying it quite a lot in the past days but came across an problem that I don't know how to ...
48 views

### Imaginary number in quadratic equation [closed]

I am trying to write a python script to calculate quadratic equations, but I'm currently stuck with this. Can anyone help me and tell me, how i is supposed to be ...
31 views

### Implementing Bates distribution

I've been trying to plot the Bates distribution curve, The Bates distribution is the distribution of the mean of n independent standard uniform variates (from 0 to 1). (I worked on the interval [-1;1],...
12 views

### Outputting ReduceLROnPlateau learning rates onto Tensor Board [closed]

I'm new to machine learning and I managed so far to find a way to have loss and accuracy show up on Tensor Board in the hopes of optimizing my model. However, I'm struggling to find anything online ...
26 views

28 views

### CVXPY constraints when dealing with block matrices! [closed]

I am trying to solve a robust optimization problem using CVXPY. I am new to this package and also a beginner of python. I don't know how to implement the constraint that makes a block decision ...
25 views

### In general when denominator(b) is greater that numerator(a), what is the procedure to calculate a %b? [closed]

How do we calculate 2 %3 ? In python when I executed following code, I got the answer as 8 instead of 16. ...
34 views

### Why are my y values incorrect? [closed]

Regarding a recent, more general/in depth question regarding some python code, I've done some further testing and searching and managed to boil it down to a now simpler question. I am trying to draw a ...
60 views

### Y values for graphing the arc of a circular segment when X is known.

I'm looking for some help checking that my math/reasoning is correct, with regards to calculating the y value for a corresponding and known x value. I am not confident with maths and my formulas have ...
27 views

### Getting the coordinates of a point travelling a vector

So I'm currently having a problem with a python game. Let's say we have a square with a side of $600$ pixels, let's call the top segment $AB$ and the bottom one $CD$. Now on the $AB$ segment there is ...
32 views

### How do you calculate the gradient of nll_loss(log_softmax(A*A*X*W0*W1)) w.r.t A?

I would like to know how I can calculate the gradient of null_loss(log_softmax(A*A*X*W0*W1)) w.r.t A. All A, X, W0, W1 are 2D ...
46 views

### Tolerance limit (interval) in python

I am trying to calculate the tolerance limit (interval) in python. As a reminder, the tolerance limits are: $$\bar{x} \pm k s$$ where $\bar{x}$ is the sample mean and $s$ is the sample standard ...
40 views

### Plotting a linear system in python. [closed]

I am trying to plot a linear system from a book. Essentially it is just a quiver plot, which is otherwise known as a vector plot. The equation I am considering is \begin{equation} \dot{x} = y , \text{...
108 views

### Calculating quantiles of weighted array

First the proviso I'm only an aspiring mathematician. Secondly forgive how I've articulated this question in Python, but it is essentially a computational problem I'm looking to solve. I wonder if ...
54 views

57 views

### What is the function fsolve in python doing mathematically?

In the Python documentation for fsolve it says "Return the roots of the (non-linear) equations defined by func(x) = 0 given a starting estimate" f(x, *args). I wondered if anyone knew the mathematical ...