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
9 views

Calculating the mutual information between two histograms

I've been set a sample exercise by my supervisor, and I'm totally lost as to where I should be heading. What I've been tasked with is to generate two histograms that approximate Gaussian PDFs. Then, ...
0
votes
0answers
13 views

Matlab: Help in learning EKF for dual estimation of time series

I have AR(1) model with data samples $N=500$ that is driven by a pseudo random binary sequence $x$. THe observation $y$ is corrupted with measurement noise $v$ of zero mean. The model is $y(t) = ...
2
votes
2answers
49 views

Newey-West standard errors in OLS

I am trying to compute robust coefficient estimates for OLS, using the hac() function in MATLAB (see description of function in MathWorks). In my case, I am ...
0
votes
2answers
39 views

Curve fitting of (x,y) coordinates

I have three (x,y) coordinates that I got from experimental data. The coordinates represent drug solubility at corresponding pH values as appears below: ...
0
votes
0answers
9 views

SOM dimension doubt [on hold]

i've been using a SOM clustering implementation in matlab which uses by default an square output map (2D), where the user choose the size. After some further reading, I've realized that the square ...
2
votes
1answer
30 views

Regression of an absolute value function

I have a series of data (21 points), that resemble a lot like an absolute value function (V-shape). I am trying to find the parameters which approximate my datapoints as best as possible with the help ...
0
votes
1answer
23 views

Partitioning for 10-fold cross validation using neural networks in MATLAB

I am working on an assignment which is set to recognize on of 6 basic human emotions based on facial expression data. The data set looks like this: input data: Nx136, where N is the total number of ...
0
votes
0answers
12 views

Mean Average Precision in Matlab with liblinear and vlfeat

I want to find the mean average precision (meanAP) from a classification problem. I am using liblinear for classification and I am trying to use vlfeat for the precision because it already includes a ...
0
votes
0answers
23 views

R equivalent to matrix row insertion in Matlab [migrated]

In Matlab, without any coding, I can create a matrix, open up its spreadsheet, and copy multiple columns of values from Excel and paste them into the spreadsheet. I can then right click this matrix ...
0
votes
1answer
41 views

Time series forecasting using Support Vector Machines

I have been trying to use Support Vector Machine method for time series forecasting. I have seen allot of research papers, but nobody shared the code or tool they have used for that. Got some ...
0
votes
0answers
10 views

Why do Matlab's TreeBagger and fitensemble with 'bag' and same parameters give different predictions

Matlab's Statistical Toolbox has two bagging tree algorithms implementation: Tree Bagger Fitensemble (see 'Bag' method) I am currently using (1) for a Regression problem. However, I would like to ...
0
votes
1answer
12 views

number of rules from a classification tree?

I have generated a classification tree for a dataset using classregtree method in matlab. Tree gives me rules explained by if and elseifs. For a tree, i want to calculate number of rule generated from ...
1
vote
0answers
28 views

Confidence Interval calculation for Power Density Estimation in MATLAB

First of all, I am new to these statistics stuff but very interested in the background. I try to understand the confidence interval calculation for a power spectral density estimate in MATLAB. For the ...
0
votes
0answers
3 views

Gesture Recognition with HMM and Matlab [migrated]

I'm trying to classify some gestures with Matlab, using k-means and Hidden Markov Model. As example, I trained 10 samples of 'circle' hand gesture, organized in three .csv files where each columns ...
0
votes
1answer
43 views

Choosing a good binary classifier to be trained by a small set of labeled data

I have a small set of labeled data (diagnosis in individual subjects): ~50 of "sick" observations ~100 of "healthy" observations In reality, only ~1% of the observations are expected to be ...
-2
votes
0answers
7 views

how to work with Jacobian more efficiently with real dataset in Matlab? [migrated]

The following code is very very slow with large dataset... anyone can tell me how to programme the following content more efficiently? the logic is: firstly, symbolize variables and parameters. ...
1
vote
0answers
24 views

Ordinal logistic regression model set-up for repeated measures

I have been looking for a non-parametric equivalent to a 3-way repeated measures ANOVA, and most of the sources I've read recommend using ordinal logistic regression. My ANOVA model had 3 ...
2
votes
1answer
54 views

MATLAB2014b `fitglme` causes error on intermediate results

((This post is a duplicate from Stack Exchange as there was no response there)) MATLAB R2014b's library function fitglme is acting up. It seems to be producing ...
0
votes
0answers
13 views

fisher test for periodic components

according to following site http://www.mathworks.com/help/signal/ug/significance-testing-for-periodic-component.html i have test following example ...
1
vote
2answers
70 views

Can I do a t-test to compare t-statistics?

I was trying to fit a 2-level "hierarchical model" all in one go, in MATLAB. But then realised it might be better to do the lower level first, then the higher level. Simply, I have 80 subjects, from ...
0
votes
1answer
23 views

Suspicious 3-way repeated measures ANOVA results

I'm getting weird results using the fitrm and ranova functions in Matlab. I've asked a similar question in the Matlab forums. The table below is part of the results for a 3-way repeated measures ...
1
vote
0answers
41 views

Laplace approximation for binomial distribution in matlab

i using bionrnd() function to generate a random vector and Laplace approximation formula to approximate the binomial distribution. but Laplace histogram dose not ...
1
vote
1answer
121 views

Using canonical correlation analysis (CCA) to find matches

I have a training dataset of images: X (Visual) and Y (Infrared). Each set has $300$ training examples. I extract feature ...
1
vote
1answer
27 views

Intrinsic dimensionality estimation using Laplacian Eigenmaps

I learnt that I can look at the eigenspectrum of the kernel matrices computed by nonlinear spectral techniques in order to estimate the intrinsic dimensionality of a data-set. I use drtoolbox (The ...
0
votes
0answers
5 views

least squares with seasonal component in matlab [migrated]

I was reading a paper which looked at investigating trends in monthly wind speed data for the past 20 years or so. The paper uses a number of different statistical approaches, which I am trying to ...
0
votes
0answers
16 views

K-Nearest Neighbour Classifier accuracy [migrated]

I followed an example of the MATLAB KNN classifier with 10 fold cross validation, I am lost at the stage of computing the model's performance, Please kindly look at my code below and advice on how i ...
0
votes
0answers
12 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 ...
4
votes
1answer
100 views

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
59 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
55 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
51 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
41 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
42 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
40 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
22 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
15 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
26 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
1answer
31 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
30 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
82 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
88 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
62 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
32 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
14 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
42 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
79 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
91 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
283 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 ...