instruction
stringlengths
9
38.7k
I am wondering why max-t methods use the maximum of the t-values to generate the distribution. Does this not make it overly conservative compared to other methods, since the critical value will be decided by the 0.05 quantile of only the maximum of the generated sample? This question also encompasses the analog of the ...
When I run a mutiple regression on 3 independent variables(2 dummy variables with multiple levels each and a metric variable). In my result only few levels of a dummy variable are significant. The result of the levels for the same dummy variable are insignifcant. How do I interpret it? Is the whole variable with multip...
What's the time complexity of training a Gaussian process and its Expectation Propagation approximation? (Before studying them, I'd like to understand if they are even feasible for my application)
I am trying to fit a model investigating the amount of the loan (or a transformation of it) as a function of the the variables income, gender, customer and age. Fitting a standard linear regression gives poor results (R-squared of only 0.27). Besides, the relationship between income and loan seems quite weird. It has ...
My goal is to make a logistic regression. The DV is a yes or no variable, and I already found 3 significant IV in my model. The problem is: I have 5 other categorial (yes or no) variables (they are nearly about the same topic) that I think they have an impact in the DV. Unfortunately, none of them were significant i...
I am currently doing a short term forecast using ARIMA model.I have been following Box and Jenkins method and to choose the best ARIMA parameters to do do my forecast I tested various(p,q) combinations and took the one with the lowest aic(akaike information criteria). I assigned a d value as the number of differenciati...
I am a bit lost in the process of WLS regression. I have been given dataset and my task is to test whether there is heteroscedascity, and if so I should run WLS regression. I have carried out the test and found evidence for heteroscedascity, so I need to run the WLS. I have been told that WLS is basically OLS regressio...
I ran a mixed model using lme4::glmer for a logistic regression and consistently got these warning messages. I noticed there are still regular results even so, but are they accurate estimates? > glmm.ms1<-glmer(as.formula(paste(paste(y[1], x, sep="~"), mix[1], sep="+")), + data=rtf2,control=glmerCon...
I'm very new to R and PLS-regression. I would like to know, based on your experience, which R packages for PLS-regression are most highly recommended. My area of application is chemistry.
I read many times that data binning of continuous variables is a very bad idea. For instance, let's take something like heart rate and let's define the following 2 bins: (125 - 135), (136 - 145) Let's say that (136 - 145) corresponds to a hard effort. If your exercise session causes your heart rate to stay at 135 consi...
There are often differences between results of Skewness & Kurtosis and normality tests, and I have always doubts if it is better to choose parametric or nonparametric tests (I use SPSS). Sometimes histograms show if distribution looks normal or not, and I noticed that most often S&K are better pointers but when I did a...
I'm trying to fit a spline for a GLM using R. Once I fit the spline, I want to be able to take my resulting model and create a modeling file in an Excel workbook. For example, let's say I have a data set where y is a random function of x and the slope changes abruptly at a specific point (in this case @ x=500). s...
I'm using a genetic algorithm (GA) to estimate the minimum value of a likelihood function $L[x]$ which is too complicated to evaluate mathematically. This likelihood function quantifies the goodness of fit between a model (which depends on the $x$ parameter) and a set of $M$ observations $O=\{a_1, a_2, ..., a_M\}$. Aft...
I have two beta-distributions: $H_1 = Beta(\alpha_1, \beta_1) $ and $H_2 = Beta(\alpha_2, \beta_2) $ (parameters are known), and I'd like to estimate whether a new sample $D$ rather comes from $H_1$ or $H_2$. It seems that Bayes factor is the solution $K = \frac{\int \Pr(\theta_1|H_1)\Pr(D|\theta_1,H_1)\,d\theta_1} {\i...
I am new here, so I hope this question is on topic. I understand a little about statistics, but my knowledge of what methods to use in real case scenarios is a little limited. I want to statistically analyse the accuracy of my developed system. This system is used to obtain a specific measure of an user, let's call it ...
Autocorrelation is defined as $\rho(\tau)=E((x_i-\mu)(x_{i+\tau}-\mu))/\sigma^2$ which should have a value between $\pm1$. However, what if both $x_i$ and $x_{i+\tau}$ are significantly larger than $\mu$? Would it not be possible to have correlation greater than one? I'm particularly thinking about large lags where you...
In regression, the beta value represents the increase in $y$ if $x$ changes one unit. The standardized beta gives the same information, but for increase in standard deviations. But why can't $y$ increase by 2 SDs if $x$ increases by 1 SD, for example? I mean, if the influence is heavy enough? Also, I assumed the correl...
I'm testing the effect of four different altitudes (0m, 1000m, 2000m and 3000m) on repeated sprint performance (6 sprints at each altitude). I have 8 test subjects who will be tested at each altitude. That means I'm getting 8x4x6=192 sets of data. What I want to investigate is the difference in performance at the 4 d...
The algorithm is used to classify english vs non-english tweets from unlabeled data. Given n observed tweets (x1 ... xn) where each tweet xi is a collection of d words (xi1 ... xid). y is the class (english/non-english). We use EM to estimate the parameters (thetas). It is used in this paper: http://www2013.wwwconfere...
I want to compare performance of strategies on a group of tasks. I determine performance by running simulations, so I can independently run every strategy on each task (repeated measures): strategy_A task_1 result_sA_t1 strategy_A task_2 result_sA_t2 strategy_A task_3 result_sA_t3 strategy_B task_1 result_sB_...
In ordinary least squares, we can use an errors-in-variables model when one or more of the regressors are measured with additive noise to ameliorate the effects of attenuation bias. We just need to know the reliability $r = \left( 1-\frac{\text{noise variance}}{\text{total variance}} \right)$. Is there an analogous re...
I have three vectors with sampled values in MATLAB, each from a specific probability distribution. (The vectors contain time series data of the growth rate of retail prices of specific goods) %pearsrnd(mu,sigma,skew,kurt,m,n) commodity1=pearsrnd(0.005,0.085,0.237,7.899,1,600); commodity2=pearsrnd(0.003,0.040,0.280,5.63...
I have a matrix with about 550k elements (2500 x 220) with 100k values known and the rest are unknown. Would it make sense to use matrix completion in this case, or are there too many values which are missing? What should I be careful of when I use matrix completion with it, if there are enough values there?
I have noticed that in some datasets that can be modeled using a power law distribution, there appears to be a kind of second tail trailing off at the lower end which appears as an almost horizontal line in log-log (for instance, see the figure below; source). Is there any theory as to why this might happen?
I am looking for reference for a high order MA model. Shall be extremely grateful for a reference.
I am looking for the correct way of performing post-hoc analysis on the results of a 3-sample test for equality of proportions and haven't been able to find anything specific to this test. The data I am analyzing looks like this: pos.late neut.late neg.late pos.early 88 12 4 ...
Suppose I have two models created by calling glm() on the same data but with different formulas and/or families. Now I want to compare which model is better by predicting on an unknown data. Something like this: mod1 <- glm(formula1, family1, data) mod2 <- glm(formula2, family2, data) mu1 <- predict(mod1, newdata, type...
I'm measuring the error produced by operators executing planar cuts under different guiding systems. I define a target plane and then measure the euclidean distance from uniformly sampled points in the target plane to the executed plane. Since the target plane is my coordinate system reference, I define it as the plane...
I have a data set of observations concerning an attribute that was collected over specific points of time. However, there are huge variations (hundreds to tens of thousands) in the number of data points among individual time points. The maximum and minimum values are not very different though. I am interested in det...
I have a dataset with a binary (survival) response variable and 3 explanatory variables (A = 3 levels, B = 3 levels, C = 6 levels). In this dataset, the data is well balanced, with 100 individuals per ABC category. I already studied the effect of these A, B, and C variables with this dataset; their effects are signific...
I have a question about using R to fit an AR model. If we want fit a AR(p) model, the equation will be $Y_t = φ_1Y_{t-1} + φ_2Y_{t-2} + ... + φ_pY_{t-p} + Z_t$. What about I only want to fit the model like $Y_t = φ_1Y_{t-1} + φ_{11}Y_{t-11} + Z_t$? ($Z_t$ is white noise). Does anyone know how to fit this model in R?
The response variable I'm dealing with is the proportion of a total area that is suitable habitat for a species of interest. So although the response variable is bounded between 0 and 1, my intuition is that it wouldn't be appropriate to call it binomial since the numerator and denominator of the proportion are non-int...
Is it reasonable to use forward sampling to compute the probability of P(X_1=x_1, ..., X_N=x_n) in an HMM where is the observation variable? Is the forward sampling algorithm related to the forward-algorithm for HMM?
I don't have a strong math background, so I am kind of stuck trying to understand how RBMs work. On wikipedia page about RBMs, I am able to understand the formulas in isolation, however, I'm not sure how these formulas are connected together. More specifically, isn't there cyclic dependency between energy function, pr...
Given this dataset : name1,name2,distance a,b,1 a,c,5 b,c,8 If k=1 is the following correct : a,b nearest neighbour is b,c a,c nearest neighbour is b,c b,c nearest neighbour is a,c or "a" nearest neighbor is b since distance(a,b) is 1 "b" nearest neighbor is a since distance(a,b) is 1 "c" nearest neighbor is a si...
Suppose I have a very simple model of wages: $w_t = \alpha + \beta_1p_t^e + \beta_2p_{t-1} + \beta_3u_t + \epsilon_t$ What are the ways of dealing with the price expectation? I've thought about an adaptive expectations model, which I could recursively substitute, i.e.: $p_t^e = \gamma p_{t-1} + (1 - \gamma)p^e_{t-1}$ A...
3 random variables have equal pairwise correlation, what are the possible values of correlation? I think 1 and 0 are the obvious answers, but are there any more, and how could I find them?
Suppose I have some survey data on which I'd like to conduct an analysis similar to this: Yang, Age-period-cohort analysis, Ch 7. Suppose further there are missing data I wish to handle via multiple imputation. Good practice requires that I include in the imputation model all the terms that I intend to include in the ...
I have data of operation success of many doctors. I estimated a regression using Stata with fixed effects on the individual doctors. I first ran the regression using robust option. The resulted t value of estimates of individual doctors ranges from 2.17 to 6.14. Then I re-ran it using the vce(cluster doctor) option. I...
Suppose that out of a population we measure 100% of $x_i$ and 50% of $y_i$. Now, we use the 50% measured pairwise $x_i$ and $y_i$ to adjust model 1: $$Y = \beta_0 + \beta_1X + \epsilon_1$$ Based on this model we predict the other 50% $\hat{y_i}$. Then, we have 100% of measured $x_i$, 50% of measured $y_i$ and 50% of pr...
I am implementing code to compute the two-sided Fisher exact test of 2x2 contingency tables in C. I read that R's implementation is not the most efficient way to calculate the p-value for a two-sided test. My first question is, how is this implemented? Wikipedia states "An approach used by the fisher.test function in R...
I have a dataset with a few million rows and ~100 columns. I would like to detect about 1% of the examples in the dataset, which belong to a common class. I have a minimum precision constraint, but due to very asymmetric cost I am not too keen on any particular recall (as long as I am not left with 10 positive matches!...
I understand how to test programs that are either right or wrong. But what if permissible some inaccuracy? How to distinguish a bug in the implementation of bad classifier? Naive solution (baseline)? But it seems that it will help to find the only really bad solution. I think you understand what I mean. What are the w...
My data is described here What can cause a "Error() model is singular error" in aov when fitting a repeated measures ANOVA? I am trying to see the effect of an interaction using lmer so my base case is: my_null.model <- lmer(value ~ Condition+Scenario+ (1|Player)+(1|Trial), data = my, REML...
We are performing a longitudinal analysis over different characteristics (variables) of a single subject of analysis. Our goal is not to make any predictions, but rather analyse correlations among these different variables. No data is ever missing, and all variables are guaranteed to have a value at a given point in ti...
I have a continuous variable X that is associated with a continuous outcome Y and a dichotomous outcome Z. If I calculate Pearson's $r$ between X and Y, and the point-biserial coefficient $r_{pb}$ between X and Z, and find that the coefficient between X and Y is much higher than the coefficient between X and Z, can I s...
I am using KL Divergence as a measure of dissimilarity between 2 $p.m.f.$ $P$ and $Q$. $$D_{KL}(P||Q) = \sum_{i=1}^N \ln \left( \frac{P_i}{Q_i} \right) P_i$$ $$=-\sum P(X_i)ln\left(Q(X_i)\right) + \sum P(X_i)ln\left(P(X_i)\right)$$ If $$P(X_i)=0$$ then we can easily calculate that $$P(X_i)ln\left(Q(X_i)\right)=0$$ $$P...
I'm working with data on litter (fallen leaves, flowers, etc) accumulating under different genera of trees. I have a year's timeseries for each genus, and I'm really more interested in comparisons among genera than trying to fit regressions to seasonality, etc. I'm thinking to use some sort of timeseries tests because ...
A box contains $n$ balls numbered from 1 to $n$. Suppose you take a ball at a time, putting it back on the box, until you pick a ball twice. How many balls are you expected to take from the box? Let $X$ be the r. v. of interest. Its support is every natural number from $2$ to $n+1$. If $k$ is one such number, to get th...
I have the following dataset: results <- data.frame(Date = c("A", "B", "C", "D", "E", "F", "G", "H","I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S"), P1 = c(0.43, 0.45, 0.57, 0.15, 0.5, 0.33, 0.26, 0.81, 0.43, 0.48, 0.14, 0.26,-0.21, 0.27, 0.37, 0.33, 0.68, 0.15, 0.44)) I want to know, if there...
I have some analysis that compares relative velocity shifts between regions. I have a representative sample below (in reality there are more regions -- this is for clarity). Assume that I have a dataset with 4 regions -- and the possibility of a relative velocity shift between all four. The only method that I have for ...
What are theoretical reasons to not handle missing values? Gradient boosting machines, regression trees handle missing values. Why doesn't Random Forest do that?
I am running a survival analysis with descrete time. For that purpose I use the R package survival with this function surv.km <- survfit(formula = Surv(analyse$Time, analyse$Event) ~ 1, conf.type = "log", conf.int = 0.95, type = "kaplan-meier", error = "greenwood", data = analyse) In the following the terms, notatio...
I kinda have some trouble trying to start with this question. I know how to derive a Neyman-Pearson Test and its critical region. My main concern is deriving the Likelihood function of the sample given its null hypothesis and its alternative hypothesis. I'd like to solve this on my own but I'm not sure how to start i...
I've been analysing some data using linear mixed effect modelling in R. I'm planning to make a poster with the results and I was just wondering if anyone experienced with mixed effect models could suggest which plots to use in illustrating the results of the model. I was thinking about residual plots, plot of fitted va...
Context: I'm developing a system that analyzes clinical data to filter out implausible data that might be typos. What I did so far: To quantify the plausibility, my attempt so far was to normalize the data and then compute a plausibility value for point p based on its distance to known data points in set D (= the train...
I have an experiment where every person needs to take reaction tests when he/she is sober, then when lightly and then heavily intoxicated. I need to perform a test that tells if the intoxication had effect on the reaction tests on a specific person. (I am NOT testing if the intoxication have effect on the reaction test...
I'm trying to build a monitoring system that will automatically raise a warning when a dramatic change happens to some of the observed parameters. My problem looks like this: We send out e-mails to a large number of recipients. For each pile of emails, we have a few parameters such as the number of e-mails that were s...
I'm currently writing my thesis and derived some closed form solutions. However, these solutions need to get estimated to use in practice. I thus should know the multivariate distributions of some stochasts. The found formula is as follows: $\frac{ \sum_{i=1}^n \sum_{j\neq i} var(\bar{c}_{i,j}) - cov( c_{i,j} , \bar{c...
After centering, the two measurements x and −x can be assumed to be independent observations from a Cauchy distribution with probability density function: $f(x :\theta) = $ $1\over\pi (1+(x-\theta)^2) $ $, -∞ < x < ∞$ Show that if $x^2≤ 1$ the MLE of $\theta$ is 0, but if $x^2>1$ there are two MLE's of $\theta$, e...
Is there trend or seasonality in the attached time series graph ?
I want to compare some network properties such as entropy, connectivity, etc., between 2 groups. I have time series fMRI data on patients (n = 80) and controls (n = 30) for certain regions of the brain. My question is how should I correctly control for age and gender within my patient group before doing any further an...
I'm having a problem in doing a GARCH(1,1) regression. I'm trying to regress gold prices serie on stock returns series as in the following equation in eviews: $$ r = c(1) + c(2) \cdot s + c(3)\cdot d10\cdot s +c(4)\cdot d05\cdot s + c(5)\cdot d01\cdot s , $$ where $r$ is gold prices, $s$ stands for stock prices and $d...
I have one categorical variable (on a diet: yes or no) and two numerical variables (patients heart rate and blood pressure). Do I use a multiple logistic regression? Or should I look at each numerical variable separate with regards whether they are on a diet? That way I would only look at simple logistic regression.
Neural Networks are usually trained using a gradient based learning algorithm, such as the back propagation algorithm or some variant of it, but can you use global optimization algorithms, such as the Genetic Algorithm, Nelder-Mead Polytope Algorithm, and Particle Swarm Optimisation to train the network? Since training...
Using Kolmogorov's forward and backward equations, show that $p_{11}(t) + p_{21}(t) + p_{31}(t) = 1$ and $p_{21}(t) = p_{31}(t)$ where $p_{ij}(t) = P(X(t) = j | X(0) = i)$. My attempt: I can show the first part but not the second, that is, for all $t \ge 0$, the forward equations for $p_{11}$, $p_{21}$, and $p_{31}$ a...
Using Laplacian Smoothing we can get rid of 0 probabilities if a term occur in spam and does not occur in ham class or vice versa. My question is about what if a term in test document does not occur in training dataset(i.e. in dictionary). For example if we extend example in page 44 in -> http://www.stanford.edu/class...
I have data from 50 human subjects, who are divided into groups A and B (30 participants are in group A and 20 participants in group B). I also have a range of measurements from each subject. I have used a machine learning algorithm (SVM) to predict the subject groups from the features using leave-one-out cross-validat...
I'm trying to understand how fitted values are calculated for ARMA(p,q) models. I've already found a question on here concerning fitted values of ARMA processes but haven't been able to make sense of it. If I have a ARMA(1,1) model, i. e. $$X_t = \alpha_1X_{t-1}+\epsilon_t - \beta_1 \epsilon_{t-1}$$ and am given a (s...
You experts have been helpful so many times that I read others' threads, but this time I have to ask a new question. Long story short I need to group all my cases into 4 categories. Could someone please help me figuring out the procedure in spss? (I have individuals' scores on 2 variables - fashion innovativeness and f...
Using JMP, I was able to fit a distribution to a set of data, using the normal-2 mixtures model. It returns location (or mean), dispersion (standard deviation) and probability for each of the two normal distributions used to create the normal-2 mixtures. Now, I want to be able to take any data point from that populatio...
Consider the following demand and supply model: Demand equation: $q=a_1p+a_2y+e^d$ Supply equation: $q=b_1+p+e^s$ The supply equation is identified because $y$ can be used as an instrument for $p$. The demand equation is not identified as it stands. I am struggling to understand how linear restrictions on ...
Consider the the following structural model: $y=\beta_1x_1+\beta_2x_2+u$ where $u$ is an iid disturbance term. Suppose $E(u|x_1)=0$ but $E(u|x_2)\neq 0$.For $z_2$ to be a valid instrument, it must satisfy the following two conditions: 1) $E(u|z_2)=0$ 2) $E(x_2|x_1, z_2) \neq E(x_2|x_1)$ I am struggling to understand th...
I am trying to find the best way to represent genetic distances in a plane so that they may use them as response variables in canonical redundancy analysis (using rda() in vegan). While there are admittedly many genetic distances to choose from, none of them are Euclidean, which produces negative eigenvalues when we "s...
I was wondering how you interpret the p-value of a coefficient for a multivariate linear regression. Is the p-value intepreted only when everything else is fixed? Is there a way to incorporate the dependencies of other variables?
Given i.i.d. draws $x_1,...,x_n$ from $X$, where: $X$ has a finite mean $E[X]=\mu < \infty$, $X$ is symmetric about its mean, meaning $f_X(\mu+c)=f_X(\mu-c)$ for all $c$, The probability density function $f_X$ is not otherwise known. Is it possible to prove the following? Proposition. The MLE for the mean of $X$ is ...
Consider the following model: $wage_i = \beta_0 + \beta_1male_i + \beta_2private_i +u_i$ where $male_i=1$ if male; $0$ if female, and $private_i=1$ if private school; $0$ if state school. The base group is females from state schools. So when $male_i=1$ and $private_i=1$, the coefficients $\beta_1 + \beta_2$ measure the...
In my text, we're told to use PACF to find the order of MA(q) models and ACF to find the order of AR(p) models. But in a homework problem, the professor specifies the order of an AR(p) model using the PACF. This is pretty confusing. Can anyone shed light on the apparent contradiction?
I have two (related) questions regarding the simulation of correlated, non-normal data with a user-specified value of Mardia’s 1970 multivariate kurtosis. (1) It is very common in my field to use the method developed by Vale and Maurelli (1983) of doing a polynomial transformation of standard, normal random variables (...
This model is a replication of an earlier study. After factor analysis in SPSS, I need to test my hypothesis (as you can see there are 7) all should give significant positive relation with each other. For example, Innovativeness has a significant positive effect on Ease of use etc. My supervisor insists that this is m...
Which test should I use to test the difference of monthly opinion poll? If I want to know whether the poll result of April is significantly different from March, should I use independent t test or paired test? If I use independent t test, it seems that I am comparing two groups of people instead of change over time, ho...
I'm trying to determine which type of learning algorithm is best for making predictions on my data. My data set consists of several independent variables, each of which is accompanied by an "indicator" variable that represents the sample size used to acquire its specific value. Let's say I'm attempting to assign expect...
There is a population $D$ in which each data point has two attributes $X$ and $Y$ that are randomly distributed. While they are probably not exactly normally distributed I imagine they are not too pathological. I don't know their means and $s.d.$'s, but they are likely to be somewhat similar. I also don't know a priori...
In situations where unequal variance t-test is appropriate, if we use equal variance t-test, type I error would be inflated. I created a likelihood ratio test (LRT) equivalent of unequal variance t-test, but for some reason, it performs poorly (i.e., worse than equal variance t-test). This problem persists even if I in...
This is beyond a R question, But why doesn't it make sense to fit a model, say, a linear discriminant (LDA) model, with leave-out-one cross validation, and afterwards to use this model to predict a new data set? Is this reasoning right or not: using such cross validation is a way to measure the performance of the model...
How to prove higher eigenvalues correspond to significant principal components? Is there any explanation or at least intuition for that, if not a proof? I would like to convince myself with some intuition that eigenvalues of covariance matrix correspond to principal components and higher eigenvalues correspond to sign...
I am having a few problems with my analysis and hope that somebody can help me out. About my design: I have 120 respondents, who I showed each 7 facebook posts out of a pool of 16 (randomly assigned). Each facebook posts was "ranked" by them on 1 DV (shares) and 3 IV (entertainment, information and emotion). Due to the...
I realized that, never been observed words in training sets, decrease test probaility of documents being spam and not spam after i mentioned here and this link "... you need to account for it as a highly unprobable one." was helpful. I think it is an important problem. Spammers might use this by adding their spam mails...
Zuur 2013 Beginners Guide to GLM & GLMM suggests validating a Poisson regression by plotting Pearsons residuals against fitted values. Zuur states we shouldn't see the residuals fanning out as fitted values increase, like attached (hand drawn) plot. But I thought a key characteristic of the Poisson distribution is tha...
I have data on two groups of subjects. Each group was measured three times, and there were four dependent variables all measuring the level of fitness (score of a person's heart rate in five stages of the test, minutes they achieved, distance they achieved and rated perceived exertion). My hypothesis is that there wi...
ll, I'm working with a bivariate time series $(X_{t},Y_{t})$. Looking at the two time series separately, $X_{t}$ appears to be white noise. This is supported by looking at the empirical ACF and PACF of $X_{t}$ and by performing the Ljung-Box-Test for various lags (very high p-values). My model for $X_{t}$ would theref...
I'm trying to fit a generalised pareto distribution to a simulated dataset using JAGS and runjags. When doing so, I get very strange density and mixing plots for the mu parameter. The sigma and xi parameters are estimated as expected. How should I interpret these plots, and proceed to fix my model? The plot and a rep...
As I understand it, Pearsons residuals are ordinary residuals expressed in standard deviations. I ran this Poisson regression: library(ggplot2) glm_diamonds <- glm(price ~ carat, family = "poisson", data=diamonds) I then saved the Pearsons residuals and fitted values from the model: resid <- resid(glm_diamonds, type ...
$R\sim Bi(n,\theta)$ i. The MLE of $\theta$ is $t_1(R) = R/n$. Find the MSE of the estimator ii. prove that $t_2(R) = R/(n+1)$. Show that the $t_2$ has a lower MSE for $0<\theta<$ $2n+1\over 3n+1$ iii. Explain which estimator is better I calculated that the MSE of $t_1$ is $$ \mbox{MSE}(t_1) = Var(R/n) = \frac{1}{n^2...
I'm using OpenANN to train a neural network with one hidden layer and a softmax output layer with cross entropy as the error function. For my application, the conjugate gradient algorithm seems to be a good performing algorithm compared to for example LBFGS. The image below shows the training error and validation error...
I have a contingency table computed from the out of sample observations. In some cases not all classes are represented in the out of sample and hence do not appear. I want to coerce the contingency table to report zeros for classes not in the out of sample. How can I do it efficiently. For example my contingency table ...
I'm trying to detect subpopulations of data in a set of data. The problem is that the data may have more than one subpopulation and the subpopulations may not be normally distributed. For example, the data could look like this.... The Y axis is the count and the X axis is the value. What I want is to determine the ...
With a paired sample t-test I found out that participants communicated more pride about a team achievement than about an individual achievement. What I would like to examine now, is if this difference between communicated pride about a team achievement and an individual achievement is larger for Indians compared to Ame...
I was using this online calculator to work out McNemar's Test on this data set: I get the results: The two-tailed P value equals 0.1859 Chi squared equals 1.750 with 1 degrees of freedom. Now I understand how to calculate the Chi squared but I have no idea where this P value comes from. Also how does the P value rel...
So first this question asks "how I would discriminate between model(1) and model(2)". It appears that both models are non-nested so I would come up with a hybrid model consisting of Xt,Zt and Qt regressors. I know I need to test for Zt=0 and Qt=0 but I'm not sure if I need to test for Xt=0. My logic tells me no as the...