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

Estimation of multivariate time-varying cross-sectional data

I want to estimate the following model for each variable $y_{ti}$: $$ y_{ti} =\alpha_t + \beta_t w_{ti} + \gamma_t u_{ti} + \delta_i x_{ti} + \phi_i z_{ti} + \varepsilon_{ti}, \quad \quad \text{for } ...
0
votes
0answers
20 views

How to compute dense depth map from DAISY Descriptors?

The paper, "DAISY: An Efficient Dense Descriptor Applied to Wide-Baseline Stereo" by Tola et al. , describes a fast local descriptor called DAISY which is used to estimate dense depth map from ...
2
votes
0answers
19 views

which classifier to choose for probability histogram-like features

I have a populations of 500 elements. Each element is represented by a 10 dimension feature vector which sum of element is equal to 1 (you can think about it as a histogram of probabilities). In ...
1
vote
1answer
41 views

Predicting time series using `arima` or `fitlm` in Matlab?

I have 6 sequences (time series); they all belong to the same variable. I divide each sequence in two parts having 80% and leaving the last 20% for validation. I am doing the analysis and modelling in ...
0
votes
1answer
17 views

In CNN, How we can decide number of kernels between input and hidden layer?

I have 32x32 input image and 5x5 convolution. So in the first hidden layer feature map size will be 28x28.in this link http://parse.ele.tue.nl/cluster/2/CNNArchitecture.jpg we can see in C1 no of ...
0
votes
0answers
15 views

Why accuracy is equal to auROC in all of my data sets? [on hold]

Hi i have 10 datasets and applied given code to calculate accuracy and auROC but results are exactly same (upto 5 di) on all datasets. function EVAL = PreRecSenSpeFmeasurFun(ACTUAL,PREDICTED) % This ...
0
votes
0answers
10 views

Solution for edge effect

I have made a prediction of a data set, as shown in the figure. But it can be seen that the edges are spiky which is undesirable. The solution is of course adding more data points, i.e adding more ...
0
votes
0answers
42 views

How to boost the performance of support vector machine?

I have 4 different data samples: Stage 1: [152 X 27578] Stage 2: [48 X 27578] Stage 3: [48 X 27578] Cancer: [63 X 27578] Each sample are the different stage of cancer in descending order. Here I ...
0
votes
1answer
26 views

Evaluating fitlm (linear model) in matlab on a separate test set

I've built a linear model with Matlab using fitlm to predict the next value in a series of doubles. Now I would like to test this model on a different dataset so I get accuracy, p-value etc. I've ...
0
votes
1answer
25 views

Comparing kmeans cluster

I have 150 images, 15 each of 10 different people. So basically I know which image should belong together, if clustered. These images are of 73 dimensions (feature-vector) and I clustered them into ...
0
votes
1answer
35 views

Predicting values from linear regression

I've got a data set consisting of olympic years and the winning times for the womens 100m. I can plot a line throught the data using matlab as such: ...
1
vote
0answers
27 views

What I can conclude from this graph Bayesian, Euclidean and mahalanobis classifier?

I have solved this problem: Generate a set of data of N = 1000 2-dimensional vectors that stem from three equiprobable classes. The three classes are modeled by Gaussian distribution with means $ ...
0
votes
0answers
16 views

How is the intercept calculated in a generalized linear mixed-effects model?

How is the intercept calculated in a generalized linear mixed-effects model? When there are no Random Effects included the intercept is the average of the reference group, but it is not clear to me ...
0
votes
0answers
13 views

Using Modified Z-score or Mahalanobis distance to detect outliers

I am working on a piece of MATLAB code that performs PCA and I would like to be able to detect points in the data that are outside the cluster, such as points with labels Part A1 and Part A7 in the ...
0
votes
2answers
51 views

Dimension reduction using PCA in Matlab

I have a $152 \times 27578$ matrix, $152$ samples and $27578$ features, and I used the PCA function for the dimension reduction in Matlab. ...
0
votes
0answers
44 views

Fit generalised extreme event distribution in MATLAB/R

