I calculate two-tailed in Java

Asked

Viewed 175 times

2

How can I do the bicaudal or unicaudal calculation in Java?

This calculation is done in Excel by function INVT.

This Excel function is done as follows for example: =INVT(0,0455; 4,81E+01) that returns the value 2,053. What was the calculation she used to return me the value 2,053?

I couldn’t find it anywhere. Then, I wonder if anyone ever used some java lib to calculate this excel function.

  • 1

    Francisco, please edit your question and try to explain what you want to do with this calculation.

  • 2

    What is a two-tailed calculus?

  • 1

    I don’t know if there is a specific java function for this, but from what I read it uses a Student t test. I found a description of the history of the method and the formula used by it in the link below. You can use the example to implement your own java formula: https://pt.wikipedia.org/wiki/Teste_t_de_Student

  • I think I can do it using normal distribution instead of Student’s t distribution. What is your particular interest with the degrees of freedom (the second parameter of INVT)?

1 answer

0

The Java framework you need is the one in the link below:

http://commons.apache.org/proper/commons-math/userguide/distribution.html

Better than implementing in hand.

The code will look like this:

   TDistribution  t = new TDistribution(4.81E+1);
   double num = 1.0 - t.inverseCumulativeProbability(0.0455);
   System.err.println(num);

Read the documentation you will understand and be able to implement right. I needed it in college and the framework helped me.

reference for response:

https://support.office.com/pt-br/article/INVT-Fun%C3%A7%C3%A3o-INVT-a7c85b9d-90f5-41fe-9ca5-1cd2f3e1ed7c

http://www.epi.uff.br/wp-content/uploads/2015/05/Tabela-T.pdf

I hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.