Equation system involving InverseDigamma(Digamma(a+1)-b*k)-1

In summary, the conversation discusses how to solve for the values of a and b given N, E, and K using the inverse digamma function and a numerical approach with Python, Matlab, or Mathematica. Pseudo code is provided to search for the best A and B values, but an analytic solution is also welcomed.
  • #1
rabbed
243
3
How would one go about solving this for a and b given N, E and K?

n(0) + n(1) + … + n(K) = N
n(0)*0 + n(1)*1 + … + n(K)*K = E

Where n(k) = InverseDigamma(Digamma(a+1)-b*k)-1
 
Mathematics news on Phys.org
  • #2
I think it would have to be done numerically using Python, Matlab, or Mathematica.

Mathematica has a digamma function:

https://mathworld.wolfram.com/DigammaFunction.html

and Matlab has a digamma function:

https://www.mathworks.com/help/matlab/ref/psi.html

and Python has a version of the digamma function:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.digamma.html

Here's some pseudo code to search for the best A, B values across a range of A, B values. It's not the fastest or the best way, and the pseudo-code needs to be written in either Python, Matlab, or Mathematica to find the answer you're looking for.

Also, the means of determining closeness could be better implemented with perhaps some other distance measurement more suited to this search.

Code:
given N , E , K

A = 0
B = 0

NDIFF= max_float_value
EDIFF = max_float_value

for a in range(a_min,a_max,a_step)

    for b in range(b_min,b_max,b_step)

        for k = 0 to K:

            X = (a+1)-b*k
            NK = inverse_digamma(digamma(X))
            N2 = N2 + NK
            E2 = E2 +k*NK

        if ((N2-N)^2+(E2-E)^2) < (NDIFF^2+EDIFF^2):
            NDIFF = (N2 - N)
            EDIFF = (E2 - E)
            A = a
            B = b

print "NDIFF = " NDIFF
print "EDIFF = " EDIFF
print "A = ". A, "  B = ", B
 
Last edited:
  • #3
Thanks, i'll try that.
If anyone has ideas for an analytic solution, just shoot :)
 

1. What is an equation system involving InverseDigamma(Digamma(a+1)-b*k)-1?

An equation system involving InverseDigamma(Digamma(a+1)-b*k)-1 is a set of mathematical equations that involve the inverse digamma function, Digamma(a+1)-b*k, and a constant value of -1. The equations are typically used to solve for the unknown variables a and b.

2. What is the purpose of using the InverseDigamma function in this equation system?

The InverseDigamma function is used in this equation system to solve for the unknown variables a and b. It is the inverse of the Digamma function, which is a special function in mathematics that is used to evaluate the logarithm of the gamma function.

3. How is the InverseDigamma function calculated in this equation system?

The InverseDigamma function is typically calculated using numerical methods, as there is no closed-form solution for it. This involves using iterative algorithms to approximate the value of the function based on the given inputs.

4. What is the significance of the constant value of -1 in this equation system?

The constant value of -1 in this equation system is used to balance out the equation and ensure that the inverse digamma function is properly evaluated. It is a necessary component of the equation in order to solve for the unknown variables a and b.

5. In what fields or applications is this equation system involving InverseDigamma(Digamma(a+1)-b*k)-1 commonly used?

This equation system is commonly used in fields such as statistics, physics, and engineering. It is often used to solve for unknown parameters in mathematical models or to analyze data in various scientific studies.

Similar threads

Replies
4
Views
386
Replies
14
Views
1K
  • General Math
Replies
1
Views
241
Replies
4
Views
1K
  • General Math
Replies
5
Views
941
  • General Math
Replies
3
Views
746
Replies
1
Views
367
Replies
2
Views
1K
Replies
1
Views
618
Replies
3
Views
710
Back
Top