instruction stringlengths 9 38.7k |
|---|
I have a problem to derive
$$p(s\mid \phi c_1c_2...c_mI_B) \to A \exp\left[\frac{-c(s-\hat{s})^2}{2\hat{s}^2}\right]\tag{6.151} \quad \text{where} \quad \hat{s} = \frac{c}{m\phi}$$
by following what is said in Jaynes' Probability Theory, 6.151
For example, expanding the logarithm of $$p(s\mid\phi c_1...c_mI_B) = \frac... |
Using forecast function in Forecast package, I am trying to get mean and prediction interval for forecast period (h = 8). But I could not understand why prediction interval are not symmetric across mean value at each forecast period. below is code which I am running.
fit1 <- tbats(trainTS)
pred1 <- forecast(fit1,h = 8... |
VGG16 is a Convolutional Neural Network architecture, presented in the paper Very Deep Convolutional Networks for Large-Scale Image Recognition (ILSVRC-2014 conference presentation here). As explained in the paper,
The width of convolutional layers (the number of channels) is rather small, starting from 64 in the fir... |
I am trying to get a low level understanding of how different machine learning algorithms work and how effective they are.
I understand the basics of random forests: How to build a decision tree by from a subset of features and training set by maximize the information value of each node split. And use many very imperfe... |
maybe this question will sound a bit as a newbie one but I'd like to have some clarification.
I'm using a VGG16-like convnet, pre-trained with VGG16 weights and edited top layers to work with my classification problem; specifically I removed the three fully connected layers and replaced them with flatten --> fully conn... |
In one of the Lectures taken at Wroclaw University of Technology, the instructor defines machine learning in three steps: -
1) Defines a space of all possible models
2) Learns the parameters and structure of models from data
3) make predictions and decisions
In my understanding,each set of values for the parameters wo... |
In this precise moment of this lecture:
$(X_1, X_2)$ are the log returns of companies $X_1$ and $X_2,$ respectively. Then "we create an identically distributed copy"...
$$(X_1, X_2) \underset{id}{=} (X_1', X_2')$$
to define Kendall's tau as
$$\tau (X_1, X_2) = \Pr \left((X_1 - X_1') (X_2 - X_2') > 0\right) - \Pr \left... |
What is the name of "bar code" like visualization for true/false data visualization?
Is possible to create in d3.js?
Example:
EDIT explanation
I have different elements that can have diffent words like a tags.
The words that an element can have, is 1 or all by a list of 120 differents words.
so, for each element i cr... |
I'm trying to make a GLM with binomial distribution to evaluate the effect of the diameter at breast height and the occupation of tree termites in species of tree.
I'm using the following model:
model <- glm(ocupation ~ dap * specie, data = termites, family = binomial(link = logit))
My response variable is the occup... |
I was following this python guide and trying to emulate it in R: https://machinelearningmastery.com/evaluate-performance-deep-learning-models-keras/
there is this function called stratifiedKFold in Python which I found its equivalent to createFolds in R. I have two questions:
The documentation that the first input, th... |
Im struggling to understand the relationsship of the conditional expectation function and the residuals. Im readings mostly harmless econometrics, and in theorem 3.1.1 (i) they prove that E (e I X) is 0, see here: http://econ.lse.ac.uk/staff/spischke/mhe/ex_ch3.pdf
However, later in the book they claim this is only tru... |
Background
I have a fairly small image set (about 300 images) and I need to detect rectangular plates present in these images. Each of the images are annotated, but some examples are clearer than others due to lighting conditions (after pre-processing). The articles which I've read on supervised learning only go so far... |
I calculated the theoretical mode for X ~ Expo(lambda) and got it as 0. However, when I simulated the scenario in R, I am getting some values. My code is shown below:
sample_mode <- function(x) {
t <- table(x)
m <- max(t)
as.numeric(names(t[t==m]))
}
simfunc <-function(){
x <- rexp(10000,2)
median <- median(x... |
Stacking is commonly used for training autoencoders. Composing several PCA transformations doesn't make sense, just like adding more layers with linear activations doesn't make sense for neural networks.
What about nonlinear generalizations of PCA? Did someone try to stack Sparse PCA, Robust PCA, or some other variant?... |
In a simple experiment with the normal distribution in R I ran 500 iterations of a simulated normal distribution with N=100 each. For each iteration from the 500 iterations, I calculated both the mean and the trimmed mean with 20% trim (from each side), resulting in 500 values for each.
Then, I compared the values of ... |
I'm learning about ensemble method (aka bootstrapping?). Specifically I'm using the statisticalModeling package but I'm not sure that matters. Here is some code:
library(statisticalModeling)
lm_mtcars <- lm(
mpg ~ cyl + hp,
data = mtcars
)
If I look at summary(lm_mtcars) I see a residual standard error of 3.17.
I... |
I am trying to fit a poisson GLM to count data.
Where the count $N_r$ for time $t_r$ is assumed to follow $\mathrm{ Poisson} (\lambda (t_r - t_0)^{-\alpha} e^{-\beta t_r})$.
Here $r$ is discrete and we observe $N_r$ and $t_r$ for $r$ from 1 to 30. The parameters that I want to fit are $\lambda, \alpha, \beta, t_0 $... |
I am trying to forecast a time series using auto. arima. My command is,
auto.arima(X, stationary = F, ic = "aic", stepwise = T, trace = T, test = "adf", allowdrift = F, allowmean = T, lambda = BoxCox.lambda(prd.xts, method = "loglik"), biasadj = T);
My original time series has 36 observations (monthly for 3 years). Wh... |
I want to find the nearest neighbor of the output compared to the training set based on this framework: https://github.com/carpedm20/DCGAN-tensorflow
(I asked already generally in this post: Generative Adversarial Network: How to find the most similar image to the output within the training samples? with the answer:
"T... |
I was reading up on the dual formulation of SVMs and have some questions to ask. https://github.com/epfml/ML_course/blob/master/lectures/07/lecture07a_svm.pdf
1) Why is it easy to optimize via coordinate ascent ? Is it because $\alpha$ is bounded between [0,1] ? If it is not because of its range of [0,1], then what ab... |
The tests I am asking about are from this paper: http://www.nber.org/papers/w3349.pdf
I am running periodogram-based tests to see if I can test for whiteness of a data set.
I generate white noise in R using:
library(varbvs)
rand <- randn(1000,1)
Then I compute the cumulative periodogram and sum the squared ... |
I have written an ANN algorithm. And after several iterations my weights grow largely and there's this error which says the value of them is overflowing and therefore the outputs are NaNs. Does it make sense to scale weights for each layer to avoid them from growing very large by dividing them by the largest weight?!
|
I have a data set representing a random vector $\mathbf{X}=(X_1,\ldots, X_p)'$.
Define $Z=\alpha' X $, where $\alpha \in \mathbb{R}^p$ and $\alpha'\mathbf{1}_p =1$.
I would like to find the $\alpha$ which maximises the likelihood of $Z$ falling in a given interval $(a,b)$, that is:
$$
\max_\alpha\; \mathbb{P}\left[\a... |
I have a panel data in which I observe 1500 companies and many individuals work for those companies for multiple periods. I have explanatory variables at both individual (e.g. race, age, education) and company level (e.g. company age, R&D investment, spending on advertising, industry). So there are different types of ... |
Let $\Phi = \begin{bmatrix}
1 & \varphi_1(x_1) & \varphi_2(x_1) & \dots & \varphi_{M-1}(x_1) \\
1 & \varphi_1(x_2) & \varphi_2(x_2) & \dots & \varphi_{M-1}(x_2) \\
\vdots \\
1 & \varphi_1(x_N) & \varphi_2(x_N) & \dots & \varphi_{M-1}(x_N)
\end{bmatrix}=\begin{bmatrix}\phi(x_1)^T\\
\vdo... |
The question I'm looking at involves evaluating:
$$ E[\frac{(n-1)}{(n-1+X_n)}] $$ for n >= 2
Xn is a random variable with a negative binomial distribution, equivalent to Binomial(p, -n).
How would I go about evaluating this expectation? I've never dealt with taking the expectation of a function which used the parameter... |
In each batch there are 8000 sample points, and I apply discrete Fourier transform on them. The original samples are real valued, so only the half of the result is needed. The end result is 4000 complex numbers.
I would like to build an autoencoder (with convolution and deconvolution), which can find the common feature... |
Observation [1]
Word2vec is pretty good at comparing "subjects", e.g.:
$$\langle dog, pup \rangle \simeq 0.81$$
$$\langle pants, trousers \rangle \simeq 0.75$$
But it appears to be not great at encoding "relationships" in a way that preserves semantics, e.g.:
$$\langle spouse, wife \rangle \simeq 0.52$$
$$\langle emplo... |
i have to score my data fro scale 0 to 10 on the basis of the variable value for each year.
i.e data of GDP per capita growth rate ,if the value of GDP per capita growth for a specific year is 3.25 how can i transform this value into scoring 0 to 10.
|
I was looking for a different way to rank scores stats for basketball player,
let say player no. 1 have stats of 1/1 (one throw ,one success)
and player no. 2 have 9/10 (9 sucess out of 10 throws)
I want player no. 2 will be ranking higher.
All I can think of is define a threshold for number of throws and then rank ... |
I've searched quite a while for the answer and still have no clue how I would go about setting up this regression in R.
I have estimated a difference-in-difference treatment effect, simply y ~ treatment*after. I have panel data for 5 years pre-treatment and 5 years post-treatment. Now I additionally would like to estim... |
I have data from a content website where the primary goal is to have users spend more time reading content.
Here is a link to the data set (too large to paste) which can be downloaded and read into R as a csv.
eg_data <- read.csv("eg_data.csv", header = T, stringsAsFactors = F)
> glimpse(eg_data)
Observations: 35,326
V... |
I have a dataset of 250 lines and 11 columns. Each line contains data referring to a school. For each school I have its name and the number of applications, from 2012 to 2016, and I would like to predict the number of applications for 2017. I also have the neighborhood where each school is located, and the population o... |
My data set has 13 variables. The dependent variable is Boolean, and all the independent variables are either integer or numeric (i.e., continuous).
data.frame': 20000 obs. of 13 variables:
$ PassFlag : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 2 1 1
$ var1 : int 6 14 4 14 9 17 6 5 13 7 ...
$ var2 ... |
How is the backpropagation algorithm derived when thinking about the batch version? Or is it first derived for stochastic (one instance from dataset) and then the formulas are generalized?
I just don't understand how can one compute the derivative of the cost function with respect to the net input [in the batch version... |
I'm reading a paper Henzi et al. 2010. Infanticide and reproductive restraint in a polygynous social mammal. PNAS 107: 2130-2135 where they test the fit of a data to a Poisson distribution. However, I'm struggling to understand their fitting procedure and there is no mention of it in the Methods section.
The basic prob... |
Let $X$ be a discrete random variable which can take $K$ distinct values. Let $S$ be a random i.i.d. sample of $X$ containing $n$ values, $n \ll K$. What can be said about the relation between the entropy of true distribution of $X$ and the entropy of the empirical distribution calculated from sample $S$? Are there any... |
Let's say I have time series of $n$ (simulated) data from the GARCH(1,1) process: $$X_{t+1,n} = \sigma_{t+1,n}(...)*Z_{t+1,n}$$ where $Z_{t,n}$ is iid student t-distributed with $v$ degree of freedom.
I want to create a distributional forecast for $X_{t+1,n}$. When working with $Z$ normally distributed I simply let $X_... |
In order to fit multilevel model (HLM) in 3 level analysis can I select only one unit of analysis at level 2.
I mean to say that can i proceed in this way
(level 1)= students= 20 (From each school)
(level 2)= teacher = 01 (from each School)
(level 3)= schools= 50
or should it be better to exclude teacher from level 2 a... |
Hello I want to compare the slopes of the linear regression lines for the following distributions of sales figures over the years 2009 to 2017.
I want to compare the slopes of the regression lines - examine if they differ significantly -
Approach: I draw additional confidence intervals for each regression line. If t... |
I am working on a project which we have two groups of people; normal vs obese. I have a data set like the following sample:
Subject group time Cholesterol
1 normal 1 12
1 normal 2 14
1 normal 3 15
2 normal 1 16
2 normal 2 18
2 normal 3 19
3 ... |
I have a generator of random symbols (single act of generation produces exactly one symbol). I know all the symbols that could be generated and for each symbols I would like to estimate the probability of it to be generated (at single act of generation).
The number of observations (acts of generation) is significantly ... |
I am trying to implement bootstrap filter and I'm trying to understand it based on Bootstrap filter/ Particle filter algorithm(Understanding)
EDIT: Following is the example that I'm trying to solve:
Consider the stochastic volatility model
$$x_t | x_{t-1}\sim\mathcal{N}(x_t; \phi x_{t-1}, \sigma^2)$$
$$y_t | x_t\sim\ma... |
In one dimension it can be shown that the highest posterior density (HPD) interval is the shortest; I found a proof in Subjective and Objective Bayesian Statistics (Section 8.4) by S. James Press where a suitable Lagrangian is built and used to find the solution.
Does anyone know of a proof for the higher dimensional c... |
in these days I was thinking about the collinearity or multicollinearity problem in a linear regression model.
Let's suppose we have a model like this:
$Y_i=\beta_0+\beta_1X_1+\beta_2X_2+\beta_3X_3+\epsilon_i$
When we build the model we need to be worried about the predictors, in this case:$X_1,X_2,X_3$ and we hope tha... |
In regression, I thought if you added a predictor unrelated to the criterion, R2 would stay the same. However R2 increases non-trivially in the example below, even though the correlation between response and predictor3 is virtually 0. What's going on?
More generally, can someone tell me what happens to R2 and betas und... |
I am new to R and I have been struggling on this for a while. I have a set of 611 data points, and I am trying to estimate its parameters (using MLE) to see if the data comes from a gamma distribution. I would then like to eventually plug the parameters found into a gamma model to then generate a density plot.
So far,... |
I have a noisy signal which is linear and then exponential. I know the type (Gaussian additive noise) and degree (0.01) of noise. Part of the challenge is determining when the signal changed from linear to exponential. What is the best approach to denoise it?
I have tried to apply a Savitzky-Golay filter but the first ... |
In Bayesian linear regression having the objective
$$\min_w \underbrace{\sum_{i=1}^N (w^Tx_i - y_i)^2}_{\text{log-likelihood}} + \underbrace{\lambda ~ w^Tw}_{\text{log prior distribution}}$$
can be seen this as the maximization of the log posterior distribution. The log posterior distribution then falls apart into two... |
I am trying to run a zero-inflated Poisson regression. The data I have are number of West Nile Virus cases NoCases (dependent var), and my independent variables are AvgTemp, AvgPrecipitaion, Region (*Numbered 1-4). Over 60% of my dependent variable data are Zeros.
What I need to know, is when setting up this regression... |
The relation between PCA and KPCA seems somewhat confusing. Basically, the Kernel variant of PCA can be described as constructing the normalized kernel matrix of the data $n \times n$ (n is the number of samples), followed by eigendecomposition to extract the linear principal components. Then, KPCA can extract up to n ... |
Defining the sample mean as $\bar{x} = \frac{1}{N}\sum_{n=0}^{N-1}x_n$, and having $N$ realizations of a random variable $x$ with mean $\mu$ and variance $\sigma^2$
Defining $\bar{x}^2=\hat{\mu^2}$, I get that $Bias(\bar{x}^2) = E[\bar{x}^2] - \mu^2=E[\bar{x}]^2+Var(\bar{x}) - \mu^2 = \mu^2+ \frac{\sigma^2}{N} - \mu^2... |
I am reading the book Doing Bayesian Data Analysis by John K. Kruschke. In the chapter related to Gibbs sampling, the author suggests that we cannot understand the difference of two parameters by looking at their posterior distributions and that we should analyze the posterior of the parameters difference.
He also prov... |
One of my problems in one of my courses ask to sample a 20 dimensional vector of 0s and 1s, $\{0,1\}^{20},$ when they are distributed as
$$
\pi(x) = \exp\left\{-\beta \sum_{i=1}^{19} |x_{i+1}-x_i| \right\}
$$
I came across this question:
Gibbs sampling for Ising model
But I am still having trouble finding the condition... |
I have the following homework problem. Im confused as to what to do if the alternative hypothesis is an equality. I have never encountered something like this until this problem. Should i just take it as >0?
|
The backpropagation step of batch normalization computes the derivative of gamma (let's call it dgamma) and the derivative of beta (let's call it dbeta) among with dx, the actual gradient for the loss signal.
For those who don't remember, gamma was used to scale the normalized values and beta was used to shift them up... |
If I have a standard state-space model where all parameters are unknown (coefficients and covariance matrices for both the state equation and observation equation) and I want to estimate it with the kalman filter. Is it possible to estimate all the parameters at once? Is there a minimum number of observed variables tha... |
The domain I'm operating in is Healthcare. So I have a lot of variables like visits to the doctor, prescribed drugs etc. - each one has a time dimension (5-6 years) and a "measure" dimension like count, standard deviation, average. Basically I have a LOT of columns which typically look like the following (e.g. for visi... |
Suppose I have yearly nominal data -- sales in US$ at the end of december -- and monthly CPPI. Since I cannot attain the right distribution of sales accross the months of the year, deflating the variables could produce different results in comparison to monthly data. Is there any discussion on this topic that could len... |
Can you find a real-valued random variable $X$ that is almost surely rational but also such that, for any $a, b ∈ \mathbb{Q} \cap [0, 1]$ with $a < b$, $p(X ∈ [a, b]) = b - a$? If not, can you prove that no such $X$ exists?
|
i have following data
Pass Hours
0 0.5
0 0.75
0 1
0 1.25
0 1.5
0 1.75
1 1.75
0 2
1 2.25
0 2.5
1 2.75
0 3
1 3.25
0 3.5
1 4
1 4.25
1 4.5
1 4.75
1 5
1 5.5
and i want to test whether number of hours of studying can help me to predict passing in subject, i have estimated everyt... |
Suppose we have a population of patients. For each patient, we measure 1000 features and observe if they suffer from any of 10 diseases. We wish to determine which features, if any, are significant in predicting each disease.
Because of the multiple hypotheses (the 1000 features), we need to correct our $p$-values. ... |
Forgive me if this is a dumb question, but it is way outside of my area of expertise.
Suppose I have an algorithm that produces some sort of a fit function, but that fit is not expressed in closed form (e.g., computational models in biology or cognitive psychology). In other words, to find the optimal parameter, I hav... |
I am currently trying to do a Bayesian analysis of a data set from an experiment I conducted. The setup was something like this:
Five participants
Three tests, where each test is whether there is a distinguishable difference between two items
Each participant was given each test six times; whether they got it correct ... |
I hope this is the correct place to ask:
I am trying to learn linear regression. When I read about linear regression with R, and I found resample_partition function in modelr.
Here are my questions:
What is the benefit of partitioning in general? Whats the difference if I don't partition my data into training, validat... |
Linear model on yearly return calculated on Dow 30 companies
|
Let $f_n(x;\beta)$ be the $n$-dimensional linear regression model, i.e:
$$f_n(x,\beta)= x^T\beta,\ x, \beta\in \mathbb{R}^n$$
I have data $(y_i,x_i)$ but I just want to use $k < n$ features in order to reduce dimensionality but i don't know in advance which features to use so I want to use mcmc to decide for me. In ord... |
I am trying to understand some of the papers that present identity query mechanisms that satisfies differential privacy, for example the compressive mechanism which uses what they call a universal mechanism. What I mean by identity query is: given a dataset the mechanism which returns dataset back with some noise added... |
I am running a logistic regression based on a complex survey design. I want to know, for example, the probability of a black male from the 3rd income quintile going to jail vs. a white male from the same quintile going to jail, and I want to know if the difference in probabilities is statistically significant.
The prob... |
A joint probability distribution over D variables where each variable has K states, requires $ K^D $ parameters.
How does the number of parameters needed reduce if the variables follow first order Markov chain?
For instance, considering a distribution over $ D = 100 $ binary variables if $ P(X_1, ...,X_{100}) $ the nu... |
I'm (hoping to) follow along with an implementation of coordinate descent for multivariate lasso that's written up here. However, the author's notation loses me a bit. In particular, I'm unsure of what the angle bracket in the statement
$$\frac{1}{2n}⟨r_k - \beta_k x_k, r_k - \beta_kx_k ⟩ + \lambda ||\beta||_1$$
...mea... |
Let $X_1,X_2,...$ and $Y_1,Y_2,...$ be two sequences of random variables such that $\mathcal{L}(X_n)\xrightarrow{w}\mathcal{L}(X)$ and $|Y_n-X_n|\xrightarrow{w}0$ as $n\rightarrow\infty$ Show that $$\mathcal{L}(Y_n)\xrightarrow{w}\mathcal{L}(X)$$ as $n\rightarrow\infty$.
I have the next attempt:
I know that convergenc... |
I read information about variational autoencoder from this post: https://blog.keras.io/building-autoencoders-in-keras.html. To get reconstructed output, a value is sampled from Gaussian distribution in latent space, does anyone know why we need to use sampled data instead of the mean value itself to reconstruct the ou... |
I am trying to fit an EWMA to the first difference but I am unsure how to properly fit the EWMA and how to assess if one model is better than another. I am trying to use the EWMA described in the forecast package: https://training-course-material.com/training/R_-_Forecasting
The first difference occurs always at intege... |
I am making a Neural Network with data that has images as input and a 4 possible labels as output. I created a 3 Layer Network with 1 hidden layer. The output layer uses the Softmax Activation Function and the Hidden Layer was using Sigmoid. The network uses Adam Optimizer and Cross-entropy loss function.
This network ... |
I have a distribution of an iid sample given by $$Y_i \sim Exp(\lambda x_i), \quad i=1\dots n$$
I have an estimator $$\hat\lambda = \frac{n}{\sum_n x_i Y_i}$$ and I am trying to figure out how the book arrived to $\hat\lambda \sim N(\lambda,\frac{\lambda^2}{n})$
The only explanation is something scribbled on the side o... |
I have an existing data set that represents the products from an e-commerce website that can be categorized by the following (simplified) tree structure:
The root node represents all the products on the website, the intermediate nodes represent the product categories and the leaf nodes represent the actual products. F... |
The question is
Why PCA needs to consider perpendicular distance?
Why PCA needs to cater for maximal variance?
For Question (1), from this link:
It shows that OLS is to minimize the distance from the model and the dependent,e.g.,
while PCA is to minimize the perpendicular distance from the model and the PCA model li... |
A charity issues a large number of certificates each costing $£10$ and each being repayable one year after issue. Of these certificates, $1$% are randomly selected to receive a prize of £10 such that they are repaid as $£20$. The remaining $99$% are repaid at their face value of $£10$.
Consider a person who purchases $... |
This is a twist on the traditional problem of transforming between uniform discrete distributions of different sizes.
For this example, we can roll the die twice and get one of 36 possibilities. The usual solution says that the first 35 can be evenly distributed among the outputs 1..7, and the last one can be rejected,... |
The brute force Maximum A Posteriori estimation involves computation of posterior probability for all values of $\theta$ and then we choose the value of $\theta$ that maximizes $P(\theta | D)$. Right.
In this concept, why is it necessary to have uniform priors and noiseless data (as mentioned in one of the articles tha... |
A study was presented where the authors used multivariable logistic regression to assess association between a risk factor and an incident disease outcome. The association was statistically significant. However they knew they had unmeasured confounders.
From what I can gather, they created a simulated covariate with a... |
There is lots of attention on confidence bands for regression functions, but I
see not many for densities and even less for derivative of density. In particular, I would like to know some theory and
hopefully R code or at least start for an algorithm.
For example, consider the following simulated "data":
x <- rnorm(100... |
A study stated that it used forward selection to chose variables for a multivariable regression model (in this case logistic) to evaluate association between predictor and outcome. They started with theoretically plausible variables until they had a decent model, and then tested additional covariates by adding them to ... |
I have a question regarding classification in general. Let $f$ be a classifier, which outputs a set of probabilities given some data D. Normally, one would say: well, if $P(c|D) > 0.5$, we will assign a class 1, otherwise 0 (let this be a binary classification).
My question is, what if I find out, that if I classify t... |
Let $y\sim Bin(n,0.5)$ and $X|y\sim N_p(\mu_y,\Sigma_y)$, where $\mu_0,\mu_1\in\mathbb{R}^p$ and $\Sigma_0,\Sigma_1\in\mathbb{R}^{p\times p}$.
Knowing that $\bar{X}\sim N_p(\mu_x,\frac{1}{n}\Sigma_x)$, all I need is to find the unconditional distribution of X.
Starting with $E[X]$:
$$E[X]=E[E[X|y]]=E[X|y=0]P(y=0)+E[X|y... |
In a regression model my dependent variable is a count variable that can have negative numbers.
What econometric method can I use? Poisson regression and negative binomial only accept positive dependent variable
In particular, the dependent variable it's the difference in the number of managers of a company after and ... |
I am trying to fit a hypothesis to my data in order to predict the duration for a certain event.
My data is strictly categorical and I used one-hot encoding for all features.
After using one-hot encoding the dataset now has the dimensions 20.000x414.
First I tried linear regression with regular gradient descent. Howev... |
I'm trying to fit a glm to some data which are highly correlated (I can see this from the data). However, when I fit the glm it is giving a p-value of almost 1, which seems to indicate I'm not using the right test or have made a mistake. Does anyone know where I'm going wrong here?
I've provided some example data that... |
A decision tree (or random forest) tries to find a threshold that minimizes impurity, typically entropy or gini. This assumes the values are
totally ordered and
one decision has one threshold, as opposed to for example two thresholds where only the middle part belongs to one class, and the outside to another.
Obvious... |
I'm currently working on a project where I'm also the one who's labelling the data that im going to use for the model.
My model is a document-classification model where I'd classify if a document belongs to a certain category or not.
So the problem is that I made different models in different stages/times where I had... |
I would like to know whether it is possible to do multilevel modelling with variables that have different number of trials. To be more specific, let's say we have
x(a), y(a), x(b), y(b) variables. x(a) and y(a) have 100 trials, and x(b) and y(b) have 200 trials. So it's like having two different tasks that were solved... |
I am looking for a method of forecasting short time series. I need to make multiple such forecasts at parallel, so I need some simple method that scales to large data. My data looks like $n\times k+1$ (where $n$ is in thousands or more and $k$ is something between 3 and 10) matrix
$$
\begin{array}{ccccc}
x_{1,t-k} & x_... |
Last week our marketing team did an experiment on discount voucher for a specific product.
Participants were randomly assigned to experimental group and control group.
There are 4 types of voucher amounts tested (5% discount, 10% discount, 15% discount, and 20% discount).
One group received one email for 3 days, the ot... |
A very popular index to measure the stability of characteristics of a scorecard is defined by the following formula:
$$SI = \frac{1}{n} \sum \text{(actual in %)-(expected in %)} \cdot \log\left(\frac{\text{(actual in %)}}{\text{(expected in %)}}\right)$$
where actual describes the proportion of the characteristics in t... |
As it is commonly known, classic metric MDS (under Euclidean distance metric) is a linear dimension reduction method (equivalent to PCA), and it is also known to us that non-metric MDS is nonlinear, however, how about a metric MDS in which the distance metric is not defined as Euclidean (e.g., cosine distance, Manhatta... |
I am trying to design a study regarding Diabetes. I have patients with test results of some indicator about their situation - sugar levels, but not in the classic sense that you may know.
Every patient has slightly different behavior in this regard so I calculated a score which ranges from 0 to 1 that basically capture... |
to avoid negative forecasts, in this post it was mentioned to increase each value with a small amount.
With the following example I am running into trouble doing this. This is not a forecast running in the negative, but after increasing with a small amount I get some extreme peaks in january, march and august and I do... |
I'm using a neural network to do binary classification. My architecture is 500->128->128 followed by a sigmoid cross entropy output layer. Regardless of the number of hidden layers/neurons I use, the average precision over the validation stays fairly constant, at roughly 44%, even though the recall can vary between 5% ... |
I appreciate word2vec is used more to find the semantic similarities between words in a corpus, but here is my idea.
Train the word2vec model on a corpus
For each document in the corpus, find the Term Frequency (Tf) of each word (the same Tf in TfIDF)
Multiply the Tf of each word in a document by its corresponding wor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.