MATLAB is a high-level language and interactive programming environment developed by MathWorks. It is the foundation for a number of other tools related to statistical analysis, including Statistics Toolbox, Optimization Toolbox, Curve Fitting Toolbox and Neural Network Toolbox.

learn more… | top users | synonyms

0
votes
0answers
11 views

How do I use Metropolis Sampling in MATLAB to calculate an integral? [migrated]

I am trying to write a matlab function to solve a test integral using the Metropolis Method. My function is listed below. The integral is from 0 to infinity of x*e(-x^2), divided by the integral from ...
0
votes
0answers
4 views

simulating AR(1) process for N variables in MATLAB [migrated]

I am quite new in programming, can somebody tell whether the following approach is correct in matlab? clc; clear; N = 15; T = 221; alpha = randn(N,1); % normally distributed intercept as ...
0
votes
0answers
8 views

Train Gaussian Processes on image input [on hold]

I am trying to train a Gaussian Process with images as input and I am using this toolbox http://www.gaussianprocess.org/gpml/code/matlab/doc/ Is anyone familiar enough with the toolbox to be able to ...
4
votes
1answer
76 views
+50

Is the objective to beat a random classifier when the data set is skewed using PR curves?

I have a testing data set where 1/3 of the observations are class-1 objects and the remainder class-0. Hence, the data set is skewed (skewed classifier), literature suggests that if the data set is ...
0
votes
0answers
55 views

How to apply a Gaussian filter to co-ordinate data

I'm working on a project to investigate the correlation of surface finish and face sealing effectiveness. I have a trace of the surface of my seal and the next step is to apply a Gaussian filter to ...
1
vote
1answer
26 views

Bonferonni correction on multiple Kruskal-Wallis tests

My data consists of 3 groups, and 6 variables. The data are not normal so I want to use non-parametric tests to uncover significance. The first thing I wanted to get your opinion on is, is it ...
0
votes
0answers
33 views

Bootstrapping with standard deviation, mean and autocorrelation

I found in the matlab examples a way to use mean and sd for bootstrapping: ...
1
vote
0answers
16 views

Pre-processing before digit recognition for NN & CNN trained with MNIST dataset

I'm trying to classify handwriting digits, written by myself and a few friends, by usign NN and CNN. In order to train the NN, MNIST dataset is used. The problem is the NN trained with MNIST dataset ...
0
votes
1answer
34 views

Generating random simulations of events [closed]

Whole-edited to make it more simple. Let's assume we have a concrete event: A baseball player's batting average is 0.32. I want to find a random number X, that ...
0
votes
0answers
18 views

glmnet MATLAB logistic regression crash with small sample size

When I run glmnet (MATLAB) on a small data set (2500 variables, 200 samples), it often crashes MATLAB. Occasionally when MATLAB doesn't crash I get this error message ...
0
votes
0answers
17 views

What is a kernel parameter in Extreme Learning Machines?

I am using the MATLAB function elm_kernel but I don't know what the Kernel_Para variable do. Where can I learn about this? Also Regularization_coefficient. It looks similar to ...
0
votes
0answers
14 views

F1 Score vs ROC [duplicate]

How would one decide which performance measure to use when comparing classification algorithms for prediction purposes? Either the F-Score (Precision,Recall) or ROC/AUC analysis or both.
0
votes
0answers
22 views

How are ELMs tuning-free?

I have read that Extreme Learning Machines do not need any kind of iterative parameter tuning. However, in the MATLAB implementation of ELM that I use, I have a variable ...
0
votes
0answers
13 views

Why does LibSVM trained model change with data order? [migrated]

I have a simple 2 class classification problem (classes 1 and 0). I am using the MATLAB version of LibSVM to learn the model from the data. A very weird thing is ...
0
votes
1answer
27 views

pairwise distances used as features for classification

I have a feature matrix 977x3 features = rand(977,3); where each row is an observation and each column is a feature. I calculate the pairwise distances between ...
0
votes
0answers
34 views

Reducing the number of independent variables [duplicate]

I am working on a research project and I am trying to find one variable (execution time) as a function of a number of other variables/ metrics which were logged during the execution of a job. There ...
1
vote
0answers
27 views

