instruction
stringlengths
9
38.7k
What are the advantages using Principal Components as input for neural networks compared to using "normal input" for neural networks?
I am having problems analysing a data set from a study with unbalanced design and that contains repeated measures...I inherited the data and I'm a bit lost. The response variable is core body temperature, and the other variables are study, time of day (hh:mm), shade temperature, sun-exposed temperature and body mass. T...
Is there any way to constrain weights of some fully connected layer of CNN(classification task) to be binary (0,1) or near binary(and then just threshold to binary)? Update: I want to use binary features from this layer to search similar images using hamming distance, something like {1}. References: {1} Lin, Kevin, H...
In a lab experiment Participants took part in four different treatment. At the beginning of each session they were randomly assigned to groups of 4 and played repeated public goods game for 30 periods. So far I have collapsed the data to obtain group averages, so that observation in a period are independent. This data ...
What is Cov(X - Y), where Cov is covariance? Cov(X - Y) not Cov(X,Y). That is covariance of difference of two random variables like we have as Var(X - Y) = Var(X) + Var(Y) - 2Cov(X,Y)
I have panel data of variable X consisting of 100-time points and 200 entities. I want to estimate clustering (ARCH effects) of X over time. Please suggest appropriate statistical method and implementation in R. Thanks
I'm a moderate beginner in stats, so this may or may not be something you can sensibly answer. In my data I have two parameters for each timeline, the number of events in a normalized timeline and the location of these events on the timeline. I have noticed a trend by which when the number of events is low, they tend t...
I am new to nonparametric regressions. What tests should one perform to choose a non-parametric regression model over a parametric one(Or vice versa)? Let's assume in our analysis we have a continuous dependent variable Y and regressors - X1 which is categorical and X2, which is continuous. We then perform a a simple l...
I have a seven step process that users can complete but can stop at any time - basically a marketing funnel. At each point along the funnel I am collecting more data. I want to be able to predict how far into the the funnel a subject with x set of attributes will go. Is linear regression a valid approach where my y var...
I have a continuos time signal (speech signal) and I will add noise to it at different SNRs. I want to compare the entropy or the original signal (clean speech) with the noisy ones. The idea is to show that the entropy of the signal increases when you add noise. ¿Can I make this comparison by using the differential ent...
I constructed a Bayesian network which presents the conditional independence among N random variables. Each random variable $X_i$ represents a Bernoulli random variable with an associated success probability $\pi$ (the probabilities, $\pi$`s, are the parameters of the Bayesian graph). I'm interested in computing the s...
I am relatively new to machine learning and have recently had some exposure to Decision Trees, Boosting, Bagging, and Random Forests. This has created an interest for me in this field and am now considering writing my thesis incorporating some of these algorithms. I have several ideas in mind, however the data I am cur...
I'm trying to analyze data that consists of the percentage of a specific area that is covered with a specific cell (postmortem human material) at three different age groups. Visually, the data appears to be approximately normally distributed, and this was confirmed with a Kolmogorov-Smirnov test (p = 0.806). However, t...
I have a dataset (~20k samples) of sensor data gathered from a smartphone. What I want to do with it is to detect those spikes you can see in the graphs below. They occur when the user presses a button. I want to label the data that refers to those spikes, but only this data. The other data is not relevant for my resea...
I have 150 individuals coming from the same population. I want to know what is the minimum number of individuals I need to estimate the frequency for ~1600 different characters. Each character can have a value of 0, 0.5, 1 or NA (couldn't be calculated). This means that the number of individuals used for each character...
First, I am an absolute beginner in this field of science. For my research task, I need to use mobile sensor data to determine a user's keypresses (similar to this: Keystrokes Inference Attack on Android: A Comparative Evaluation of Sensors and Their Fusion). What I did: Collect the sensor data for each sensor (timest...
I am looking at this link http://strata.uga.edu/8370/lecturenotes/principalComponents.html where it says In interpreting the principal components, it is often useful to know the correlations of the original variables with the principal components. The correlation of variable $X_i$ and principal component $Y_j$ i...
My Problem Within the context of an n-dimensional multivariate normal distribution with estimates for the means and covariance matrix, I am trying to calculate the probability of 1 or more, 2 or more, 3 or more, etc. of the included dimensions having a score of 0 or greater. At the moment, I accomplish this through sim...
This is more a question about how to weigh several statistical numbers. Or, which statiscal measure does exist to properly compare these two countries on this matter of road traffic safety? filler deaths per deaths per deaths per ---filler-- Country 1 mill ppl 10 bill km 100K cars population USA...
I have a set of simulation output that has an error value associated with each trial, along with the parameters that were used. In practice, some of these parameters will be fixed by the environment while the rest can be chosen. These parameters are all continuous, and most have nonlinear relationships with the error....
I'm trying to train an LSTM on a regression problem. After observing it for a while, I'm noticing a strange effect. The training loss decreases every epoch, which is expected, however the validation loss swings from dramatic improvement to dramatic worsening. For example, in epoch 10 (e.g.), the validation loss may d...
I'm applying the function conv2d_grad_wrt_inputs in theano to deconv a feature map into the original image. In the figure below the first image to the left is the input image which I'm applying convolution and the result is the feature map in the second image while the third image is the deconvolution process. I'm ap...
I have two populations with n=18 and I'm trying to find out if it makes sense to compare them with a t-test. I ran a Shapiro-Wilk test in SigmaPlot 12.5 for both populations seperately and these are the results: population1: W-Statistic = 0.900 P = 0.057 Passed population2: W-Statistic = 0.912 P ...
In Python, I have some 'VALUE' with a metric for 'WEIGHT' in a pandas DataFrame: import pandas frame = pandas.DataFrame( { 'VALUE': [1,2,3,4,5] , 'WEIGHT': [23, 21, 10, 3, 0] } ) # VALUE WEIGHT # 0 1 23 # 1 2 21 # 2 3 10 # 3 4 3 # ...
I am estimating a zero/one inflated beta regression model with gamlss (family BEINF). My dependent variable is [0,1] with a lot of 0s, quite some 1s, and some values in between. This means I assume that my model consists of three submodels: Reference formula: Rigby & Stasinopoulos (2010), A Flexible regression approac...
If $X \sim \mathcal{N}(0,4)$, then I know that $\left(\frac{X}{2}\right)^2$ is has a $\chi^2$ distribution. But $X^2$ itself $\chi^2$ distributed as well? Also if $X_i \sim \mathcal{N}(0,4)$ where $i \in (1,2,3)$, what is the distribution of $X_1^2+X_2^2+X_3^2$?
I am performing a meta-analysis on the response of rodent abundance to clear-cut logging. I have data from multiple sites, across multiple years, and for different species of rodents, and am using these data to compare the abundance of rodents in clear-cuts to the abundance of rodents in un-logged nearby 'control' site...
I have a project where I have access to entire populations' records. I'm not trying to generalize knowledge to a larger population; rather, I'm trying to compare the prevalence of an event happening in one whole population to the next (think comparing what percent of shoppers buy a certain product at Walmart versus Tar...
A good example of deriving a likelihood function is the normal distribution: The PDF of the normal distribution is: $$ f(x;\mu, \sigma) = \frac{1}{\sigma\sqrt{2\pi}}\exp\left[\frac{(x - \mu)^2}{2\sigma^2}\right] $$ For a series of observations, if we can consider them i.i.d. we see that for observation $(x_1, \ldots, x...
I was working through the example here calculating least squares means by doBy. In order to make sure I understand what is going on, I would like to replicate the analysis manually. I can do it when the number of untreated and treated are the same, but failing to do it when they are not the same. I am copying the ex...
Given \begin{equation}\label{eq:definition_of_z} \begin{split} \textbf{Z} = \left[\begin{array}{cccc} {z}_{11} & {z}_{12} & \cdots & {z}_{1P} \\ {z}_{21} & {z}_{22} & \cdots & {z}_{2P} \\ {z}_{31} & {z}_{32} & \cdots & {z}_{3P} \\ \vdots & \vdots & \ddots & \vdots \\ {z}_{M1} & {z}_{M2} & \cdots & {z}_{MP} \\ \end{arra...
Suppose I have a nonlinear model of the form: \begin{align}EY|X = \frac{aX}{aX+b}\end{align} where $a, X, b > 0$. I reparameterize the model as \begin{align} EY|X =\frac{\beta X}{1 + \beta X} \end{align} where $\beta = \frac{a}{b}$. $\beta$ is identifiable, so I can estimate it with nonlinear regression or some para...
What are the best possible bounds for the Poisson Binomial Distribution's tails? I need the bounds, because in my problem, I don't have the exact value of the probabilities $p_i$ related to the Bernoulli random variables and I don't need them. I just have the upper bounds of the $p_1,\dots,p_N$. Also, is there a specif...
I am working with two time series and I am interested in understanding the relationship between them. As a first step, I checked the cross correlation function (using ccf() in R). The output of my code is shown below, where I'm running ccf(x,y). As I understand it, the conclusion here is that x at time t+k is negative...
I am trying to choose how many components to retain in my PLSR. My total variance explained for the response variable is only about 30%, and the first 2 components explain 99% of this. Intuitively I know I should just run the model with the first 2 components, but is there a more rigorous method I can apply? Does the K...
(Note - This is also on MSE but I thought I might have better luck here). I was posed the following question: Let $X_1,X_2,\dots,X_n \stackrel{iid}{\sim} \mathcal{U}(\theta,\theta+1)$. Consider testing $H_0: \theta=0$ versus $H_1: \theta >0$ via the rule: Reject $H_0$ in favor of $H_1$ if $X_{(1)} >1$ or $X_{(n)} >(1-...
In Boosting/Adaboost, why the base classifier must be weak classifier?
I have a very basic interaction model with this setup: Y = $\beta_0$ + $\beta_1$ Var_1 + $\beta_2$ Var_2 + $\beta_3$ Var_1 * Var_2 + Controls + $\epsilon$ Y = Continuous variable Var_1 = Continuous variable Var_2 = Indicator variable (i.e., 1 or 0) In this model, $\beta_3$ is significant--but joint test of $\beta_1$ ...
I am beginner to neural network and machine learning. I am working neural network with 1 hidden layer. I took spiral data set and I am trying to overfit the data. I applied neural network to it and I am getting a 98% accuracy. But, I am getting the of classification boundary in 2nd figure. I mean why am I getting read ...
I am measuring a sample thickness using two different methods in potentially different locations. We are using the same equipment (G R&R came back OK), but we gather 360 data points using 1 technique, and 120 data points using the other technique. The datapoints are likely collected in different locations around the pa...
I have a text classification task with multiple classes. Right now model uses logistic regression & uses only word features encoded using TF-IDF. But for some of the classes, the non-text features are very useful, such as, length of the text in words, etc. My question is how it's better to include such features into ...
I would like to interpret interactions and their confidence intervals in a logit model. My model looks like: model.3 <- glm(NRSsuff ~ Gender + NRS0 + Meds + Gender:Meds, family=binomial(link="logit"), data=dataset.model) The output: Estimate Std. Error z value Pr(>|z|) (Intercept) ...
Given the multiclass SVM problem with a hinge loss, and no bias (e.g. $b=0$): $$ f= \sum_{j\in[K]}\frac12||\mathbf w_j||^2+\frac{C}m \sum_{i=1}^m \ell(\mathbf w_1,...,\mathbf w_K,\mathbf x_i,y_i)$$ Where $\ell(\mathbf w_1,...,\mathbf w_K,\mathbf x_i,y_i)=\max_{j\in[K]}\{\mathbf w_j\cdot\mathbf x_i-\mathbf w_{y_i}\cdot\...
I am relatively new to statistical learning and need some advice regarding the use of nested cross-validation for model selection and performance evaluation for binary logistic regression with LASSO in R. My understanding is that the outer loop will go through the model parameters (alpha and lambda). For each alpha, I ...
There are 2 parts to this question. Suppose we are looking at sales $S$ of a product across $> 1000$ stores where a it sells. For each of these $1000$ stores we have 24 months recorded data. We want to be able to predict $S_t \leftarrow f(S_{t-1})$. We could build a RNN for each of the store time series, calculate te...
In the original paper for resilient backpropagation (http://paginas.fe.up.pt/~ee02162/dissertacao/RPROP%20paper.pdf), the author says "One of the main advantages of RPROP lies in the fact, that for many problems no choice of parameters is needed at all to obtain optimal or at least nearly optimal convergence time". Res...
I have a question on the slope coefficient of OLS compared to that for Quantile Regression, when facing homoscedastic error terms. The population model may look like: $y_i = \beta_0 + \beta_{1}x_i + u_i$ with $u_i$ being iid error terms. Will the estimated slope coefficient $\hat{\beta}_{1}$ converge to the same value ...
I am trying to make a regression with SVR and I found a problem in the process, the regression with random data is ok, but I tried it with my data, and with all of these three kernels the prediction's output is constant (see the plot). Here is a piece of my data, maybe the problem is here, but I cant'see why. data.csv ...
Typical training data for LDA is a count matrix $D \in R^{n\times m}$, where $n$ denotes the number of documents in the corpus and $m$ is the number of words of the vocabulary. $D_{ij}$ is the number of occurrences of word $j$ in document $i$. It seems to me the training data $D$ does not contain any structural informa...
Define $X$, $Y$, $X_1$, $Y_1$, and $Z$ to be some positive random variables, for each of which we know the distribution. Note that these variables are independent of each other. Let $t, a$ two positive constants and $f(X,Y)$ a function of $X$ and $Y$. Also, define the following events: Event $A: X \ge t$. Event $B: (X ...
Let $n=144$ observations from an $AR(1)$ model $$y_t=\phi y_{t-1}+\epsilon_t$$ where $\epsilon_t$ is White Noise with mean zero and variance $\sigma^2$. If $y_1=-1.7$, $y_{144}=-2.1$, $\sum_{t=2}^n y_t y_{t-1}=-128.6$ and $\sum_{t=1}^n y_t^2=246.4$. Find an estimate for $\phi$. I already found that the estimate o...
Typically, the Skip-Gram (SG) architecture is argued to be superior to Continuous Bag-of-Words (CBOW) for rare words because the CBOW averages over the input words (Mikolov et al., 2013). That is, CBOW's hidden layer is defined as: $$\begin{equation} {\bf h} = {\bf W}^T \sum^C_i({\bf x}_i) C^{-1} = {\bf W}^T {\bf \bar ...
I have a series of coordinates. I know that I can cluster these using some of the basic methods like k-means or hierarchical clustering. I can also easily find out which is the closest neighbor to each coordinate. However, how do I split the data into clusters, so that each cluster is exactly of size n, and that each c...
I am currently conducting medical research. It is a randomized blinded clinical trial to compare patient indicators of rehabilitation after a surgical procedure . One group of patients receives an injection of local anesthetic near a sensory nerve; the second group of patients receives the same injection of local anest...
I want to Calculating (stepwise) cumulative probability from discontinuous density in R. The density was estimated based non-parametric method (density() function in R), and the command returned a class including x (coordinates of the points where the density is estimated), y (estimated density values based on x) and t...
I am using Weka PART on my data set, and it is providing the rules below: Attribute0 > 765.012954 AND Attribute1 <= 141.732431: Unsafe (143.0/1.0) Attribute0 > 765.012954 AND Attribute3 > 163.157393 AND Attribute0 > 773.571142: Unsafe (65.0) I am able to understand the rules, but I am unable to understand what...
I was told that SVM would return good results for my research task, but afaik SVMs and Logical regression work with binomial class labels. How can I make them work with classes that have more than two possible values?
Allow me to state my use-case through a simplified example: coffee-machines. It makes it easier to understand :) Challenge: I have a series of devices (let's take coffee-machines as example) which each have irregular measurements of maintenance during which a value is measured (let's take the #coffees brewed). Over-tim...
A coin toss is referred as IID in several websites. What I want to know that if I'm understanding the concept right. If X denote a random variable which means the "result of a coin toss" then $x_1, x_2, ... , x_n$ are the results of repeated coin tossing. Are $x_1, x_2, ... , x_n$ IID? If yes, how can observations be v...
Do deep learning algorithms run into trouble when tasked with classifying high dimensional input into one of many categories? By many I mean thousands or millions. If it does, how could one deal with this problem? Any references?
I want to write a function that uses the greedy algorithm to solve the traveling salesman problem in R. For this problem I have been given a set of 12 points and have been asked to start the algorithm at a specific starting point. I understand the algorithm but am a bit stuck on where to begin.
I know that a phrase-based statistical machine translator finds the probability of a correct translation by analyzing a bilingual corpus text, and it maps phrases from the one language to phrases in the other language. By the frequency of maps between specific phrases it finds the probability. What I don't understand, ...
Let $n=144$ observations from an $AR(1)$ model $$y_t=\phi y_{t-1}+\epsilon_t$$ where $\epsilon_t$ is White Noise with mean zero and variance $\sigma^2$. If $y_1=-1.7$, $y_{144}=-2.1$, $\sum_{t=2}^n y_t y_{t-1}=-128.6$ and $\sum_{t=1}^n y_t^2=246.4$. Suppose $\sigma^2$ know, find $Cov(e_n(1),e_n(2))$, where $e_n...
I'm considering blocking my analysis dataset on one or two key variables prior to a standard sub-classification propensity score analysis. For example, if my dataset (which contains member level pre- and post-treatment period hospital utilization outcomes) is blocked on the # of hospital ED visits during the pre-treatm...
I've seen others searching for similar issues, but have not yet come across a example that explains how to actually do this: I have a dataset with both time varying and non-time varying variables that I want to examine using an extended Cox model. Some of the observations have missing non-varying variables. All time-de...
In book I have the following sentence: How can we understand "precisions" of different coeffcients(I am not native english speaker)? And why do we use quadratic function, in order to solve this problem?
Assume we have the following VAR(2) system, where $Z_t$ is an n-dimensional vector and $e_t\sim\mathcal{N}(0,I)$ are IID: $$Z_t = AZ_{t-1} + BZ_{t-2} + Ce_t$$ Is there a nice, closed-form solution for $\text{Var}(Z_t)$? Here's where I've gotten: $$\text{Var}(Z_t) = \mathbb{E}[Z_tZ_t^T] = \mathbb{E}[(AZ_{t-1} + BZ_{t-2}...
I have two classes $\omega_1,\omega_2$ with equal prior probability $P(\omega_1)=P(\omega_2)=0.5$. And the points in 2D are distributed $\mathcal{N}(\mu_i,\Sigma), \mu_1=(0,0)^T, \mu_1=(4,4)^T, \Sigma=\biggl(\begin{matrix}2&-1\\-1&2\end{matrix}\biggr)$. I got that the optimal bayes classifier is: $f(x_1,x_2)=\begin{cas...
I am studying a particular type of system. I have a theory that allows me to simulate how the system evolves based on some initial conditions. Now, looking at a real object, I am using machine learning to determine what initial conditions, if simulated, would give rise to an object with those properties. I am running ...
Suppose I have a sequence of iid random variables $X_1, \ldots, X_n$ following the pdf: $$ f_\theta (x) = \theta x^{\theta-1} $$ for $\theta >0$ and $0 <x<1$. I would like to obtain a level-$\alpha$ likelihood ratio test for the null hypothesis $H_0: \theta = \theta_0$ versus the two-sided alternative $H_1: \theta \neq...
The problem is given by: $$ \text{maximize}_{W} \ \operatorname{Trace}(W^T H W L) \tag{1} $$ $$s.t: \ W^TW=I$$ where $W \in R^{n \times n}$ is a matrix variable and $H,L$ are constant square positive definite matrices that have the size of $n$. I am thinking of converting it into a generalized eigen decomposition pro...
Looking at sci-kit learn regression metrics, it gives us 5 metrics: explained variance score and $R^2$ score; mean absolute error, mean squared error and median absolute error. The explained variance score and $R^2$ score are related and well explained on Wikipedia. The same occurs for mean absolute error and mean squa...
I'm working with some turnstile data. My factor variables are day of week (e.g, Monday - Sunday) and binned hour of day (e.g, 4, 8, 12, 16, 20, 00). My question is straight forward: To create a set of simple interaction variables (a la Python Scikitlearn PolynomialFactors) is it best to: Change day labels to integers ...
Some functions are identical between systems, for example nearest neighbour analysis. It would be unusual to have nearest neighbour implemented differently as appears in academic papers. Is it the same with maximum likelihood (supervised classification)? How likely is it that the same input imagery raster and same trai...
I have run an experiment in which I'm comparing the behavior of two groups of unequal size (group1 and group2), where each subject in the group has to take one two possible actions. So I'm ending up with data of the form: action_A action_B group1 3320 2273 group2 16154 9359 The results ar...
In Casella Berger's Statistical Inference, they define a power function of a hypothesis test with rejection region $R$ to be the function of $\theta$ define by $\beta(\theta) = P_\theta(X\in R)$ for some data $X$. Suppose that $H_0: \theta\in \Theta_0$ and $H_1: \theta \in \Theta_0^c$. Furthermore, they state that: $$ ...
The Karlin-Rubin Test gives conditions where the test $H_0: \theta \leq \theta_0$ vs $H_1: \theta >\theta_0$ is UMP, I am wondering what we can do in cases where $H_0: \theta \geq \theta_0$ vs $H_1: \theta <\theta_0$? In this case do we just invert the test?
When should one use the different types of ARIMA model as mentioned below: Estimate the model order in the training data set and use the same order to forecast future values (updating the parameter estimates) Use a rolling window (e.g. 30 day) to make a new forecast by estimating model order and parameters everytime t...
I read somewhere that it is possible to convert a test $H_0: \theta\leq \theta_0$ v.s. $H_1: \theta > \theta_0$ equivalent to simple (point) hypothesis. I am wondering if there is a theorem encapsulating this? I would like to convert the composite hypothesis above into a simple one so that I can use the Neyman-Pearson ...
I understand that pivotal quantities are usually found for finding confidence intervals via inversion. However, I am wondering if there is an intuition behind a pivotal quantity having to depend on our data and parameters $(X, \theta)$ while having a distribution that is free of the parameters. Is it so that we can iso...
Q-Q plot of residuals for data set Graph showing the relationship between length of dogwhelk shell and distance from the low tide mark, with linear regression line, 95% confidence interval lines and 0 gradient line (red). Does the Q-Q plot mean that there are are less 'smaller dogwelks' than 'larger dog whelks',
Why use Differencing and Box-Cox transformation in a time series? From what I read the usefulness of the procedures are Differencing: Making a time series stationary and stabilize the mean Box-Cox: stabilize the variance Is there anything else behind it? I know that there is some useful properties in a Stationary Pro...
I am trying to remove features with low variance using VarianceThreshold It seems to me that we should normalize the data before calculating variance, but somehow VarianceThreshold is not doing it automatically. Thoughts ?
Generally speaking, polynomial distributed lag (PDL) models deal with independent variables and autoregressive (AR) models deal with dependent variables (their errors), but are there ever occasions where one specifies a lagged term of a independent variable alongside an AR term? I have not come across this too much in ...
I have run a nearest neighbor clustering of some data, and I have a matrix of cosine distances. However, I'm confused on how to plot it visually, or what units, if any these distances exist in. It seems if I create a scatter plot of the distances, I get a perfectly straight diagonal line. If I flip one axis, things loo...
A transition matrix is regular if some power of the matrix contains all positive entries. [1] Its powers have all positive entries... Why isn't this matrix a Regular Transition Matrix? Reference: [1] http://fazekas-andras-istvan.hu/9_11_markov_lancok/DFAI_MARKOV_CHAINS_02.pdf
I was trying the filterVarImp function in caret package. While the outcome was categorical we get ROC as the importance measure. My question is: How is the function doing it? Is it fitting a model and then predicting probabilities to compare with target to give AUC or comparing itself directly? How is categorical predi...
If for a discrete distribution we can say that its PDF answers a question of something like "How possible is exactly this value?", then what would a be similar "human" interpretation of a PDF for a continuous distribution? And in R, how in some kind of "practical" terms can an illiterate like me interpret something li...
I was reading this post on quora https://www.quora.com/What-are-the-advantages-of-different-classification-algorithms It states here that :-"Logistic regression is a pretty well-behaved classification algorithm that can be trained as long as you expect your features to be roughly linear and the problem to be linearly ...
In the book Sequential Monte Carlo Methods in Practice, the beginning of section 1.3.1. I am confused by the notation used $$P_N(dx_{0:t}|y_{0:t})=\frac{1}{N}\sum_{i=1}^{N}{\delta_{x_{0:t}^{(i)}}(dx_{0:t})}$$ This is what is referred to as the empirical estimate of the posterior distribution. I would like to know what...
I'm a real newbie when it comes to statistics so please don't judge me and my question ;) I'm doing a linear regression analysis with SPSS and since my data is neither normally distributed nor shows homoscedasticity, I decided to use bootstrapping. Now, I'm really confused when it comes to the interpretation of the out...
I have a four factor scale that I just finished CFA on, and I was advised to use the chi-square test of differences to check for discriminant validity to reinforce my AVE based test for it. I read here (http://zencaroline.blogspot.com/2007/05/discriminant-validity.html, which cites Bagozzi & Yi, 1991, and an applicatio...
I go confused about what I read about the t test: We calculate the t statistic (obtained), which "represents the number of standard deviation units (or standard error units) that our sample mean is from the hypothesized value of µY, assuming the null hypothesis is true" (Frankfort-Nachmias and Leon-Guerrero 2011...
I am interested to fit distribution to the count data presented as histogram below: Is there a way to understand what is the most likely distribution of the data without apriori hypothesizing the distribution? Following, let's say I suspect the data to be distributed according to zero-inflated Poisson distribution. If...
My daughter has gathered data relating to rock pool populations of various entities across 5 months, on two sites, one with a lot of human interaction and one with little. She is starting to look at comparisons on a particular month between results in the two environments, so the data appears as: Species Di...
How can I perform a two sample t-test if one sample is small (n<30) and one sample is large (n>30). The usual method is giving wrong results. What should I do?
I am trying to understand the following part about equivariance to translation from the deep learning book by Goodfellow, Bengio and Courville (chapter 9.2, page 338-339): To say a function is equivariant means that if the input changes, the output changes in the same way. Specifically, a function $f(x)$ is equivarian...
I don't understand why there is a difference between the pdf and the normalized histogram (based on randn) I plotted in matlab. Especially from -2 to -3 the difference is huge. Why is the normalized histogram so far of from the ideal pdf? Here is my code: q = [-3:6/99:3]; % x-Axis f_q = (1/sqrt(2*pi*1))*exp(-0.5*(...
I see suggestions like this for tuning a GradientBoostingRegressor's params through multiple steps. In each step, the best params are selected via CV. For example (abbreviated steps): find some of the best tree-based params through grid search find the remaining best tree-based params through grid search, having fixed...
I'm a high school maths teacher and I was helping a pupil who had collected data for her project. I summerise the information in the table below. $\begin{array}{c|cc|c} & Y & not Y & \\\hline X &360 & 83& 443\\ not X &46 &19 &65\\\hline & 406& 102& 508 \end{array}$ I advised her to do a chi-squared test to test the...