Q:

Excel function STEYX to Java

I'm working on a migration of calculations that exist in an excel spreadsheet for java, but I'm having difficulty in the function STEYX, has anyone ever had to do this?

STEYX(data_y, data_x)  Summary Calculates the standard error of the
  predicted y-value for each x in the regression of a dataset. data_y
  The range representing the array or matrix of dependent data. data_x
  The range representing the array or matrix of independent data.

example data:
y = 8734,-3943,3294
x= -3243,3434,-1323 
result= 1423.150065

A:

Simple example of Regression in Java:
Regression.java