Using the confidence intervals to improve predictive model success rate

I'm trying to build a binomial predictive model based on glm. My overall prediction is very low, in the order of 60%. But when I go for the datapoints that have the both boundaries in one side, for ...
0
votes
1answer
53 views

Grid search error in LIBSVM while optimizing C and g parameters

I am using libsvm for a one-class classification problem. I am trying to select the ideal C and gamma parameters for different kernels(polynomial, linear and rbf) I am using the suggested matlab code ...
1
vote
2answers
69 views

How to perform PCA in Matlab when number of dimensions is larger than number of observations?

I have a data matrix of say, $3000 \times 200$, i.e. I have $3000$-dimensional observations from $200$ subjects. How can I reduce the dimensionality to $1000$ in MATLAB? With bigger numbers, ...
0
votes
1answer
51 views

Probabilistic classifier useful for both numeric and nominal features

First, I should say I'm beginner in data mining and use Matlab. I have a huge dataset: approximately 40 millions observation. It consists of 24 features including numeric and nominal values like ...
0
votes
1answer
29 views

Cluster Sequences of data with different length

I need to cluster sequences of data that have different length. I am using Matlab and my first question is related to the method. Is KMeans sufficient to achieve this? IN KMeans I have to use the ...
0
votes
0answers
11 views

Continious to discrete state space modeling

Does anyone has Matlab code to convert continuous state space model to discrete domain symbolically based on parameters.My A matrix has 12x12 symbolic variables and getting exp(A*T) for discrete A is ...
1
vote
1answer
30 views

Why does matlab show r squared for non-linear

Inspired by the comments here http://stackoverflow.com/questions/27288483/python-multiple-curve-fitting-models In matlab, why is the R squared value displayed if it is meaningless for non-linear ...
0
votes
0answers
56 views

Naive Bayes Nearest Neighbor (NBNN) implementation problems in MATLAB

I'm currently trying to classify the CIFAR-10 image dataset. I cam across a number of papers praising the the results from a non-parametric approach called Naive Bayes Nearest Neighbors. It uses SIFT ...
1
vote
1answer
85 views

Is a neural network the only way to learn input/output relation?

first question here but hopefully you can help. Firstly I'm a web programmer by trade but I've touched a bit of neural networks in my university days. I've got a project to do with predicting the ...
2
votes
1answer
175 views

libsvm on MATLAB with rbf kernel: Compute distance from hyperplane

I have a One-Versus-All classification task with 80 different labels. In order to parallelize the problem to take advantage of multiple nodes on a computer cluster, I first trained 80 binary SVM ...
0
votes
1answer
17 views

Dealing with overlapping control/patient groups in SPM

Seeing as this question combines statistics, neuroimaging and programming I wasn't sure where to ask it, I apologize if it needs to be moved. I have data from a study where subjects were asked to ...
1
vote
1answer
32 views

Gaussian Process Prediction Uncertainty

I am using Gaussian Process Regression to interpolate my input points. I would like to measure the total uncertainty of my prediction thus I sum up the GPR prediction variances at all the testing ...
1
vote
1answer
30 views

MATLAB: modify arima model coefficients

I want to modify ARIMA model coefficients (MATLAB). I estimated my model using this code: mdl_1 = arima(2, 1, 2); estMdl_1 = estimate(mdl_1, data1'); MATLAB ...
0
votes
0answers
9 views

Matlab: Mean and Correlation matrix for time lag time series

Let the stationary time series model $y$ of 1 dimension (1 variable) of order $p>1$ and $t =1,2,..,N$ data points be expressed as, \begin{align} y_t = &c+ h_1y_{t-1} + h_2 y_{t-2}+ \ldots+ h_p ...
1
vote
0answers
23 views

Jacobian matrix in neural network

How do you calculate the Jacobian matrix using the results (weights and biases) of a neural network after training? I am working in MATLAB, if anyone has any code suggestions, that would be helpful as ...
0
votes
0answers
52 views

In soft-margin SVM, is it guaranteed that some points will lie on the margin?

In soft-margin SVM, once we solve the dual-form optimization problem (using quadratic programming, which is guaranteed to converge on a global optimum because the problem is convex), we get a vector ...
1
vote
0answers
9 views

Adding exogenous input to data (to expand ARMAX)

I am facing the following problems: 1) I am trying to add an exogenous input to an existing ARMAX model. I already identified a good fitting model with small MSE for my system. ...
0
votes
0answers
60 views

