Tagged Questions
3
votes
1answer
1k views
liblinear (in java) simple example won't work
I'm trying to operate the liblinear library (java), and i'm using a super-simple example with the template found here.
The case example is to determine if a shape is a square or a rectangle.
here is ...
1
vote
5answers
832 views
Gradient Descent in linear regression
I am trying to implement linear regression in java. My hypothesis is theta0 + theta1 * x[i].
I am trying to figure out the value of theta0 and theta1 so that the cost function is minimum.
I am using ...
1
vote
2answers
87 views
SimpleRegression - Intercept & slope calculation errors
I want to implement the Simple Regression model from the apache commons math libary.
I have implemented:
//estimate alpha and beta parameters
regression = new SimpleRegression();
for (int l = 0; l ...
0
votes
0answers
53 views
Using Apache Library for OLS Regression : Matrix is singular exception
I am using the Apache Math Library for Java to find the OLS regression for a set of data. However, I will occasionally get the following error : ...
1
vote
2answers
252 views
Java Non-negative multiple linear regression library
I am working on a Java project, and I have to compute a multiple linear regression, but I want the gotten parameters to be non-negative. Is there an existing commercial-friendly-licensed library to do ...
0
votes
0answers
85 views
Precision issue with linear regression in java using commons apache
I need to compute significance for linear regression in Java. I am using the SimpleRegression class provided by apache commons math. The library works fine except when the significance p-value gets ...
0
votes
1answer
157 views
how to create forecast data prediction interval bands
I have seasonal data from which I create forecasts. The steps I perform are: deseasonalizing the data, finding the linear regression for the deseasonalized points, predicting a few points from the ...
3
votes
2answers
731 views
Weka nullPointerException while classifying
I am using for training the model and classifying again by using the model.
I am correctly getting the statistics for the first part but not the second part.
It gives nullPointerException while ...
3
votes
2answers
566 views
Recursive time series segmentation algorithm
Im doing Time series analysis on stock market data and trying to implement an algorithm for piecewise linear segmentation, which is as follows :
split(T [ta, tb ]) – split a time series T of ...
1
vote
1answer
140 views
Rescue all prediction results in Liblinear for Java
I was wondering how one can rescue all of the prediction results when using the Java API for liblinear.
As it is well documented one can rescue the accuracy of the prediction with the following code:
...
3
votes
1answer
1k views
Gradient Descent Linear Regression in Java
This a bit of a long shot, but I wonder if someone could look at this. Am I doing Batch Gradient descent for linear regression correctly here?
It gives the expected answers for a single independent ...
2
votes
1answer
147 views
Why am I getting different intercept values in R and Java for simple linear regression?
I have linear regression code written in R and I have to do the same thing in Java. I used Apache Commons math library for this. I used the same data in R code and in Java code, but I got different ...
0
votes
2answers
2k views
linear regression in Java similar in R [duplicate]
Possible Duplicate:
Is there a Java library for better linear regression? (E.g., iteratively reweighted least squares)
I have a following code inf R, but i need to implement the same thing ...
1
vote
0answers
216 views
Java library for computing a multi-dimensional line of best fit?
I'd like a (free) library or other method that can take N data points with M variables each and compute a line of best fit those data points. Speed is more necessary than exactness. Are there ...
4
votes
2answers
5k views
Weighted Linear Regression in Java
Does anyone know of a scientific/mathematic library in Java that has a straightforward implementation of weighted linear regression? Something along the lines of a function that takes 3 arguments and ...
1
vote
2answers
3k views
character recognition in Java
I have a new project that invloves on-line character recognition (recognizing characters as they are written). My idea is that each character is defined by a number of strokes that fit a mathmatical ...
8
votes
3answers
7k views
Is there a Java library for better linear regression? (E.g., iteratively reweighted least squares)
I am struggling to find a way to perform better linear regression. I have been using the Moore-Penrose pseudoinverse and QR decomposition with JAMA library, but the results are not satisfactory. ...
0
votes
1answer
505 views
Which is the best package for econometrics in java?
I was wondering if there is a Java toolkit that deals with econometrics. I am aware of Jet ( http://jet.codehaus.org/) and other regression packages (like ...
1
vote
1answer
3k views
Multiple Regression
In order to combine 3 different estimators of the same variable I need to implement a multiple regression method in Java (therefore 3 independent variables and 1 dependent variable). I'm looking for a ...
4
votes
1answer
189 views
Finding the break in data from a piecewise function
Greetings,
I'm performing research that will help determine the size of observed space and the time elapsed since the big bang. Hopefully you can help!
I have bilinear data on which I want to ...
2
votes
2answers
574 views
Java or C equivalent of MATLAB's robustfit
MATLAB has a magnificent robustfit function that solves the problem of excluding outliers with linear regression fitting. Is there anything similar written in Java or C (or in language X that could be ...
0
votes
2answers
668 views
Linear Regression and Java Dates
I am trying to find the linear trend line for a set of data. The set contains pairs of dates (x values) and scores (y values). I am using a version of this code as the basis of my algorithm.
The ...