instruction
stringlengths
9
38.7k
Analysis type: linear mixed-effects model DV: cortisol (4 time points per participant - morning, noon, 5pm, 9pm) IV 1: time-since-waking (continuous, repeated measure, variably spaced/unstructured time variable) IV 2: prior-day bedtime (9pm) cortisol levels IV 3: interaction between IV 1 and IV 2 Results: significant ...
So let's say I've tallied up each letter in a text. I now have a vector whose indices represent the letters, and the values in the vector represent the number of occurences of a letter. Here it is: v = [545 54 107 129 0 63 57 35 504 12 3 229 74 397 342 108 46 263 341 353 355 52 1 16 19 4]. I have an...
I´ve run a GLMM model with the following variables: Response variable: continuous (with positive, negative and zero values; Explanatory variable: 1 factor with 6 levels (DB, DF, NDB, NDF, BB, BF); individual as a random effect variable After running a lmer function, and checking the assumptions, I want to perform a pos...
I have the following problem: in year A, we observe that a company sold N_A of its product, in year B, we observe that the company sold N_B of its products. How do I do hypothesis testing that the company sold statistically different number of products in year A and B? My thought is that N_A ~ Poisson(lambda_A) ...
Is this equation true for discrete Shannon entropy $H$: $$ H(X+Y) = H(X) + H(X+Y|X) $$ I came across it in a reply to an earlier question, strange statement in proof of entropy of a sum, about a step in a proof of the entropy of a sum of two variables. They gave this proof that $H(X+Y) = H(X)+H(Y)$ in the case that...
What are good metrics to use to measure the error of ordinal classification? For example, assume that we have 3 classes "LOW", "MEDIUM", and "HIGH". We should find that if we misclassify "LOW" as "MEDIUM" the error is less than if we misclassify "LOW" as "HIGH". Are there any metrics that account for this?
Given two column-vectors, A = [0; 1.6818; 2.8284; 3.8337; 4.7568; 5.6234] and B = [0; 984.7; 1590.7; 2029.1; 2251.9; 2254.45], I need to find a scalar x, such that it satisfies the following condition: $Ax = B$ Using Matrix calculation, it can be easily solved as follows: $ \boldsymbol{A}x = \boldsymbol{B}\\ \implies ...
I am interested in an ARMA$(2,2)$ model with an additional input variable, which I want to put in state-space form. If $w_t$ is white noise, and $x_t$ is a known input, the model is given by: $$y_t = \beta_0 + \beta_1 \cdot x_{t-1} + \alpha_1 \cdot y_{t-1} + \alpha_2 \cdot y_{t-2} + w_t + \theta_1 \cdot w_{t-1} + \th...
I have recently started to improve my methodological skills and programming in R. For a study term paper I now want to run an ordered logit/probit model. The data I use are taken from the European Social Survey, which I have merged over all available years, and built subsets containing the variables of interest, that a...
I am running Binary logistic regression to see the impact of religion, ethnicity, educational background and other few factors on high frequency of time spent together in marriage. In the outputs, I'm confused to see the overall p-value of religion is significant, however, the p-value for each religion is not (for all...
I want to compare the time series of two counts of objects, collected simultaneously: Abundance of object A Abundance of object B I go to a site, and measure the abundances over a given time period simultaneously for both objects (the duration of the time period is always the same). Rather than having one pair of lon...
stats/stackexchange novice here i'm afraid. I've got a data set which I believe a multilevel linear model will suit nicely but i'm struggling with a) whether this is the right technique and b) how to approach formulating the model in R. The data consist of: Id of individual, for each individual there's 2 time points (...
I am trying to see the power of recurrent neural calculations. I give the NN just one feature, a timeseries datum one step in the past, and predict a current datum. The timeseries is however double-seasonal with considerably long ACF structure (about 64) with additive shorter seasonality for lag 6. Input timeseries: V...
I am estimating the following the model: $\Delta y_{ijt} = \alpha_{j}*\alpha_{t} + \beta*x_{it-1} + \epsilon_{ijt}$, where $\alpha_{j}$ are individual dummies and $\alpha_{t}$ are time dummies, such that $\alpha_{j}*\alpha_{t}$ is a high-dimensional categorical variable (roughly 34000 dummies). $x_{it-1}$ are some othe...
In a VAE with Gaussian output the loss function is usually:$$\sum{(\hat x - x)^2} + KL,$$ so the sum of squared errors plus KL divergence. When I also want to predict the variance of the reconstructed input I need 2 outputs for each dimension of x: mean and variance. But in this case how should I calculate the reconstr...
I would like to construct a Hidden Markov model with data about online customer journeys. A well-known concept related to the customer journey literature is the sales funnel. Consumers walk through the funnel and the probability to purchase increases while becoming more engaged. The latent variables from the Hidden Mar...
I want to describe the relationship between pairs of continuous variables. I know this is commonly done just by looking at a scatterplot, but I think this is not appropriate for my problem, because (1) my sample size is small (15), (2) I have a to do 28 comparisons, and (3) my goal is to have some certainty when descri...
Suppose there is a rare event that happens on 3-7 days a year, and we are interested to predict days when it happens. We have two metrics, A and B, that both take values on onterval (0, 1) for any given day. Higher values of A on some day supposedly mean a greater chance of event happening on that day (but A is not a p...
I am reading the book titled "An Introduction to Statistical Learning" by James et al. There it is mentioned on page 309 that we pick the cost complexity parameter α to minimize the average Mean Squared Prediction Error. Then on page 326, the following is mentioned: "We use the argument FUN=prune.misclass in order t...
For this conversation I'll use the below definition of cross-entropy where there are N samples, M different classes, $ y_{ij} $ is 1 if sample i is of class j and 0 otherwise and $p_{ij}$ is the probability that a sample i is of class j as assigned by some model. $$ \text{Cross Entropy Loss} = -\frac{1}{N}\sum_{i}^N \...
I would like to test the significance of difference in sum by bootstrapping. Previously, I only used bootstrapping when testing the difference in means. For example, I used the following code based on Efron and Tibshirani (1993). xt <- var1 - mean(var1) + mean(var3) yt <- var2 - mean(var2) + mean(var3) set.seed(12...
In statistics, we divide the data into two set: in-sample set and out-of-sample set. In machine learning, the data is divided into 3 sets: training set, testing set and validation set. From my understanding, in-sample set is equivalent to training set; out-of-sample set is equivalent to testing set. Is my understanding...
Let us say that we have available a catalog of known frequentist models. For example: continuous variable coagulation time $CT$ linear regression on outcome $CT$ for the predictor transfusion $T$ linear regression on outcome $CT$ for the predictor fresh frozen plasma administration $FFP$. We can compute $P(CT>x | T)$...
I have a small dataset that I'm currently using python GridSearchCV to search hyperparameters. From time to time I increase this dataset and have to train again all of my regressors(I'm using sklearn methods - SVM, Adaboost and GradientBoosting and XGboost) and use GridSearchCV to find another best hyperparameters set....
16 animals were randomly assigned to two treatments (control and treatment). Each animal had its level on the dependent variable measured 24 times over the course of the day. For each animal, these numbers vary wildly, from 0 into the thousands, with no strong correlations. Interest is in whether the two treatments a...
I have a large panel data set featuring the purchases of 5000+ individuals over 2000+ time periods (days). I am looking to estimate pooled OLS regressions featuring double-clustered standard errors (where standard errors are clustered by both individual and time) but the dimensions of this problem are causing issues. ...
I have a non-significant 3-way interaction (A X B X C mixed design, 2 binary (A/B: 0,1) and 1 continuous:C), alongside with two significant 2-way interaction(A X C and B X C), and my questions are, should I interpret the results from the 3-way interaction output, or should I run new analyses for the two significant 2-...
For instance I have a set of categories from a variable called 'category'. From python, here are my categories and their corresponding counts. Category_Others 1430 Application/Website 1345 Backups 900 Software/OS 800 Hardware/Virtual 700 Network 302 There are t...
I'm trying to determine what would be a good model for my problem. I am not a statistician and use some words colloquially - please excuse my lack of knowledge. I'll illustrate the problem with the mtcars dataset in R. BACKGROUND For linear regression, I can use the function lm to get a model. Without any prior knowl...
The Data Total Biomass and Annual Growth Rates for 37 permanent sample (i.e., repeated sample) forest plots that have been resampled at different intervals (and sometimes in different years) for 80 years. Note: additional confounding variables (e.g., soil nutrients, forest age, etc.) do exist and would likely need to...
I often face the issue of having to choose a k number of clusters. The partition I end up choosing is more often based on visual and theoretical concerns rather than quality criteria. I have two main questions. The first concerns the general idea of clusters quality. From what I understand criteria, such as the "el...
Let $\mathbf{X} \sim \mathcal{N}_n( \mathbf{m}, \mathbf{C})$ be an $n$-dimensional gaussian vector, where $\mathbf{C} \in \mathbb{R}^{n \times n}$ is not diagonal, but it is positive-definitive, $\mathbf{C} \succ 0$, and $\mathbf{m} \neq \mathbf{0}$. Let $$ Y = \| \mathbf{X} \|^2 $$ where $\| \cdot \|$ denotes the $L_2...
I am trying to build time series models for prediction of monthly sales volume of a product. I am given data for monthly sales volume of different products over the last 5 years, and I have to build individual models for individual products. Let us assume, I have only 1 product in the dataset. The problem I am facing i...
I was using h2o for getting a feel of what learning rate does a good job on my data set. I chose to use cross validation for selecting a learning rate. fit.gbm.grid = h2o.gbm(...learn_rate=seq(0.1, 0.5, 0.1), nfold=5, ....) When I looked at the summary table of the grid(ordered by increasing deviance(rmse^2)): fit.gr...
I conducted a study in which I had two groups (A and B) and participants' speed was measured during each two activities (writing by hand and typing). I made 2 hypotheses about the interaction. Participants in Group A would be faster at writing than Group B. Participants in Group A would be faster at typing than Group...
I have a data set containing data of patients with cancer. There are 60 subjects in this study, from which 30 got the standard treatment of chemotherapy, and 30 got chemotherapy along with nutritional supplements such as Turmeric and others. For each subject, the white blood count level was measured at 2 time points, I...
My best mean equation was an AR(1) process (based on the Schwarz-Bayesian IC). I now want to model the conditional variance (having confirmed the volatility is not constant). I just want to check whether the G in GARCH can be applied, or whether the ARCH will be all that is required given the mean equation does not ha...
I'm trying to show: $\sum_s\mu_\pi(s)\sum_aq_{\pi}(s,a)\nabla_{\theta}\pi(a|s,\theta) = \mathbb{E}\Big[\gamma^t\sum_aq_{\pi}(S_t,a)\nabla_{\theta}\pi(a|S_t,\theta)\Big]$ where: $\Pr(s_0\rightarrow s, k, \pi)$ is a probability of transitioning from state $s_0$ to state $s$ in $k$ steps under policy $\pi$. The initial st...
I've been searching for a question that answers this for about a week on Cross Validated. Apologies if it's a repeat; I appreciate being pointed to an answer in a pre-existing question. My experiment is a repeated measures design (also a fully-crossed design, I think) where each subject was tested at two different tim...
I am trying to solve some of my past papers exam and really don't know where I did wrong here : Naturally, I know that the integral from minus infinity to infinity for any pdf equals $1$. I solved this : $$\int_1^a\frac{\ln(0.5)}{x}\,\mathrm{d}x=1$$ But when I did, I came with a value of a smaller than $1$ which is ...
I created a model with J48. Before creating the model, data were standardized. Now I want to test this model with a sample dataset. Before applying data to the model, I believe data should be standardized. But since standardization process is local to the given dataset, how should I standardize my sample dataset?
I have an instrumental variable (IV) estimation where I use Z as an instrument for treatment D, to estimate a treatment effect of D on Y. After certain discussion, I find that there might be another variable, X, which is correlated both with Y and with Z. I then decide to include X into my IV model, to control for wha...
I am asking this question for a research problem, not homework, but it's very basic, so let me know if I should add the homework tag. Let's say that in my sample of size n = 500, I observe "yes" for a yes/no outcome to occur at a frequency of 0.30. I know that "yes" for the same yes/no event occurs at a frequency of ...
I am testing the reaction type of female birds (which can be + or -) and the length of reaction of females (in seconds) to male birds depending on the color of their feathers (highly colorful or not colorful) and their loudness (loud or quiet). Independent Variables --> Male Bird Color (binary), Male Bird Loudness (bin...
If we want to do a simple Monte Carlo evaluation of the expectation of a rv, say X, which is a definite integral, and we find when we evaluate this definite integral analytically that it is infinite. If this is the case, would we be confident in our Monte Carlo simulation result? I would think not. I think the reason w...
Could I use the Mann-Kendall Trend test for a data set of monthly sales (counts)?
I have two data sets, both are normally distributed (p<0.05). When I run a two sample t-test to assess if there is a significant difference between the means, I get a p-value of exactly zero? What does this mean? I have never encountered it before. Below is the output from Minitab for the test. Thank you all for your ...
I am a non-statistician PhD student working on a project that has involved some propensity score matching (PSM). I had initially assumed that propensity scores would represent the probability of each patient receiving the outcome of interest given their baseline characteristics. However, everything I read subsequently ...
Let $f$ be a function defined by : $f(x) = 0$ if $x<1$ $f(x) = (\alpha-1)x^{-\lambda}$ if $x\ge1$ 1)Determine $\alpha$ and $\lambda$ such that $f(x)$ is a probability density function of a random variable with expected value equal to 2. 2)Determine the variance of $X$ 3)Based on Tchebyshev's inequality find a real $a$...
I am trying to calculate a derivative of the form $\frac{d}{dz}\Phi_2(\mu_1(z),\mu_2(z),\rho)$, where $\Phi_2$ is the standard bivariate normal CDF. I am thinking it might be an application of a double Leibniz rule (example here) but the lower limit of integration in the CDF is not finite. Edit: To be clear, I define ...
Problem: I'm looking to analyze a data set of airport visibility (1960-2015) in a generalized additive model (GAM), but the data set is not normally distributed. Prior to 1996, visibility was measured at all distances. Post-1996, new automated measurements have a ceiling of 16 km. Any visibility above 16 km is just ...
I have read some stuff about regularization but cannot understand it yet. It is said that smaller weights favor a prior information of weights being distributed around zero. But why it should be true? This prior by itself does not have anything to do with overfitting. It is also said that regularization reduces (and co...
For a standard feed-forward Neural Network, what range should my initial weights fall under if I'm planning to use Rectified Linear Unit as an activation function? A mathematical justification for the recommendation given would also be helpful. I've read this post regarding initialisation of weights, however it assume...
I'm trying to figure out how to calculate R2 and p-values in a Monte Carlo test. I only had errors in my y variable (weight in the example below), so I created random y variables using a normal distribution like below. N=1000 random = matrix(0,N,length(women$weight)) for(i in 1:N) { D = women$weight + rnorm(length...
I'm forgetting my basics, so I must be being a silly sausage, but consider $$X\sim N(0,1)$$ $$Y\sim N(0,1)$$ if $f(x,y)$ is the join probability of these 2 variables, then the 3D plot looks like this. I want to calculate the covariance of $(X,Y)$. As $x$ and $y$ both get closer to the origin, $f(x,y)$ gets closer to 0...
I'm working with a sample of 1,222 survey respondents. Given the length of the survey, many respondents did not complete every question. After removing observations with missing data, I am left with 632 observations. I don't believe a t-test would be good at identifying whether the 632 respondents are a biased sample,...
This seems like a really straightforward question but I think maybe I lack the vocabulary to search for it correctly. Given two random variables $X$ and $Y$ with known probability distribution functions (not necessarily normal), how can I compute $P(X > Y)$? A numerical solution would be fine, I just can't seem to find...
I'm trying to understand some interesting results I found during an analysis. For context, I'm trying to see if an onboarding assessment is predictive of future performance. Performance on the test is measured as a percentage of correct answers, and future performance is measured with a continuous measurement here. ...
Please bear with me on this question, it's a follow on from my other question on a similar topic but in this question I wish to understand how to handle periodicity when testing a hypothesis with categorical data. I have discrete measurements of the number of call attempts on a cell in a wireless network. The counts ...
The simplest definition of a sufficient statistics in the frequentist perspective is given here in Wikipedia. However, I recently came across in a Bayesian book, with the definition $P(\theta|x,t)=P(\theta|t)$. It's stated in the link that both are equivalent, but I don't see how. Also, in that same page, in the sectio...
Is it possible to run a hypothesis test to test for a significant difference in calculated coefficients of the same independent variable in two different subsets of one population, after you have performed a LASSO selection process on each subset individually. (Assuming the variable is selected as relevant in both subs...
I recently ran a logistic regression on categorical data and ran a Tukey multiple comparisons post hoc analysis using the glht function in multcomp package. id.glm3<-glm(detec~apptreat+marker+exp+inter_MarEx, family=binomial, data=indiv_detec3) Where inter_MarEx is the interaction between marker type (marker) and ti...
I'm very new to Bayesian statistics, but I've found myself in a situation where they might be able to help. I'll be running the same experiment repeatedly and analyzing the data every few months. The protocol is very simple and involves a comparison between the means of two samples. I'd like to use data from previous s...
I need to do check if my time series data is stationary or not. However, the data is so irregular that cannot be transformed into evenly spaced. Any suggestion?
I have a question about the mechanism of vanishing gradients in RNN's. There's a related question here (Does the vanishing gradient in RNNs present a problem?) but I want to ask some more specific questions. I'm taking Andrew Ng's specialization in deep learning on Coursera, specifically the sequence model course. The ...
I'm trying to figure out the gradient of batch norm wrt x for backprop, but I get stuck in what I will call 'the triangle of (gradient) death'. I present to you the triangle of death (in red), in the context of a computation graph for the batch norm equation: The problem is that applying chain rule to the triangle res...
Consider ARMA(1,1) $y_t=by_{t-1}+u_t$ $u_t=ae_{t-1}+e_t$ $\text{Var}(e_t)=\sigma^2$ Why is $y_{t-1}$ endogenous and why is there an endogenity problem? How can I provide an instrumental variable (for example $y_{t-2}$) such that this variable satisfies the conditions of validity and relevance? (This is not homework. I...
Assume we have access to i.i.d. samples from a distribution with true (unknown) mean and variance $\mu, \sigma^2$, and we want to estimate $\mu^2$. How can we construct an unbiased, always positive estimator of this quantity? Taking the square of the sample mean $\tilde{\mu}^2$ is biased and will overestimate the quan...
During last five years or so the machines using Deep Learning have surprised their programmers by unexplained success of AlphaGo, driving autonomous vehicles, machine translation of human languages, image analysis etc. The AI system works with appropriate answers to questions, but do we know how does it work?
I have a dataset that has missing values and I am just testing various methods that are used to replace them for my thesis. I would like to know how does the mean substitution method works, like say I have 3 missing values in my data. For the first missing values, it calculates the mean of the known values and insert t...
I have a dataset for one year of weekly sales revenue of sale of milk for each farmer, I'm trying to figure out seasonality trend in my data, based on my data, can I say I have two seasons in my dataset the one with the upward trend and the other with the downward trend?
Given is a linear model $y_i=x_i^T+e_i$ where $e_i \sim N(0, \sigma^2)$. The precision is defined as $\tau = \frac{1}{\sigma^2}$. I am asked to derive the posterior $\pi(\beta|x,\tau)$. Would I compute the posterior by doing the following: $\pi(\beta|x,\tau) \propto p(x, \tau | \beta) p(\beta)$ or $\pi(\beta|x,\tau) \p...
I am working on training a reinforcement learning agent with a huge dataset of past human players' experience. Each user had to independently increase their game score. I am using the dataset because I have plenty of data and because on-policy training can be slow due to the game speed. The only problem I have is the h...
Help please! I've conducted a hierarchical multiple regression analysis on variables that predict 1-year PANSS score. As seen below, all models appear non-significant, which doesn't make sense as one of the variables I'm entering is baseline PANSS score that should have predictive value. Hence I'm not sure if I'm doing...
The Bayesian Information Criterion (BIC) is calculated with: $$ \text{BIC} = \frac{1}{n \hat{\delta}^2} \Big(\text{RSS} + \ln(n) d \hat{\delta}^2 \Big) $$ where RSS is residual sum of squares and delta squared is estimate of the variance of the error associated with each response measurement. I have two questions about...
My statistics book defines the concept of "bounded in probability" in the following way: Definition 5.2.2 (Bounded in Probability). We say that the sequence of random variables $\{X_n\}$ is bounded in probability if, for all $\epsilon > 0$, there exists a constant $B_{\epsilon} > 0$ and an integer $N_{\epsilon}$ such ...
I use n-step Sarsa/sometimes Sarsa($\lambda$) to solve a maze problem. After experimenting a bit with different epsilon schedules I found out that the agent learns faster when I change the epsilon during an episode based on the number of steps already taken and the mean length of the last 10 episodes. Low number ...
I don't understand the last line in the following paragraph. How does one get that from the equation 4.3.7 using the 3 axioms of probability, which are mentioned in the book as follows:
For example, if we have a 95% confidence interval for a parameter of interest then we will have an interval such that if we were to take a large number of such intervals, about 95% of them will contain the parameter of interest and about 5% won't. So why is it that we don't just take some respectable number of such int...
I have two likert scale questions: 1: not well at all, a little likely, somewhat likely, likely, very likely 2: not well at all, a little, somewhat, quite well, very well I am trying to see if there is a relationship/correlation between the responses to the two questions. How can I test this?
I came across the following simulation problem: given a set $\{\omega_1,\ldots,\omega_d\}$ of known real numbers, a distribution on $\{-1,1\}^d$ is defined by $$\mathbb{P}(X=(x_1,\ldots,x_d))\propto (x_1\omega_1+\ldots+x_d\omega_d)_+$$ where $(z)_+$ denotes the positive part of $z$. While I can think of a Metropolis-Ha...
I happened to encounter lots of scientific/business scenarios where a Zipf/Pareto/powerlaw describes well my data. However, whenever the mean of the distribution is large enough, the fact that these distributions have infinite variance turns into unphysical results. I then found articles mentioning "hooked powerlaw" th...
Let's say that my dataset is in long format. I have a treatment variable that is time-varying, so the individual will NOT receive the treatment initially, but as time goes on, he/she does. How can I take into account that treatment is time-dependent? I was thinking that including the interaction term time*treatment wou...
I am currently working on coursera Andrew Ng's machine learning course, and wonder why nowadays deep learning algorithms do not use fminunc (assuming a Matlab/Octave environment) for optimizing weights. In my knowledge, fminunc does not have to set learning rate so I think it would be convenient to optimize weights com...
Given the following regression: $y_i = \alpha + \beta_1 x_{1i} + \beta_2 x_{2i} + \epsilon $ If $x_1$ and $x_2$ are exogenous regressors to $y_i$, but are endogenous to each other, or determined simultaneously, what effect does this have on the $\beta$s. For example, assuming that education and wages are exogenous...
I am using multiple regression to predict the future value of a time series from several other time series. Would doing this with multilayer perceptrons produce better results than multiple regression? Edit/expansion: Assuming a multiple regression equation behaves like a single perceptron, then as far as I understand ...
My question is on Bayesian regression problems, where I want to formulate my problem as: Find the posterior pdf of parameters $\theta$, where model $f_\theta$ relates observations $y_i = f_\theta(\theta,t_i)+\epsilon$ to the parameters $\theta$ and modeling errors $\epsilon$. Estimate $\theta$ while including prior inf...
I am running a linear regression on a set of data related to a sales funnel where I'm trying to determine the relationship between a date when a lead came in, the expected timeline for when they would open an account (user selected) and the actual date that they opened an account. To better visualize: A lead came in on...
I was reading the previous Q&As about sparse coding and sparse autoencoder differences but I am still confused what is the point in using sparse coding. It is said that sparse autoencoder give us a way to model the sparse codes (and thus generate them for every new input), while sparse coding is a way to calculate the ...
In short: I'm wondering if I'm understanding the concept of two-sided "Confidence Interval" via an example? Details: Suppose we observe 5 successes in 20 trials and so our observed $p = 5/20$. To obtain a 95% CI for the PARAMETER of this observed $p$, we argue this way: What the unknown, fixed PARAMETER value of this o...
I'm playing around with word2vec and just as a test, I put together a very small example, with five groups of words which appear together: [["0", "1", "2", "3"], ["4000", "4001", "4002", "4003"], ["8000", "8001", "8002", "8003"], ["12000", "12001", "12002", "12003"], ["16000", "16001", "16002", "16003"]] Here is the c...
I'm considering an example where I'm creating a model to predict a binary categorical outcome to determine whether a tool will be successful (e.g. 1,0) over different periods of time. If I create an independent variable that is a composite of other independent variables (e.g. ALT = Tot_age-TSLT) then can I also still u...
Person X is on holidays for T weeks. At the end of each week, she gets a mosquito-bite, which infects her (for the following week) with a probability of 0.2. The state-space $Y_t$ is hence either I ("infected") or N ("no disease"). $Y_1$ is "N" - the person starts out healthy. No medication is available, so once infect...
I know that model sum of squares is the ratio of the between-group sum of squares to the model degrees of freedom, and that the between-group sum of squares is a variation between cluster means (and the smaller the variation the closer they are) and that the model has k-1 degrees of freedom where k is the number of clu...
I found these sentences: PCA before random forest can be useful not for dimensionality reduction but to give you data a shape where random forest can perform better. I am quiet sure that in general if you transform your data with PCA keeping the same dimensionality of the original data you will have a better c...
I want to measure whether the binary responses (0 and 1 - disagree or agree) are different among four different statements - i.e. whether certain statements are significantly more likely to be agreed with. It is the same people answering each question, but, due to the fact the statements are different each time, I am n...
As data analytics and machine-learning approaches become more and more integrated, proper validation of such models also gain traction. Since validation of models are a necessity in many industries such as banking and finance, and are used extensively for traditional credit/market risk models, the question becomes how ...
In case a linear regression, Mean Square Error (MSE) is defined as: $$ \frac{1}{n-k-1}\sum_{i=1}^{n}{(y_i-\hat{y}_i)^2}, $$ where $n$ is the number of observations, $k$ is the number of independent variables, $y_i$ and $\hat{y}_i$ are the $i$th observed value of the response variable and its prediction, respectively. ...
Today in class the professor gave us the following question: Two equiprobable classes with mean vectors μ1 = [4, 2]^T and μ2 = [−4,−2]^T respectively have an equal covariance matrix: Φ = 3.5 1.5 1.5 3.5 Determine which of the K-L axes generated by matrix contains most first order discriminatory information. I d...
The assumption is that we are unable to access the underlying data of the original histograms, but we do know the number of observations in each histogram. For the case that the original histograms have the same range and the same bin counts, we can simply add the frequency of each bin from all the original histograms....