instruction
stringlengths
9
38.7k
I computed a random forest model after determining the optimized parameters of ntree and mtry, than I evaluated its performance in the train and on the test. I obtained the following results: On the train: Sensibility: 78% Sensitivity: 81% Accuracy : 80% On the test set: Sensibility: 98% Sensitivity:...
I'm interested in correlation and dependence between the components of the convolution of two vectors taken from a zero-mean multivariate normal. Marginals are independent, each one with same variance. Let's start from the simplest case: suppose we have two vectors from a bivariate normal distribution: $X,Y \sim N\big...
Bayesian statisticians maintain that "Bayesian Statistics can estimate parameters that are very challenging to estimate through frequentist methods". Does the following quote taken from this SAS documentation says that same thing? It provides inferences that are conditional on the data and are exact, without relian...
In MLE for continuous case, my course notes define the likelihood function to be: $$ L(\theta) = L(\theta;y) = \prod_{i=1}^n f(y_i;\theta) $$ Where $f$ is the joint pdf of $y_i$ given $\theta$. I thought normally it doesn't make sense to evaluate a pdf at a point (eg. $f(X=2) = 0$ for some continuous rv X), and that it...
i am using the caret package to train my gam model. my code looks like this gam.train<- train(price ~ . , data=data, method = "gam", family = Gamma(link = log)) and my output looks like this Tuning parameter 'method' was held constant at a value of GCV.Cp RMSE was used to select the optimal model usi...
I am doing time series analysis. I used auto.arima to do model selection. The forecasting confidence interval seems really big on the plot. The residual plot seems OK. Am I missing something important? How do I assess if this one is a good model?
I am analyzing time series concerning daily water temperatures in rivers and I stubmled upon a series with autocorrelation like this: Moreover the series is stationary (I checked it with the Augmented Dickey-Fuller test). Partial autocorrelation plots looks like this (and I guess it indicates that it is AR(2) process)...
Using the normal distribution. Let $X \sim N(\mu_x, \sigma^2_x)$, $Y \sim N(\mu_y, \sigma^2_y)$ and $Z \sim N(\mu_z, \sigma^2_z)$ where $N(\mu, \sigma^2)$ denotes the normal distribution with mean $\mu$ and variance $\sigma^2$. $X$, $Y$, and $Z$ are independent. I know $P(X > Y)=P(X-Y>0)=\int_{0}^{\infty} N(\mu_x-\mu_y...
So I'm taking Andrew Ng's course on machine learning (great course, only comment is that its lacking a lot of math) and we came across the analytical solution to a model using Normal equations with the regularization penalty. Andrew claims that it is possible to prove that the matrix below, inside the parentheses, is ...
Is there any hidden meaning/reason that I'm missing for the word statistic to be used on the above definition? Because as you may know, beginners in Statistics studies can get confused with the term.
I'm working on a binary classification problem using 10 predictors. I have 4508 data points. I am required to have a prediction scheme which achieves an accuracy of 80% or better. However I am discouraged by the appearance of my data. It seems like the classification problem is not possible with what I have been gi...
The multiple linear regression model is given by $$ \mathbf{y} = \mathbf{X} \mathbf{\beta} + \mathbf{\epsilon} \\ \mathbf{\epsilon} \sim N(0, \sigma^2 \mathbf{I}) $$ It is known that an estimate of $\mathbf{\beta}$ can be written as $$ \hat{\mathbf{\beta}} = (\mathbf{X}^{\prime} \mathbf{X})^{-1}\mathbf{X}^{\prime} \mat...
Just a note: this is a homework question, so feel free to prod me towards the answer if you want :) Also, I'm pretty bad at statistics so sorry in advance if I'm stupid :/ I'm asked to write the "differential effects" version of a one-way ANOVA, that is: $ Y_{i,j} = \mu + \alpha_j + \epsilon_{i,j} $ Given $\mu$ is the...
Hertzog and Dixon (2003) specify that latent change models make it possible to predict change in one latent variable based on change in another. I would appreciate help conceptualizing how to create such a model with the data explained below. I intend to use the lavaan package in R. The data I have comes from a single...
I am working on imbalanced dataset. I am usng three algorithms: RF, SVM and J48. Generally an instance is classified as positive if its classification score is greater than 0.5. However, since I am working on imbalanced data, I perform a small experiment. I compute F-measure of all the classifiers at different decisio...
I'm trying to run a Monte Carlo simulation to check the coverage of Wald confidence interval, with n=40, p=0.2, and nominal confidence levels of 95%, with 10,000 simulation runs. I need to calculate the empirical coverage. I am not sure what I actually need to do to answer. I think I have the majority of it done, but ...
In order to better understand some of the polling for the presidential election, I created a simple JS program which runs iterations of sample-based polls to prove just how accurate things like margin of error are when understanding a two person poll. While looking at the results I ran into some oddities that I can't q...
Let's suppose that $X|\theta \sim N(\mu, \frac{1}{\theta})$, where $\mu$ known and $\Theta \sim Gamma(a,b)$ where $a,b>0$ known parameters. I want to compute the credibility factor $Ζ=\frac{n}{n+k}$ where $n$ is the length of the data and $k=\frac{E_{\Theta}[Var(X|\Theta)] }{ Var_{\Theta}[E(X|\Theta)] }$.But the de...
I'm working on propensity score matching, but I'm experiencing some problems. I am using the "propensity score matching" tool in SPSS v. 24 (but we've tried the same in R and "manual" by logistic regression). After PSM, surprisingly, my two treatment groups are even more different in terms of baseline covariates (age,...
I have a data set with multiple predictors, and a single response variable which is a percentage, thus is bounded between 0 and 100. I cannot share the dataset unfortunately. I would like to build a simple model for the response. I then tried, perhaps mindlessly, to use logistic regression using glm. R throws the follo...
I will preface this question by admitting my limited statistical background. If my technical jargon is off, please feel free to correct me We're looking to improve our current linear, quadratic model (with interactions) for $Y$ that requires three predictors, $a$, $b$ and $c$: $$ Y = f(a, b, c) = \beta_1a^2 + \beta_2b...
I work with wind data. In order to estimate the strength of the correlation between two anenometers, in my department they usually calculate the pearson R. As far as I know the pearson R should be used under 2 assumptions: -Linear relationship between the variables (yes) -The data follows a normal distribution (no, as ...
In my study I will analyze how workload changes over time and over task. To do this, we record physiological measures in real-time and a subjective measure every five minutes. Moreover, we record which tasks are performed in real-time, i.e. whenever a task changes we record that. The next step is to make a comparison....
I've tried to do a MANOVA analysis of a dataset, to control the distribution of multiple species to three variables (FISH, EROSIONFORCE and ZONATION). To do so I used the mvabund package in R. The summary function of lm in mvabund yield Have I managed to do an MANOVA here, since all species are listed in the calcula...
I am conducting correlation analysis on variables that I cannot assume to be normally distributed, so I am using Spearman's rank correlation instead of Pearson's. The two variables do not seem to be correlated (r = 0.05), yet I am seeing a quite particular structure in the scatterplot of ranks: As you can see, around ...
x is a numeric matrix and y is a numeric vector: x = structure(c(53, 36, 51, 51, 54, 35, 56, 60, 60, 60, 35, 59, 62, 36, 38, 61, 64, 60, 92, 92, 62, 42, 65, 89, 62, 61, 62, 62, 62, 35, 35, 37, 3.32, 3.1, 3.18, 3.39, 3.2, 3.03, 4.78, 4.72, 4.6, 4.53, 2.9, 4.4, 4.31, 4.27, 4.41, 4.39, 7.32, 7.32, 7.45, 7.27, 3.91, 3....
I am trying to understand how backpropagation works. I understood the basic concepts and became familiar with derivation of equations for sigmoid activation function. Specifically for hidden layers, for w1 (from picture below), the gradient looks like- $$E_{total}=\frac{1}{2}(target_{o1}-out_{o1})^2+\frac{1}{2}(target...
In a recent exam on machine learning I came across the following question: "Which of the following techniques can model the decision boundary depicted in the figure? (check all that apply)" See my self-made picture. Logistic regression (with linear features) Neural Networks Naive Bayes Support vector machine (with lin...
If $X_n\sim \text{Exp}(a_n)$, then $$X_n\stackrel{\mathcal{L}}{\longrightarrow}X\sim \text{Exp}(a)$$ as $n\to\infty$ and $a_n\to a$, $n\geq$ 1. I know that, $\Pr(Y_n\geq a_n+\epsilon)=\Pr(X_i\geq a_n+\epsilon)^{n}= \left(1-F_X(a_n+\epsilon)\right)^{n}$ $$F_n(x)=1-e^{-xa_n}\quad F_n(x)=1-(1-e^{a_n+\epsilon})^{n}.$...
If $Z \sim N(0,1)$ and $X \sim \chi^2(s)$. If $Z$ and $X$ are independently distributed then the variable $Y = \frac{Z}{\sqrt{X/s}}$ follows a $t$ distribution with degrees of freedom $s$. What happens if $Z \sim N(a,b)$? Does it simply become a location scale t distribution with mean = a, s.d. = $\sqrt{b}$ still wit...
I am currently working with gam models in the mgcv package and for me the smoothing methods are a bit confusing and I hope that you guys can help me to understand that better. So here is what I've understood so far: gam models have the advantage that I can model complex functions, meaning I can model continuous variabl...
I have question regarding online PCA implemented in the paper. I am interested in the Algorithm 2. I am not clear where the while loop stops. Also I have programmed it in R the problem is that the condotion in while loop is always true and while loop never stops. Can someone please explain step by step what does the Al...
I have two correlated time series (stock returns a and b). The two stock return series have empitical correlation rho, averages mu.a/mu.b, and standard deviation sd.1/sd.b. I am getting the degree-of-freedom fit with QRM package, and have nu.a and nu.b degrees of freedom What I am trying to do: generate two correlated ...
Let's consider a system having 3 similar components. The probability of having only one component failing is 10%. If we don't take into account the sampling error, can I say that, the probability to have 2 components failing is $(10\%)^2 = 1\%$, and the probability to have 3 components failiing is $(10\%)^3 = 0.1\%$? I...
Assuming $n$ independent Bernoulli trials with different probabilities, the Poisson binomial distribution is the discrete probability distribution that describes the number of $X$ successes. A Hypergeometric distribution is the discrete probability distribution that describes the probability of $k$ successes in $n$ dra...
I see the following equation in "In Reinforcement Learning. An Introduction", but don't quite follow the step I have highlighted in blue below. How exactly is this step derived?
I am trying to remove names from a large body of text to reduce the noise in my dataset. I have tried several approaches: Python's nltk.pos_tag function and a more naïve approach in which strings with the first letter capitalized and the remaining letters lowercase and not containing any numbers or punctuation are mark...
I was wondering what would be the best way to measure the effect of a TV ad campaign on sales (phone and online) and other metrics such as website visits. One could argue that most of the effect of the ad would be in the next few minutes/hours, but it could linger for a couple days too. Setup Let's say I have the coun...
I have multi-sample data which comprises distances between successive points on a line (1D vector), to which a gamma-distribution is fitted (and maximum likelihood parameters obtained). I would like to assess the quality of this fit. I've read that GoF-tests such as the one-sample Kolmogorov-Smirnov (KS) or Anderson-D...
I am given the values for mean, co-variance, initial_weights for a mixture of Gaussian Models. Now how can I generate samples given those: In brief, I need a function like X = GMMSamples(W, mu, sigma, d) where W: weight vector, mu - mean vector, sigma - covariance vector, d - dimensions of samples How can I implement...
Say $x$ is $p$ dimensional and normal distributed with covariance matrix $V$ and zero means. Is there function in some R-package that computes $p$ intervals $\{I_1, I_2,...,I_p\}$ such that the density integrates to $0.95$ over their cartesian product $I_1\times I_2\times\ ...\times\ I_p$, while the lebesgue measure of...
In my project, I stumbled upon this probability density function: $$ \frac{2^{1+d/2} \Gamma(4) \Gamma(\frac{d+1}2+1)}{\sqrt \pi \, \Gamma(6+d)} \, _1F_2\left( \frac{d+1}2+1 ; \frac{d+6}2 ; \frac{d+7}2 ; -\frac{z^2}4\right) $$ where $_1F_2$ is the Generalized hypergeometric function I were wondering whether this was the...
I am trying to program time series cross validation with the stlm function. The stlm function has the modelfunction and model arguments in order to hold the modelling constraints applied after stl decomposition constant. This should allow for me to test my model on multiple test sets. I cannot however get it to work wi...
I am trying to compute confidence intervals for my model. reproducable example: require(MASS) require(lme4) require(data.table) set.seed(105) n = 1000 dd = data.table() mu = 30 g <- rpois(n, 2) + 1 y <- c(rnbinom(n, mu = 20+ 4*g, size = 0.5)) f3 <- c(rgamma(n,shape=g,scale=y**2/10) + rpois(n,g)*10000*rnorm(n...
'Test error is greater than training error' is generally admitted in the statistical learning field. However, so far I couldn't find the analytic proof for this. Note : I.I.D situation, i.e., no sampling bias allowed across the observations. Does anyone know this?
I am reading Gelman & Carlin "Beyond Power Calculations: Assessing Type S (Sign) and Type M (Magnitude) Errors" (2014). I am trying to understand the main idea, the main takeway, but I am confused. Could anyone help distill me the essence? The paper goes something like this (if I understood it correctly). Statistical ...
I have an insurance claims data with claim amount as a target variable. The claim amount has a lot of 0s . The output is to predict the high-risk customers. i.e., to preserve the order of claim amounts. I have planned to convert the claims amount variable to an ordinal value ( highest amount =1, second highest amount =...
I know that, to use OLS estimators in linear regressions, there are few assumption to be satisfied. However, it is not clear to me what would happen if I would use OLS in a multiple regression without having a random sample, so that (Xi, Yi) would not be iid. Which sort of problem may I face?
My understanding is that the width and the height represents a kernel (convolution matrix) that is convolved over the image. The depth is the number of these kernels. If that is the case, how would adjacent convolutional layers be connected, for Eg. If the first layer has a depth of 32, and the second has a depth of 64...
I have no idea how to interpret this type of residual plot. The model is a logistic. Is there something wrong with the mean-variance relationship?
Is it possible (how?) to find a functional form that deals with (right or positive) skewness of an explanatory variable but that satisfies particular properties for the second partial derivative of the response variable with respect to the transformed explanatory variable? For example, let have a regression function of...
Let's say we have two very similar models: $Y_{i}$ = $\beta_{0}+$ $\beta_{1}X_{1,i} +\beta_{2}X_{2,i}+e_{i}$ and $Y_{i}$ = $\alpha_{0}$ + $\alpha_{1}X_{1,i} +\alpha_{2}X_{2,i}+e_{i}$ Let's say the first model is for men, and the second for women. Mathematically, how do I combine the two linear regression models toget...
I am working on the following problem, which I would like to solve using an elegant optimisation method (both because the answer is genuinely useful to me, and because I am interested in the maths of it). So, when I go to the gym to lift weights, there are 10 exercises I do. On each gym session, I do each exercise, one...
I am using neural networks for time series prediction and am completely new to the process. I have 6 covariates in total. Since I am doing time series prediction, I have decided to use several lags of each variable while also including lags of my dependent variable. In total, I have a data frame with 49 possible var...
I am doing a modeling for CPU usage in a system. I would like to infer the cost of each transaction type flowing through the system. I have total of 23 transaction types, and each transaction type has its own count. The data is collected for a period of 3 months with one hour interval. The restriction is the cost of th...
I am studying this document but I can't understand why in the word-word co occurrence matrix the terms in the diagonal are all 0. Or in other words why I do not count the word itself in the co-occurrence matrix?
I have to run a regression to estimate the impact of an endogenous variable. There are many packages for this in R (e.g., AER, sem, etc). Since I have an unbalanced panel, in order to obtain a robust estimation of standard errors, I need to use the plm package. Following a example with a balanced panel of 200 observati...
So I'm trying to extract an exponential trend. I have a series with x values 0, 1, 2, 3.... My problem is that my first point isn't (0, 1), I.e. the intercept of an exponential trend line My data might be (0,400), (1,410), (2,425)..... So this means that my x values aren't correct (they have been shifted and we don't h...
In order to enlighten the relation of three (related) scales describing psychopathology (1 anxiety score and 2 shame scores) with demographic data (gender, place of residence, age etc) collected by convenient sampling I conducted a MANCOVA, where only main effects and 2nd order interactions was included in the model (l...
In generalized birthday paradox problem The probability of getting $k$ unique values from $[0, n)$ when choosing $m$ times is given by: $$P(V = k) = \binom{n}{k}\displaystyle\sum_{i=0}^k (-1)^i \binom{k}{i} \left(\frac{k-i}{n}\right)^m $$ where $V$ is a random variable giving the number of unique outcomes and $\b...
My understanding is that the curse of dimensionality implies that we need an exponential amount of data with respect to the number of features we include in our model. Is this correct? If so, what does "we need" mean? Does it imply that we need at least that many data points to ensure we don't make a mistake?...to ne...
This is a (hopefully) pretty basic question regarding Monte Carlo Simulation. Say we have data generated by a distribution with one parameter, $\mu$. We want to estimate the expected loss of an estimation method that yields an estimate $\hat{\mu}$: $$ \mathbb{E}_\mu[L(\mu,\hat{\mu})] $$ where the subscript denotes that...
I want to use Ridge Regression to find out whether my estimated coefficients in a linear regression are stable (as the variance inflation factors tell me that there is multicollinearity). But I'm not sure which lambda values, i. e. multiplication factors for the variances compared to the covariances of the predictors, ...
Assume the following linear relationship: $Y_i = \beta_0 + \beta_1 X_i + u_i$, where $Y_i$ is the dependent variable, $X_i$ a single independent variable and $u_i$ the error term. According to Stock & Watson (Introduction to Econometrics; Chapter 4), the third least squares assumption is that the fourth moments of $X_i...
What does IQR/Med tell you about the data? What is the purpose of dividing the IQR by the Median? Examples: IQR = 3.0 Med = 8.1 IQR/Med = .37 IQR = 2.1 Med = 7.1 IQR/Med = .29 I got the numbers from this site. I understand IQR and Median, and I was told that IQR/Med is an indicator of data quality (<0.3 ...
I know the thread Measures of similarity or distance between two covariance matrices, which focuses moustly on L2 norm. My signals are from the L2 vector space, it is guaranteed in Fig. 2. Fig. 1 is then again about the original measurement data. I think two situations here compare values in Cor matrix where its un...
I need some help with this problem. They are constructed using different confidence interval, then how to combine them together? And how does knowing the fact that $Pr\{A\text{ or } B\}=Pr\{A\}+Pr\{B\}-Pr\{A \text{ and } B\}$ help?
For an ordinary least squares linear regression we have $$y = X\beta + \varepsilon$$ where $y$ and $\varepsilon$ are $n × 1$ vectors, and $X$ is an $n × p$ matrix of regressors. Is there a function for computing what $n$ should be in order to obtain a statistically reliable estimate of $y$ for various values of $p$? W...
I'm running a linear mixed model with random effects on my data in R, and in the tutorial I have done online (http://www.bodowinter.com/tutorial/bw_LME_tutorial.pdf) on data set "politeness" the output is not listing the variance (see output code below). The online tutorial linked above doesn't have the ['lmerMod'] sho...
I'm trying to calculate p-values for a research project. Basically, it is to see if the amount of white blood cells in a patient's sample correlates to a certain disease. Null hypothesis: # of white blood cells does not correlate to cellulitis I have a collection of white blood cells in patients proven not to have cel...
I have three sets of data sets each 10 to 20 data points. I want to test if the coefficient of variation is the same across all the sets. Please suggest relevant methods. I came across papers by Cabras(2006) and Amiri(2010). One, they look at comparing only two samples and two, my knowledge of simulation / econometri...
In Logistic Regression, what's the logic of testing for all threshold probabilities in an ROC Plot? I thought that in logistic regression, we're concerned with the 0.5 probability threshold, and if something is greater, we mark the outcome as 1, and if less, we mark the outcome as 0. So why test all the possible thresh...
If I am given a few observations with two variables (let's just say servicetime and desktops) I can use the following to find the confidence interval: $CI = \bar{y} \pm t^{(n-1)}_{(\alpha/2)} \cdot \frac{s}{\sqrt{n}}$, where $\bar{y}$ is the mean, $n$ is the number of observations, and $s$ is the standard deviation. ...
I'm trying to find information on choosing an optimal k for approximate nearest neighbor search using locality sensitive hashing (LSH) on a large data set. k represents the number of nearest neighbors being considered when determining your classification. It seems choosing this k is an essential part of finding an accu...
I have 2 non-normal population datasets where the median is a better measure of central tendency. To compare the spread of these 2 populations, can I calculate the coefficient of variation (CV) with population median and standard deviation σ? Or, is CV only applicable to sample mean and standard deviation? Population 1...
I have data that require scaling fixed effects to fit linear mixed models with the lmer function from the lme4 package that converge. I want to unscale the estimated coefficients to present results in useful units. Previous posts address this issue, but I am unable to successfully unscale coefficients from models inclu...
I'm learning RNN and know that a basic RNN maps an input sequence to a sequence of hidden states, and then maps the sequence of hidden states to the output sequence. I'm confused about the dimension of the 3 sequences. The dimension of the input and output sequence can be found from data, but what about the dimension o...
I'm reading through https://www.statlect.com/asymptotic-theory/delta-method it defined the Delta Method as: The delta method is a method that allows us to derive, under appropriate conditions, the asymptotic distribution of $g(\hat{\theta}_n)$ from the asymptotic distribution of $\hat{\theta}$. and one example ...
I am trying to perform a classification between 20K objects to 40 classes. The features of the classification are text based, per each objects i have its raw text. In addition i have a ~300 training sample, roughly 8 samples per class. Ive tried using the following method: 1) Vectorize the data - using tf_idf. 2) Decom...
I have the data for an ambulatory assessment for autonomic cardiovascular functioning and the labels for posture are really mixed (the number in parenthesis represents the code, not the number of participants): lying (10) sitting (11) standing (12) walking (13) sitting/ standing (15) sitting/ standing/ walking (16) st...
Matched pairs studies are well documented, but what happens if we were to alter the manner in which events were paired to one another. Say we change the order of our data and pair without replacement, so that event 1 may pair with event 23 in one instance, but also event 36 or 102 in other instances. Matched pair study...
I have a question with regard to non-parametric bootstrap re-sampling analysis. I have a sample of n=200 values, and I have performed a bootstrap re-sampling creating 10.000 samples of the same n=200 and then calculated 95%CI, mean, st. deviation. Can I perform the same bootstrap re-sampling creating 10.000 samples o...
So I have learnt about Entropy and how to do it on paper, but I get confused when I try to apply Information Gain. Say I have a set of letter freqency classifications: a = 5 b = 5 c = 10 I can perform entropy on these numbers fine, but the formula for Information Gain confuses me and I can find little info on how to u...
First I want to check is I understand correctly how backprop works for NN with embed layers. Lets create simplest NN with embed layer Input Layer [i1; i2; i3; i4] - input nodes Embed layer [h1] [h2] - here we have 2 nodes h1 and h2; h1 is connected to i1, i2 and h2 is connected to i3, i4. Corresponded weights of these...
This Cross Validated question asking about simulating a sample conditional on having a fixed sum reminded me of a problem set to me by George Casella. Given a parametric model $f(x|\theta)$, and an iid sample from this model, $(X_1,\ldots,X_n)$, the MLE of $\theta$ is given by $$\hat{\theta}(x_1,\ldots,x_n)=\arg\...
I'm gathering methods to calculate the minimum size of a control group, given the total sample size, power, significance level, minimum change I want to be able to detect, etc. I want to do this for different kinds of outcomes, such as proportions and continuous outcomes, for which I have found nice formulas. I have te...
Mahalanobis distance is a measure of distance between a point and distribution. So if we want to check if a point belongs to a particular distribution or not, we can use Hotelling's T-test, which is squared Mahalanobis distance. But if we have two sample distribution and we want to check if they belong to the same gr...
Consider the two regression equations: \begin{align} Y &= \alpha+\beta X+\varepsilon \\ \log Y &= \gamma+\delta X+\eta \end{align} Is there a "simple" approximated relation between the coefficient estimated using the first equation ($\hat{\beta}$) and the one got by the second ($\hat{\delta}$) that can be used to get ...
I have 4 different models to forecast some quantity of interest y With the Diebold-Mariano Test I can test if one model is predicting more accurate than another, which is cool. So I can make some 4x4 matrix and evaluate each other. But is there any possibility to compare directly if one "benchmark" model is superior to...
How the ranking of feature importance is generated in Random Forests? I'm searching for a less formal explanation, that is, an intuitive way to explain it, for instance in a nutshell.
I am an experienced doctor but have only basic stats skills. I have 275 doctors who evaluated 60 patients and rated each patient as having IPF (1) or not having IPF (0) (IPF = deadly pulmonary disease). I then evaluated the prognostic significance of each doctors diagnoses for the 60 patients (for this disease, death ...
I estimated a two-level logistic regression model with random intercept and random coefficients. The dependent variable is if someone participated in a demonstration (1) or not (0). My independent variables are age, gender, party affilliation (yes/no), political interest (yes/no) etc... Random coefficients are estimat...
I need to compare one benchmark models regarding their "informational efficiency" against three other models. From my search I can now say, that this usually refers to the question how well a model is utilizing the information until t to forecast t+h. I have found mincer-zarnowitz test, to test each model. But how to t...
Let $X_n$ with $n \ge 1$ a sequence of random variables such that, for each $n$, $X_n$ has density $n(1-x)^{n-1}$ with $x \in (0,1)$ ($X_n$ is $Beta (1,n)$). For each $n\ge 1$, let $T_n = (1-X_n)^n$ I need to find the distribution of $T_n$ and calculate $P(T_1 + \dots + T_{108} >50)$ I'm a bit confused on how to work w...
I'm working on an algorithm to generate recommendations for a platform where you can review restaurants. So the database exists of 3 tables, 'Users', 'Restaurants' and 'Reviews'. Reviews have a rating of 1-5. Each restaurant can have multiple reviews, and users can have multiple reviews. A review can only have 1 user a...
I am interested in estimation of ARMA models. I understand that a popular approach is to write the model down in the state space form and then maximize the likelihood of the model using some optimization routine. Question: Why rewrite the model into its state space representation and maximize the corresponding likelih...
Deep auto-encoders has been successfully used for problems like digit classification. In this example, images with 28x28 pixels have been classified into digit 0-9. And the feature vector size is 28x28x1 = 784x1. For my understanding, the CNN based deep learning do require the image size to be relatively 'large' becau...
Why is backpropagation not incremental? The definition of incremental would be to be able to update the weights with every single new data point. However, in stochastic gradient descent with a batch size of 1, isn't backpropagation incremental? If so why are there implementations of incremental backpropagation?
I have a question with regard to Subsampling. Subsampling: take samples without replacement of size b from the original sample of size n with b < n Bootstrapping: take samples with replacement of size m from the original sample of size n with m = n How do I choose b?
I have data comprising distances between successive points on a line (1D vector): Traditionally in my field, such data is fitted with a gamma-distribution in an attempt to describe the distribution of the points, however, in some instances I find that a Weibull distribution fits better (higher likelihood as based on B...