instruction stringlengths 9 38.7k |
|---|
So effectively I have two variables, language problems, and emotional problems, both of which independently cause an increase in a third variable, which is behaviour problems.
I hypothesized that high emotional problems would significantly moderate the relationship between language problems and behaviour problems.
How... |
I am creating an unrestricted VAR model with 9 variables and 12 lags (determined by LR, FPE and AIC, and is in line with theory). But the model still has some autocorrelation - the p-values of some of the lags are less than 0.05 and on the others are higher than 0.05.
I am afraid that adding more lags will lead to mod... |
I've created a grouped density plot that examines birthweight by race (White, Black, Other), as well as individual histograms. The graphs do not look remotely like normal, bell-shaped curves. However, the means and medians for each race are quite close, and the skews and kurtoses are all within 0.5 of 0.
I did not inc... |
I try to set up a probit model in R. At first I want to model the typical example of commuters deciding between driving by car or using the train instead. There are the following coefficients:
$\beta_1$ : 1, if train is used; 0, otherwise
$\beta_2$ : Travel time (min)
$\beta_3$ : Cost (Euro)
$\beta_4$ : Income - 0, if ... |
Let $X_1, X_2, X_3$ be exponential random variables with rates $\lambda_1, \lambda_2, \lambda_3$. We have the following
$$\Pr(X_1 < X_2 \mid \max(X_1, X_2, X_3) = X_3) = \frac{\lambda_1 + \lambda_3}{\lambda_1 + \lambda_2 + 2 \lambda_3}$$
Which I found by considering $f(1, 2, 3) = \Pr(X_1 < X_2 < X_3)$ and noticing that... |
Does implementing pca to the training set considered as learning and adds VC dimension to the whole model?
I am currently using support vector machines to classify my inputs into 2 groups and I found out that the number of support vectors is very high (I have read some other posts about this problem and am considering ... |
Say I have a set of data points in $\mathbb{R}^d$. At each time step, I add a point to the set, or remove one. I then fit a multivariate normal distribution to the points in the set, and compute the entropy of this distribution. I also run some other computations, which involve evaluating the density at various points.... |
If $X_1, . . ., X_n$ is a random sample with distribution $Geo(\theta)$. Find the limiting distribution for $Y_n=\sum_{i=1}^{n}X_i/n$
I know the idea is to solve for $lim_{n\to\infty}P(Y_n\le y)$ but end up with a 0 instead of a distribution. Any help will be appreciated.
|
I have read in several places that convolutional neural networks were biologically inspired. In what ways do CNNs mirror biology, and in what ways don't they? Is there a more biologically plausible computer vision architecture that succeeds in learning translation invariance?
|
I am trying to do variable selection using R glmnet Lasso.
The data set is n=400,000 x 129 variables.
Lasso selection choose 129 (all) variables even though Step-wise selection chose 107 variables from 129.
Is it possible to occur? Or my data (or usage) do not meet requirement to use glmnet Lasso?
Outliers are treate... |
In a character language model, text is seen as a stream of characters. Say we have a training text as a string s, with length len(s). For training a language model, I've seen people come up with the training sequences in several ways:
fix a sequence length, say n=5, and chop up the training text by
n to form a trainin... |
I am performing a survey. There will be one question where I will show an image and ask to identify something in that image. For different participant, the image will be altered in different ways.
As an example, suppose I have 4 methods for image alteration, 40 participants in the survey, so that 10 participants see on... |
Question: What are the advantages and disadvantages of using a Laplace likelihood in regression instead of a Gaussian likelihood?
Details: I know that if the unknown regression coefficients have a Gaussian prior and the likelihood function is also Gaussian, then the MAP estimate solution will be the same as Ridge regre... |
I have a set of 300 observations of known class and there are 20 classes in total.
I want to compare the performance of a random classifier with a weighted-random classifier at classifying the observations. The random classifier obviously allocates each observation to a random class whereas the weighted-random classifi... |
I'm curious about how gradients are back-propagated through a neural network using ResNet modules/skip connections. I've seen a couple of questions about ResNet (e.g. Neural network with skip-layer connections) but this one is asking specifically about back-propagation of gradients during training.
The basic architectu... |
I have a bunch of time varying data stored as arrays with 0 and 1 in them, like this:
[1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, ...]
[0, 0, 1, 0, 0, 1, 0, 0, 1, 1, ...]
[1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, ...]
I want to compare these using DWT and use that in a classifier. The problem is that th... |
So, first I have to start with simulating time series microarray data in R
fixed effect-4 time point,
random effect- array,
pid(single observation)
I have to add Gaussian noise and Poisson noise.
Could anyone suggest some codes in R, if it is possible.
|
So I am using an example random forest classifier found on a blog :
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
import numpy as np
import timeit
iris = load_iris()
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['is_train'] = np.random.uni... |
I am new in Statistics and Data Science.
I would like to use "academic" data for training and testing for overfitting.
However, I would like to get the classifier accuracy from "real-world" data and do hyperparameter optimization based on the score obtained with this data (instead of the usual grid search with cross v... |
suppose $E(y_i)=\theta(x_i+x_i^2)$. how can i calculate Least-squares estimation $\theta$ based on observations x:1,2,3 , y:4,8,14
|
I know there is same question in cross validated. But it is somewhat different.
Clustering of mixed type data with R
At there Q&A, as using daisy funtion(), we can use categorical data type in clustering.
But, I'm wondering that as sequence the nominal variable (for example, 1 is small apartment, 2 is middle-size apart... |
Suppose that we have vector $y_t = (z_t, x_t)'$ for $t = 1, 2, \dots, T$. Let $\Omega_t$ be the information set available at time $t$ and $z_t(h|\Omega_t)$ be optimal $h$-step predictor. $\Sigma_z(h|\Omega_t)$ denotes forecast MSE matrix.
We say that $x_t$ helps to predict $z_t$ (Granger Causality) if
$$\Sigma_z\left... |
I'm not a statistical expert but I guess that there's a known measure to calculate which group affects the global average.
Example: consider 3 groups:
A - avg 80 with 100 samples
B - avg 90 with 1 sample
C - avg 0 with 1 sample
The overall average would be: $(8000 + 90 + 0) / 102 = 79.3$
$A$ should be the most affecte... |
I am trying to get confidence intervals for the parameters $\sigma_j$ of the following model using lmer
$$
X_{i,j}=\mu_{i} + \varepsilon_{i,j} \cdot \sigma_j
$$
where the $\varepsilon_{i,j} \sim N(0,1)$ iid.
I found the following resource (see here) but unfortunately I am still at a loss with the notation. I did not ma... |
I read a paper which used the first difference estimator in an empirical analysis and while reading, some questions arose and that is why I would like to ask you for help.
At first the authors standardized all variables (so z-scores)
The next step was the explanation of the first difference operator they used $(Y_t-Y_{... |
I'm developing a JS library with the ability to create 'flexible' neural networks. Flexible meaning that they don't consist of layers, but merely of single neurons or neuron 'groups'.
I don't want to activate neurons layer by layer, as this does not give a lot of options for layer mutation/modification.
So I'm lookin... |
Recently, I have been looking at seq2seq models that have been used for translating from one language to another using recurrent neural networks (often with LSTM cells).
Those models can also be used to generate text, one character at a time. Based on its internal memory, which efficiently encodes the previous characte... |
Primer:
A simple coin game: You sequentially flip a coin in each trial that can either land heads or tails $(H,T)$. If you flip $T$ you are allowed to play on, if you flip $H$ you lose. Importantly, for each new round you are handed a coin with a (unknown) bias to either side.
Can we describe the probability of being... |
Background: I have an interesting little problem where I need some sort of metric to compare strings (or list of numbers of whatever), with the added caveat that the base/ground string (the thing which I am comparing against) is somewhat (but not fully) uncertain. And to be perfectly honest; both strings have some unce... |
Given four time series $W_i$, $X_i$, $Y_i$ and $Z_i$ for $i=1,2,3,...,T$ observations we define:
$$\bar W:= \frac{1}{T}\sum_{i=1}^T w_i, \quad \bar X:= \frac{1}{T}\sum_{i=1}^T x_i, \quad \bar Y:= \frac{1}{T}\sum_{i=1}^T y_i, \quad \bar Z:= \frac{1}{T}\sum_{i=1}^T z_i$$
$$\begin{array}{rcl} m_n^W &:= & \frac{1}{T} \su... |
Does anyone knows the highest and lowest values of the common machine translation metrics $BLEU_{1-4}$, $METEOR$, $ROUGE_{L}$, and $CIDEr$ and $CIDEr-D$?
I know that for BLEU is 1, correct? Does the same stands for all other metrics mentioned above?
Also, what about $CIDEr$ and $CIDEr-D$ metric? What is the maximum va... |
Rob J. Hyndman once wrote in "Why I don't like statistical tests" (emphasis is mine):
In forecasting, the only place in which I find testing useful is in determining the order of integration of a time series; i.e., choosing d in an ARIMA(p,d,q) model. If I could come up with some way of doing this effectively without ... |
Here is a mock dataset that aims to answer a question on whether subjects with increasing value between trip (from v0 to v2, 3 visits) will have significant shorter/longer survival time (time). The mock dataset is shown below (can be reproduced in R):
subj = rep(1:50, each=3)
trip = rep(c("v0", "v1", "v2"), 50)
value =... |
Our data consists of 100 observations (people) of 5 variables. One of the variables is the political party each observation has voted for (parties A, B, C etc.)
As an alternative to party names/assigned letters can be a numerical value based on how that party scored on a 100 point political scale.
For example,
a vo... |
I am running a binary logistic regression to estimate the probability for frost occurrences of a frost event given a set of explanatory variables. I intent to carry an accuracy assessment and therefore have divided my data into two proportions. 75% of it for training the model, and 25% for testing it. The thing is, eve... |
I would like to perform $K$-fold cross-validation on a dataset to test generalization of a model.
For about the same amount of computational effort, I could perform one full cross validation with say $K = 20$, or two cross-validations with $K = 10$ but playing around with completely different partitioning schemes for t... |
I've implemented a MLP NN and I would like to get a clarification on a question where I haven't been able to find answer in books.
I've used couple of different normalisation techniques for my inputs and trained the network with all of them. Surprisingly, when I used minmax scaling which ranges the inputs between 0 and... |
I am trying to tune alpha and lambda parameters for an elastic net based on the glmnet package. I found some sources, which propose different options for that purpose. According to this instruction I did an optimization based on the caret package. According to this thread I optimized the parameters manually. Both ways ... |
Having a multinomial logit model $U_{ij}=x'_{i}\theta_{j} + \epsilon_{ij}$ for 3 alternatives, I checked the efficiency of the estimators of this model through 1000 Monte-Carlo iterations, and compared it with the same procedure, but only for simple logit model. Those estimators from MNL are obviously more efficient.
H... |
I've made a survey where the users answer what their occupation is and what their hobbies are.
The list of job fields are the following:
1. System developer
2. Transport
3. Paramedic
4. Agriculture
5. Educaiton
6. Restaurants
7. Banks
Hobbies:
1. Computer games
2. Sport
3. Theatres/Movies
4. Dancing
5. Going... |
I have a dataset divided in 2 class(lets call x1,x2) but I don't know their mean and covariance.
For each class I looked their graph and made a guess about their sub-classes, then run an EM(Expectation-Maximization) algorithm to them one by one to find these inner classes mean and covairance. So now i have something l... |
I am investigating conditional convergence across Indian states using panel data. I include the state name, year, SDP per capita, and a number of conditioning variables such as Public Expenditure, Literacy, Rural Banks per Capita. I hypothesize that I will find weak evidence of conditional convergence when controllin... |
To further explore whether they are some relationship between missing values of observed predictors, a new dataset has created by replacing missing values with 1 while non-missing with 0.
cor(newDataSet)
AST ALT CD4 marriage_f
AST 1.00000000 0.77589893 0.22670360 0.07317342
ALT ... |
Is there a way to include seasonal dummies when doing the augmented Dickey-Fuller test in R? I have downloaded the "uroot" package but I can only include lags and not seasonal dummies. It seems that the old "uroot" package could do this but the adf test was removed from the "uroot" package for some reason.
|
I am using a X and Y data no standarize ($X_{196\times 20}$ and $Y_{196\times 1}$) and I get diferente coefficientes when I use the following formula:
a<-lm.ridge(Y~X, lambda = 0)
b<-lm(Y~X)
as.matrix(b$coefficients)[-1]-as.matrix(a$coef)
why?
When lambda = 0 ridge regression should be the same as OLS.
the lm.ridge fo... |
I would know which is the best way to plot in 2D the variance of an 8-dimensional variable.
I have tried to do an average (for each vector) of each one of the 8 vector's values, therefore I have performed an 8 to 1 reduction, but I'm not sure whether this kind of procedure is correct.
|
I want to ask a question about the Monte Carlo error of a particle filter.
Assume we have information of our of the process of our true states, $x_t \forall t$ and hence, we generate our data $y_t$. (Once we obtain $y_t$ we keep it fixed.)
Now, I am running a generic particle filter (using the prior proposal) with resa... |
What is the difference between quantile normalization and Rank-based inverse normal transformation?
|
is tbats method the best model to use for my example ? for a weekly seasonality ? i want the predicted data to be like the initial data but that's not the result obtained so here's my data and the final results and the commands ececuted too
data
this is the final result
and this is the code used :
data.raw=read.csv(f... |
I have a series of data in which each value $(k_1, k_2, \dots, k_j)$ is an average of individual measurements $(x_1, x_2, \dots, x_i)$; the $k_j$ values are subdivided in different clusters. I am describing the dispersion of the data within each cluster by a median statistics based on the $k_j$ values.
Should I also a... |
I trained a simple classifier to detect whether or not an image contains a lane line.
model = Sequential()
model.add(Reshape((image_size[1], image_size[0], 3), input_shape=input_shape))
model.add(Convolution2D(32, 3, 3,
border_mode='valid'))
model.add(Activation('relu'))
model.add(Convolution2... |
Right now, I want to figure out the covariance of a stochastic integral and a Riemann integral in the following form:
$$\mathbb{E}\left(\int_{0}^{t}\exp[B(t)-B(s)]ds \cdot \int_{0}^{t}\exp[B(t)-B(s)]dW(s)\right)\,,$$
where $B(\cdot)$ and $W(\cdot)$ are independent Brownian motions, or $d\langle B, W \rangle_t = \gamma ... |
When we do classification and regression, we usually set testing and training sets to help us build and improve models.
However, when we do clustering do we also need to set testing and training sets?
Why?
|
Problem Setup
I have data points (images) of high dimension (4096), which I'm trying to visualize in 2D. To this end, I'm using t-sne in a manner similar to the following example code by Karpathy.
The scikit-learn documentation recommends using PCA to first lower the dimension of the data:
It is highly recommended to... |
I want to predict sales with lm and machine learning so I did this:
library("caret")
set.seed(1)
in_train <- createDataPartition(open_store$Sales, p = 0.75, list = FALSE)
training <- open_store[in_train,]
testing <- open_store[-in_train,]
total_fit <- lm(Sales ~ DayOfWeek + Promo + SchoolHoliday + StateHoliday + Mont... |
When running a linear regression, standard errors may need to be adjusted for clustering. One way to do so is to multiply the "conventional" variance estimate by the Moulton factor, defined for equicorrelated regressors as $1 + [\frac{V(n_g)}{\overline{n}}+\overline{n} -1]*\rho_e$, where $\overline{n}$ represents the a... |
Imagine an experiment where 15 participants are presented with pictures. Each picture is presented 8 times (within-subject design). We want to evaluate the effect of picture repetition (independent variable; 8 levels: 1st repetition, 2nd repetition ... 8th repetition) on reaction time (RT), and on the amplitude (in mic... |
So even the combined efforts of my professor, my book and the internet have not been able to make me understand the concept of Importance Sampling.
I know that it is a way to help with estimating the probability of the occurance of very rare events, however, I have no idea how it works.
For instance, let's assume I sta... |
I would like to estimate a quantity $x$ using a given method (let's call it method $b$) and present it in the form $x \pm u$. Method $b$ is compared to a reference method $a$ by collecting measurements at multiple levels. Consequently, Bland–Altman method is used to construct the limits of agreement between methods $b$... |
In exercise 1.8 of Bishop's PRML, he asks to differentiate both sides of the normalization condition of the Gaussian as given by:
$$
\int^{\infty}_{-\infty} \mathcal{N}(x|\mu, \sigma^2) dx = 1
$$
with respect to $\sigma^2$ in order to demonstrate that the Gaussian satisfies the condition:
$$
\mathbb{E}[x^2] = \int^{\in... |
I want to see if two distributions I have are significantly different or not. They have long tails but their log-transforms are close to being normal. The number of samples is usually large, anything from a few thousands to hundreds of thousands. Therefore Student's t-test is not appropriate to use.
The only tests I k... |
I have this interesting data where I would like to estimate possibly a parameter of the difference (between $A+B$ and $A+C$, inference using both) that would allow me to infer the development of $A$ (whether there is a propensity to decrease or increase).
Any hint as to how to approach it included type of modeling/esti... |
I am new to forecasting. Occasionally, I have to face the following problem. I have data set A. Each element in this set has n features and I need to build classification model using this data set (assume k - classification categories).
Building model on the whole data set occasionally yields poor results, so I am rout... |
The standard fixed effects model (in econometrics, mostly) is
$$
y = \mathbf{X\beta} + \mathbf{D\alpha} + \epsilon
$$
where $\mathbf{D}$ is a set of factors, potentially with thousands of levels. This is typical in longitudinal data -- $\mathbf{D}$ would be a matrix of dummies representing e.g. individuals.
When th... |
For a certain document multi-class classification problem, I am experimenting with training an SVM in logistic regression mode (using liblinear). While the resulting classifier has a proven accurate, the log loss rate has proven to be too high (the probabilities between classes seemed not well calibrated).
To improve t... |
I am attempting to better understand how to use simulation techniques when working with linear regression models. For context, if I have a model that, say, predicts the margin of victory between two opponents, how can I simulate the contest. While the regression model using predict() in R give me the fitted value, I un... |
I have data for student test scores taken over many years as well as demographic and screening data (Emohealth, memory, and the dependent variable MathScore changes for each year for each student). When I construct a longitudinal model in R, I'm not sure where to put certain variables.
I've built two models:
fit <- lm... |
Suppose we consider the following $2^4$ factorial design with factors A, B, C and D in the usual order.
$Block1 - (0,0,0,0),(0,1,0,1),(1,0,1,0),(1,1,1,1),(1,1,0,1),(0,0,1,0).$
$Block2 - (0,0,1,1),(0,1,1,0),(1,0,0,1),(1,1,0,0),(1,1,1,0),(0,0,0,1).$
$Block3 - (0,1,0,0),(0,1,1,1),(1,0,0,0),(1,0,1,1).$
Can anyone provide ... |
I am working on some predictive modeling project these days: trying to learn a model and make real-time predictions based on the model I learned offline.
I started using ridge regression recently, because I read that regularization can help to reduce the effect of multicollinearity.
However, I read this blog today. I ... |
Do EngleGranger residuals need to be normally distributed?
|
If $X(t)$ is a Gaussian AR(1) process with Variance=1 and $\alpha=1/2$ and $Y(t)=X^2(t)$, is Y(t) also stationary?
|
For example, we have $VAR(2)$:
$Y_t := \begin{pmatrix}GNP_i \\M2_i \\ IR_i \\ \end{pmatrix}\\ = \begin{pmatrix}2\\1\\0\\ \end{pmatrix}\ + \begin{pmatrix} 0.7 & 0.1 & 0 \\0 & 0.4 & 0.1\\ 0.9 & 0 & 0.8\\ \end{pmatrix} *\begin{pmatrix} GNP_{i-1} \\ M2_{i-1} \\IR_{i-1}\\ \end{pmatrix} + \begin{pmatrix} -0.2 & 0 & 0 \\ 0... |
Question: Best way to derive an ellipse formula when given bunch of points (say 60 points which when connected draws an ellipse)?
Background: Using R Momocs library function conf_ell which returns confidence ellipse coordinates. Would be nice to abstract those points into a formula.
You can see my ellipse points in the... |
When I have a design matrix $$X =
\begin{bmatrix}
1 & x_{11} & \ldots & x_{1k}\\
1 & x_{21} & \ldots & x_{2k}\\
\vdots & \vdots & \ddots & \vdots\\
1 & x_{n1} &\ldots & x_{nk}
\end{bmatrix}
$$
how can I show that subtracting the mean from columns $2$ to $k$ does not change the hat matrix given by $$H = X (X^T ... |
I'm attempting to model some data using regression analysis that has different upper limits for different observations, i.e. there is no universal limit for the entire data set. However I do have observations that have been censored, but the amount of censoring will sometimes change between observations? As I understan... |
I searched on topics of the bias and variance trade-off and got back lots of questions with different levels of response. The information is scattering too much and unsystematic to answer my own question which stuck me.
So I open a new question here and would like to hackle how I generally run a machine learning modell... |
I'm trying to calculate Kd with the following R code but my model is clearly wrong (see image). How has nls() converged so poorly? How can I use it to find a better fit for my data? Why does lm() work so much better?
# log plot
plot(log10(binding_data$ligand_uM),binding_data$fraction_bound)
# 1.2 2.5 5.2 10.5 21... |
I am confused about the second formula below, I would like some intuition here.
Please correct me if any of my statements are false.
For the first formula :
It's like saying that by taking the SD of the means of all our samples we get the SEM. This SEM will show us how far away is our "mean of means" (mean of all our ... |
I don't understand , here $X$ is data like for ex. height in a class :
$X_1=186cm$
$X_2=186.9cm$
$X_3=188cm$
and so on ... or they are independent random vars like one var for height other for
weight and so on ?
The first step is confusing for me , please explain the following :
The variance of $T=(X_1+X_2+X_3 + ... |
I am looking to group items with different value and get the most optimized combination closest to a certain value. For example I have items such as the ones shown below, and I am looking to group them so that the total value is as close to "50" as possible (50 or above). What would a recommended algorithm i could use ... |
I am working on a fleet management software recently. Normally, the arrival of merchant request is a Poisson process. That is to say, on average we have a new merchant request every 10 minutes, but sometimes we could have 2 merchant requests coming within 10 minutes, sometimes only 0.
I am thinking about building an i... |
I recently performed conditional variance model specification on six different time series (USDGBP, USDJPY, USDCAD, USDRUB, USDAUD, USDEUR). The correct form ARMA have been specified for each of the six series before taking conditional variance tests. The results shown below are results for USDJPY and USDCAD USDJPY[ Th... |
Data has been gathered for a specific analytical test method to start SQC. The issue is that when the data is tested for normality, using Anderson Darling, the null hypothesis can not be rejected.
-I have attached a photo to provide more information about the data.
My question is, does this "non-Gaussian-nes" mean tha... |
For a bill to pass the U.S. House of Representatives, a simple majority of members have to vote yes. If every member votes this will be 218 of 435. If some members vote "present", their votes are not tallied, and a majority of the remaining votes need to be yes.
Say I have a probability assigned to the likelihood of ev... |
I have citizen science records of turtle sightings (alive/dead, and if dead what caused its death e.g. car/predator/etc), and the date they were spotted. What would be the most appropriate test to answer the following questions:
are turtles are being killed mostly at a particular time of year (or month, if it is easie... |
I am doing some multivariate regression. When I plot QQnorms to check my model assumptions (errors normally distributed), I get
Question: How do you interpret the above? Are the normality assumptions completely off? What's with those "breaks" near the ends of some of the plots? Is this caused by outliers?
|
We use the SE in order to tell, how far away are we to the true mean.
Why does this formula use the standard deviation of a sample to compute the mean of the sample means ? (with other words, true population mean)
Wouldn't it somehow be more intuitive it the formula for computing the mean of the sample means would have... |
Is there a sound theoretical reason why there's relatively little research on heterogeneous neural networks? By this I mean neural nets with non-homogeneous activation functions.
So far most of the papers I've read analyse neural networks with at most two types of activation function. One type for the hidden layers(ex... |
I have a dataset with a categorical outcome no/yes, 8 predictors, in 31 examples, and I'm trying to classify the examples using different algorithms in the caret package. There are 9 "no" and 22 "yes". The code I'm using is as follows:
## SVM
set.seed(101)
ctrl= trainControl(method= "LOOCV",sampling="up", classProbs = ... |
After performing Non-Negative Matrix Factorization (using R's rnmf() function), I'm left with W, H, and the fitted matrix (W%*%H).
The Frobenius norm (squared error) is calculated by squaring the difference between our original X and fitted matrix WH.
So, how can I use norm("matrix",type="f")to get my Frobenius norm? I... |
The task of subgradient descent naturally appears in cases of L1 regularization:
$$f(\vec{\theta}) = loss + \lambda\sum{|\theta|}$$
Here we use subderivatives to update current location in a parameter space during iterative optimization procedure. The question is what is the algorithm behavior when some of the $\theta$... |
I am reading page 5 in this document: http://epub.wu.ac.at/4077/1/Report125.pdf
It's about Dirichlet regression in a GLM-like setting. What I don't understand is
each observed $y_c$ (of which there are $n$) is assumed to be Dirichlet-distributed with some shape parameters $a_1,...,a_C$.
The author then writes $g(a_c... |
I am doing text classification but I am confused which Naive Bayes model I should use. What I understood by reading answers from couple of places that Gaussian Naive Bayes can be used if the attribute values are continuous, when attribute values are binary, binomial Naive Bayes can be used, for examples if we have word... |
I am running PCA on a dataset with dimensions 1460(n) * 307(p). Upon running PCA, I obtain the below plot of variance explained and the number of components. I am trying to estimate the number of PCs to select for my training dataset.
Based on the plot below, It appears that around 75% of the variance is explained/cap... |
Let's say I run an LDA model with 3 topics on 5 documents.
After the model is learned (with Gibbs sampling presumably), I have topic distribution for each document, shown as the following:
My question is, how do I retrieve document(s) that are "most similar to document-1" ?
In clustering algorithms such as K-means, e... |
Looking to train a linear regression model on PCA transformed data. While PCA helped reduced the # of predictors variables significantly from 307 to ~40 without compromising much of the variance, I am, however, losing interpretability of the variables. Now my variables are labeled as PC1,PC2...PCn.
The question is two... |
Why is the AUC not appropriate to use as an evaluation metric in cost sensitive learning?
I have read the book Applied Predictive Modeling written by Max Kuhn. As he wrote in the book,
The class probabilities cannot be generated for the model, at least in the available implementation. Therefore we cannot calculate an... |
The observed Fisher information is the variance of the score. The score is the gradient of the log-likelihood $\ell$ with respect to the parameter vector $\theta \in \mathbb R^n$.
What if the parameter vector were complex $\theta = x + yi$ for $x, y \in \mathbb R^n$?
Suppose the log-likelihood is smooth, and conside... |
Consider a probit regression model with Bernoulli likelihood. Assuming there are $K$ groups, we assume,
$$ \mathbb{E}[y_i|G_i = k] = \Phi(\theta_k)$$ where $\Phi(\cdot)$ is standard Gaussian CDF.
Now how can I calculate the likelihood function of $\theta_k$ assuming we observe the group $G_i$?
I am struggling to tra... |
So, if I model observation probability for a given hidden state according to a multivariate gaussian mixture model, then which parameters need to be initialized random to perform parameter re-estimation via a variation of Baum-Welch algorithm?
I know that the initial distributions $\pi(i)$ has to be initialized random... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.