I have a location-scale t-student distribution $X$ $$ f(x,\mu,\sigma,\nu) = \frac{1}{\sigma} \frac{\Gamma(\frac{\nu+1}{2})}{\sqrt{\pi\nu} \Gamma (\frac{\nu}{2})} \left( 1 + \frac{(x - ...
1
vote
0answers
22 views

Do I distort information stored in covariance matrix if I normalize the matrix to range of $[-1 , 1]$

I am using covariance matrix to maximize mutual information between samples that I selected and sample that I did not selected. The optimization algorithm that I use is sfo_greedy_lazy. It computes ...
0
votes
0answers
23 views

Ratio of Fourier Transform Gaussians (in Matlab)

this is more of a theoretical question as the implementation doesn't really matter. I'm experimenting in Matlab, and I was curious about something. I know that the division of Gaussian-distributed ...
0
votes
0answers
11 views

Matrix is singular warning, RCOND = NaN in the EM-step of GMM

In the EM step of GMM, I call a function gaussianND as: pdf(:, j) = gaussianND(unseen_data, mu(j, :), sigma{j}); which evaluates gaussian for all data points ...
0
votes
0answers
29 views

Is there a Matlab package for Path Analysis or Structural Equation Modeling (SEM)?

As far as I understand, Path Analysis is a way to check if there is a causal relationship between several variables. There is a software package for SPSS called AMOS that can be used for Path ...
3
votes
2answers
66 views

Cross validated penalized logistic regression - one standard deviation rule

I am new to this topic and would like to understand it better. I want to build a binary classifier based on penalized logistic regression. I have 10 features and 23 observations: 16 from class "0" and ...
1
vote
2answers
68 views

How to estimate real series from smoothed moving average?

Suppose I have an observed time series $y_t$, which I suspect has been smoothed out. It appears to be significant autocorrelation at lag 1 and 2, therefore I suppose that the observed series $y_t$ is ...
-1
votes
0answers
55 views

Different output from R and Matlab [duplicate]

How should I interpret this. I am doing Shapiro-Wilk test to test normality, Matlab and R doesn't provide me with the DIFFERENT result. Matlab tells me that the data is not normally distributed, ...
1
vote
0answers
38 views

Convert latex mathematics equations directly to Python/Matlab Code? [closed]

I am wondering if there is any technique to convert latex mathematics equations directly to code, like Python(numpy,scipy), Matlab? Thanks! I have this problem since I find I sometimes make mistakes ...
0
votes
0answers
22 views

Which t-test to use when different sized but dependent values are in question?

I have two sets of data. At the one hand manually known correct numbers for some index values such as: ...
1
vote
1answer
36 views

amplitude and phase from the Fourier transform equation

This is a snapshot from some text I'm currently reading which aims to describe how the amplitude and phase of a seasonal cycle can be determined: I think I understand the text but I'm unsure when ...
0
votes
0answers
20 views

Using t-test when one of the groups is only two cases?

I apply ttest2 function in MATLAB for the following data sets: x = 21 5 6 5 2 5 2 13 28 2 y= 2 5 For this comparison whether means of those sets are equal MATLAB ...
1
vote
0answers
34 views

Calculating the Deviance Information Criterion for a Hierarchical Regression Model

I'm not entirely sure how to phrase this question but maybe some background information might help. I am using MATLAB to perform hierarchical bayesian regressions and so I really need to understand ...
1
vote
1answer
46 views

What do fsolve in this machine learning task? [closed]

I am reading this book Building Machine Learning Systems with Python and can not understand what function "fsolve" do in eample. In example I have test data data and I built the model. My model is ...
0
votes
0answers
18 views

How to find out which data set is most evenly distributed based on frequency x-axis

I have several charts / data sets and would like to find out which data set is most evenly distributed based on frequency x-axis. How can I do this? is their a proper term for this? Example of ...
0
votes
1answer
13 views

Variance term in ARIMA time series errors model

I'm working with the regARIMA class in Matlab which generates an ARIMA time series error model. One of the parameters which is necessary when you specify the model is the "Variance" which is defined ...
1
vote
0answers
72 views

How to calculate confidence/prediction bands for Deming regression

Revised question: My fundamental question seems to be: "I have data with error both in y and x. How do I estimate a value of true x so that y evaluated at that x will be distinguished from y(0) say, ...
-2
votes
1answer
80 views

How should I interpret the results of corrplot (variable correlations plot)?

I am trying to look at correlation between different variables. I used MATLAB's corrplot function and got the attached results. The function's documentation ...
0
votes
0answers
42 views

MATLAB function TreeBagger() (Random Forest classification) and different number of variables

I am using MATLAB function TreeBagger() for Random Forest classification, for an assignment. It gives error when the number of variables of the Test data is different from the number of variables of ...
1
vote
1answer
76 views

Kernel density estimation bandwidth selection

I've just started using Kernel Density Estimation for my study, and encountered a problem. In KDE, we have to select a proper bandwidth $h$ according to the data. If we don't, it could lead wrong ...
0
votes
0answers
28 views

online and offline machine learning representation in MATLAB

what is the difference between offline and online learning considering that the program will be made with matlab .. and please check the following matlab code , does it fall into one of those two ...
1
vote
0answers
39 views

Why MSE of this MATLAB neural network is so high?

I'm using this code to train a neural netowrk in MATLAB: ...
0
votes
0answers
22 views

accuracy MLP and SVM (matlab)

I have a data set composed by 4 struct of features. Each struct contains 18 samples decribed by a 20X427 feature matrix. I've already done the PCA, so I reduced the feature dimension to 20. So know I ...
0
votes
0answers
16 views

Uplift Model in Matlab

I was wondering if anyone had an idea how to implement an uplift model in Matlab. I have data for marketing campaign a company I am studying ran. I would like to test the impact of the marketing ...
5
votes
2answers
87 views

How do H compare multiple runs of K-means?

I have results of best centroids for multiple (10) runs of k-means. How do I compare these weights to check if they are close to each other or different? My goal is to check weather I get to the ...
1
vote
0answers
28 views

How to calculate mahalanobis distance in SIMCA where different number of PCs are obtained for each class

I am working on a software that does SIMCA using mahalanobis distances with the following steps(excluding the classification of new objects for simplicity): Center each class individually Apply PCA ...
0
votes
0answers
11 views

Show in-phase out-phase transitions in a time series

I have the following time series (top figure), and I want to show that at certain periods, the two series is in-phase and at certain periods it is out-of-phase. I tried using corrgram to plot the ...
0
votes
2answers
34 views

How can I output random points under a Laplacian density function in Matlab? [closed]

E.g. given a Standard Laplacian distribution: g = @(x) 1/(2*1)*exp(-(abs(x-0))/1); % Std Laplacian distribution How can I produce ...
2
votes
1answer
144 views

How to use PCA in regression?

I'm currently reading in the Applied Predictive Modeling book about PCA for dimensionality reduction. I've read the following: If the predictive relationship between the predictors and response is ...
4
votes
0answers
50 views

How do i compare two Self Organizing Maps?

I have results (weights) for multiple runs of self organizing map. I am trying to compare these results to check if my algorithm gets to the same solution from different random initial weights. I have ...
3
votes
1answer
216 views

Why is ridge regression giving different results in Matlab and Python?

Why is the output from Matlab and Python vary for ridge regression? I use the ridge command in Matlab and scikit-learn in Python ...
1
vote
0answers
78 views

How to inverse loss function L(z) to normal standard distribution (z) [closed]

z is the standard normal distribution F(z) is the probability normal distribution L(z) is the standard loss function I can find these values using below code ...
0
votes
1answer
37 views

Which is the right way to apply PCA on different sized matrices

I am working on human age classification where I have four descriptors, namely GEI, FED, UC ...
0
votes
0answers
10 views

How classify output of a composite indicator using fuzzy concepts?

Suppose that we created a composite indicator to compare a company branches performance in a country. This company has 5 current levels for performance. This is histogram of composite indicator output ...
2
votes
2answers
153 views

Random Forests for predictor importance (Matlab)

I'm working with a dataset of approx 150,000 observations and 50 features, using SVM for the final model. To trim down the feature count, I decided to look into using RF so SVM optimization doesn't ...