lowess: R (& python-statsmodels) vs MATLAB (& biopython)

There seems to be two different interpretations of what LOWESS really means: one from R (also used by python-statsmodels), and one from MATLAB (also used by biopython), see comparison below. Could ...
0
votes
0answers
13 views

Trouble with horner function in MATLAB [closed]

I have the following homework question: Apply linear least squares with the two models S1(A, B, C) = Ax^2 + Bx + C and S2(A, B, C, D) = Ax^3 + Bx^2 + Cx + D to the data set (0, 4), (1, −1), (2, ...
0
votes
1answer
32 views

What does the matlab function anova(mdl) do?

My data have one response and several predictors. These predictors are continous, not categorical. After regression, I wish to decompose the total ss on each predictor. With regard to this, I have ...
0
votes
0answers
9 views

How to deal with clustered features in classification

Imagine there are three classes of data, labeled A,B and C. I have separated the train set ...
0
votes
1answer
57 views

goodness of fit gamma distribution matlab

I have a set of observations obs. If I plot the histogram of the observation I see that they could come from a gamma distribution ...
0
votes
1answer
61 views

Multilinear Model with fixed intercept

I would like to fit the following model Y (t) = m (t) + b * t + g * C (t) + N (t) with m (t) to be the long term mean monthly values (remove seasonal component), b ...
1
vote
2answers
100 views

Problem on time-series

I am dealing with event data (recorded over a month) which gives out a binary response from a sensor when a door opens or closes - the time is noted at every instant and can also be represented in ...
0
votes
1answer
43 views

Have difficulty understanding Matlab's Ridge regression

I am confused by Matlab's documentation of Ridge regression at http://www.mathworks.com/help/stats/ridge-regression.html and couldn't figure it out by myself. On that page, the Introduction to Ridge ...
0
votes
1answer
47 views

How we can add new data in training time of neural network without stopping it in MATLAB?

I have a binary classification problem. Now I'm using patternnet in MATLAB R2014b to design a neural network for this problem. ...
1
vote
2answers
168 views

Kalman filter, Multivariate gaussian log-likelihood, Newton finite difference

For parameter estimation using Kalman filter technique I have obtained the negative Log-likelihood of mutivariate gaussian. My problem is how to obtain the gradient and hessian from this ...
1
vote
0answers
26 views

Significant difference within line set and between two sets of lines

For my research a person has walked on a treadmill which contains two pressure plates: One below the left foot, one below the right. I would like to compare the force in the z (downwards) direction ...
0
votes
0answers
90 views

Incremental SVD Recommendation System

I have the following Octave/Matlab code to compute an SVD-like matrix-decomposition: ...
0
votes
0answers
49 views

Using reliefF in matlab

I was checking relieff command in Matlab which estimates the Importance of attributes (predictors) using ReliefF algorithm As I am not familiar with the ...
0
votes
2answers
64 views

p-value test for comparing classifiers

I have to use p-value test to compare two classifiers. I am getting the error vectors of 2 hypothesis and I am using their difference as an input in ttest function of MATLAB ...
0
votes
0answers
75 views

How to implement a simple Bayesian Network for Time Series Data?

I'm a computer science grad student, with not much knowledge in Bayesian statistics, so I'm seeking for guidance for the simplest start. I have 10 variables, like demand, price etc. and I want to ...
0
votes
0answers
25 views

meanZero error when trying to use GPML gp function to perform regression to predict y

I've trying to learn how to use Gaussian Process for Machine learning (GPML)to do some prediction stuff. My goal is to get the returned output ...
1
vote
1answer
61 views

Calculation of Higher-Order Cross-moments

How can I calculate standardized central cross-moments for 2 time-series? The 4th-order standardized central moment, kurtosis, is; ...