Xavier George

Ranch Hand

Posts: 39

posted 7 years ago

Dear All,

I need to perform econometrics/statistical computaion for the bank. We were using Matlab from MathWorks.com. Recently, we are planning to perform computation with java instead of Matlab.

e.g. below is the sample equation that I want to evaluate in java -

∆Φ^(-1) (SDP_t ) =B_1 〖∆SDF〗(t-1 ) B_2 〖∆XXX〗(t-2 ) B_3 〖∆linear〗(t-1)+B_4 〖∆Linear〗(t-2)

+Z_m

My question is, I have not found API in java though which I can perform calculation. Also, we are performing this type of computation first time in java, does java supports all statistics calculation like standard deviation, mean distribution et cetera.

I came across Apache commons-maths library which provides class related to maths/statistics. (http://commons.apache.org/math/api-1.2/index.html)

Has anyone performed statistics/equation evaluation in java or with Apache commons-maths? Please share your thought?

I appreciate your time reading my post.

I need to perform econometrics/statistical computaion for the bank. We were using Matlab from MathWorks.com. Recently, we are planning to perform computation with java instead of Matlab.

e.g. below is the sample equation that I want to evaluate in java -

∆Φ^(-1) (SDP_t ) =B_1 〖∆SDF〗(t-1 ) B_2 〖∆XXX〗(t-2 ) B_3 〖∆linear〗(t-1)+B_4 〖∆Linear〗(t-2)

+Z_m

My question is, I have not found API in java though which I can perform calculation. Also, we are performing this type of computation first time in java, does java supports all statistics calculation like standard deviation, mean distribution et cetera.

I came across Apache commons-maths library which provides class related to maths/statistics. (http://commons.apache.org/math/api-1.2/index.html)

Has anyone performed statistics/equation evaluation in java or with Apache commons-maths? Please share your thought?

I appreciate your time reading my post.

Campbell Ritchie

Marshal

Posts: 56546

172

posted 7 years ago

Write out that formula as a simple algorithm. It will reduce to many simpler operations, eg power, log, add, subtract. If they are not simple arithmetic, have a look at the Math class, in the first instance.

Ramya Chowdary

Ranch Hand

Posts: 252

posted 7 years ago

Some functions of following libraries can be useful

http://commons.apache.org/math/index.html

http://www.alphaworks.ibm.com/tech/mathlibrary4java/

But, as Ritchie said, follow algorithmic way.

You can also have wolfram as a reference to implement algorithms.

http://commons.apache.org/math/index.html

http://www.alphaworks.ibm.com/tech/mathlibrary4java/

But, as Ritchie said, follow algorithmic way.

You can also have wolfram as a reference to implement algorithms.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |