instruction
stringlengths
9
38.7k
We are predicting the outcome y for a new data point x (a column vector). If we had observed y, what is $y - \hat{\beta}^T x$ typically known as? I thought $y - \hat{\beta} x$ was the residuals, but with $\hat{\beta}^T$, I'm not sure if it is something else.
One of the main assumptions of the naive Bayes model is that the features are independent. This allows probabilities to be estimated. However, often times it is understood that this assumption doesn't hold in the data. Naive Bayes is, however, still used for applications like text classification because it still provid...
I'm having some trouble mentally visualizing how a 1-dimensional convolutional layer feeds into a max pooling layer. I'm using Python 3.6.3 and Keras 2.1.2 with Tensorflow 1.4.0 backend. In [1]: # Build model ...: # =========== ...: NUMBER_OF_POSITIONS = 500 ...: # Input Layer ...: input_layer = Input(shap...
Let's say we have supervised learning problem with a dataset consisting of 100 features and 100k labeled data points (numbers don't matter). Why is feature selection and feature extraction such an import task? Intuitively, throwing away features aka information seems a bad idea. Furthermore I thought that it's o...
I'm currently doing some univariate forecasting using a small data set of about 36 observations and R software for analysis. I've found that the basic visual inspection of ACFs and PACFs coupled with ADF tests for checking for stationarity yields different lag selection than it does when using information criterion. ...
I would like to find automatically a reasonable elbow point in this plot. In particular to select the value of epsilon in DBSCAN. The points are sorted on descending value of ordinate. Visually I would say that the elbow point is when the ordinate is between 0.2 and 0.3, but it is hard to say with precision given the ...
I am running an analysis with longitudinal study design. I have previously described data my data here. In general, why is time considered as a numeric variable rather than a factor in a longitudinal analysis?
In the context of record linkage, data de-duplication, or entity resolution, we attempt to merge entities that refer to the same thing into a single object. The obvious example is an address database where there are multiple entities for the same John Doe, but perhaps with slightly different spellings, mistakes or othe...
Lasso regularization has the nice property of creating coefficient sparsity. Generalizing to Lp regularization, is it possible to regularize a logistic regression with p < 1? I would like to control the sparsity, possibly at the expense of performance. Is there a way to do this in Python? Scikit-Learn only has L1/L2.
I have only recently learnt how to undertake a regression analysis in R. I was wondering whether someone could help me in interpreting what my ggplot result shows below?
I had a question regarding how to best perform "sensitivity analysis" on a Beta prior used for a estimating a proportion from a binomially distributed data problem (i.e., beta-binomial problem). I understand that the shape parameters $\alpha$ and $\beta$ move the Beta to right and left. But how much and on what basis s...
I'm using XGBoost on a dataset with 3 classes. However, I primarily care about the precision of 2 of the classes. It should also have decent recall, otherwise the algorithm might classify everything as the 3rd class. How would I write a custom objective function for this? I'm not too familiar with gradients and Hessian...
Suppose that we are given the matrix, $$ A = \begin{pmatrix}6/5 & 3 & -3/10 & -4/10\\ 7/5 & -7/10 & 7/10 & 14/5\\ -6/10 & -7/10 &-1/2 & 3/10\\ 12/5 & 1 & 2 & 3/2\\ -3/5 & 4/5 & -1/2 & 12/5\\ 4/5 & 2 & -1 & -3/10\\ -1 & 1 & 0 & 0\\ 0 & 0 & 1 & -1\\ 1 & -1 & 0 & 0 \end{pmatrix} $$ I've been given a problem asking t...
Forstmeier et al 2017 claim that when testing 1000 hypotheses with a p-value threshold of α =0.05 and a scenario where 10% of the hypotheses are true, 45 null hypotheses will be wrongfully rejected. Consider a thousand hypotheses H1 that we might wish to test. Many of these may not be true, so let us start with a scen...
We all know the formula for Bayesian inference: $$P(\theta|\mathbf{x}) = \frac{P(\theta|\gamma)P(\mathbf{x}|\theta)}{P(\mathbf{x})}$$ In this approach, we replace a fixed $\theta$ with a latent, random effect $\theta \sim P(\theta|\gamma)$ with $\gamma$ being what are called "hyperparameters". Now, in the context of in...
I'm trying to plot in R a cumulative accuracy profile (CAP) Curve. Additional, after I will build the curve, how am I calculate the AR.
Assume that we have data $x =(x_1,x_2,x_3,x_4,x_5)$ and we have $y = (x_1+x_2,x_3,x_4,x_5)$ where $Y \sim \operatorname{Multinomial}(\sum x_i,(0.5,\frac{\pi}4,\frac{1-\pi}4,\frac{1-\pi}4,\frac{\pi}4))$ I would like to know the distribution for $ X_1|X_1 + X_2$ so i try: $$P(X_1 =x_1 | X_2 = c-x_1) =\dfrac{P(X_1 =x_1 ...
I've got an completely unlabeled dataset and my task is to classify it into positive and negative, two categories. As the data is unlabeled, I have to choose unsupervised classification; however, we also have some reasonable business guesses about possible important features influencing data's labels, such as age, gend...
If I throw 5 dice, then the sum of numbers should be integers from 5 to 30. How can I get the probability that the sum is n? (n = 5,6,...,30) I used the formula: no of ways to get 8: 5_H_2 = 6_C_2 = 15 But this holds only for small n (n = 5, 6, ...), This is not true for n = 30, 29, 28...
RMSProp and Adam both scale the effectively learning rate by dividing the moving average of past gradients (root mean squared). So if the first layer has gradient much smaller than the last layer, each update to the weight should be still similar in magnitude, right? Then why do we need other methods like batch normali...
I'd like some help with an issue that might seem easy but I'm stuck in my analysis. I'm working with R on a dataframe containing 15 variables: 14 numerical or Integer and 1 factor. I'd like to do some clustering on my dataframe but here is the issue: Usually, when I'm working with factor variables for clustering, I d...
I an engineer trying to fit a curve to water data. I have daily data for water usage (volume and timestamp). Timestamp is in minutes. I have say 20 weeks of data. What Ive done to the data: Got a daily average for each of the 20 weeks. And was able to plot these on one plot, with each line representing a weeks daily a...
In week 5 of Andrew Ng's Machine Learning course, he gives the formulae for gradient checking: One-sided difference: $\dfrac{\partial}{\partial\Theta}J(\Theta) \approx \dfrac{J(\Theta + \epsilon) - J(\Theta)}{\epsilon}$ Two-sided difference: $\dfrac{\partial}{\partial\Theta}J(\Theta) \approx \dfrac{J(\Theta + \epsilon)...
Im really confused about how TF is calculated. I understand that TF = count of term x/ total # of terms For example: Doc1: This is an example Doc2: This is another example TF(this,doc1)= 1/4= 0.25 However, some resources in R and links like this, Consider TF as count of term x; for ex: TF(this,doc1)= 1 then multiply...
I'm currently reading Bishops: Pattern Matching and Machine Learning and ran into an equation I didn't grasp. Page 373, Graphical Models, section 8.2.1. He says: ... Given the joint distribution: \begin{equation} p(a,b,c) = p(a|c)p(b|c)p(c) \end{equation} We can investigate whether a and b are independent by marginaliz...
I am confused as to how I should analyse my data since I think it violates almost all possible assumptions. I applied several hormoneconcentrations to plants and counted the amount of roots. Underneath is part of my dataset. LongRoots0ppm = c(2, 1, 3, 0, 3, 3, 3, 1, 3, 2, 4, 2, 3, 2, 2) LongRoots13ppm = c(4, 4, 3, 4...
I am performing a Wilcoxon signed rank test on my dataset. Because the sample size is quite small I use exact p values (as described here.) Somewhere else I once read that the p values associated to W can be doubled for two-tailed tests. (e.g. n = 6; W = 4 -> one-tailed: p = 0.11 or two-tailed: p = 0.22). Reading the a...
Suppose I fit a GARCH(1,1) model with Student-$t$ innovations of the standardized residuals using BIC selection. My mean model is ARMA(0,0). What can I do when the standardized residuals are still correlated?
I work with a multilevel data set like the one below. Scenario Group individual Measurement 1 1 1 555 2 1 2 525 .. ... ... ... 10 1 10 565 11 2 1 1250 12 2 2 1300 ....
I am trying to analyse differential gene expression in 83 samples split up into three groups following the protocol described by Pertea et al., 2016 (doi:10.1038/nprot.2016.095). Now I have two CSV files for each pairwise comparison, one with the transcripts results and other with gene results. I have assigned a column...
Logistic regression creates a model that predicts one of two possible responses for a given set of predictors. What if I want to choose between three responses? I tried this by using a logistic regression, except instead of defining my two outcomes as 0 and 1; I defined a third outcome at 0.5. This seemed to be going...
As the title suggest, i have a little problem grasping the main difference between markov and semi-markov processes. Anyone up for the challenge? :)
I'm trying to calculate the hazard ratio between two classes, from a variable composed by three classes, i'm modelling an AFT weibull model with this and other indipendent variables for example my variable is a categorial variable: 0 = group A 1 = group B 2 = group C my model is: log h(t) = alfa*log (t) + beta0_ + Beta...
I've been trying to clarify for myself how to interpret the p values produced by p.adjust with method="fdr/BH". I'm aware of this question: https://stackoverflow.com/questions/10323817/r-unexpected-results-from-p-adjust-fdr and Multiple hypothesis testing with FDR in R - FDRtool and p.adjust and other similar discussio...
I just plotted some very simple R-Code to illustrate how two lines x1 and x2 can correlate perfectly but estimate very different values. I then got curious and created a third dataset that merely multiplied each value of x1 by ten and, naturally, got a very different slope. I have then calculated the correlations with ...
I have rectangular bounding boxes for an object in an image, and 3-point vector of relative distances (x,y,z) of the object w.r.t camera, and 3-point vector indicating the pose of the object. I want to take the cropped patch (from bounding boxes) and resize them to 224 X 224 and pass it through to some standard network...
I would like to test an intervention using interrupted time series (segmented regression). I have monthly rate (proportion) data with many of the rates in the <0.10 range. Should I use a standard linear regression approach even though the data are rates? This would allow me to use more standard approaches to account fo...
I have found this values with VARS::VARSelect() in R. but i can't definie with my results what is the best lag order. My data (exog and endog are all stationary with 1 differentiating) All data follows as "Y" str(Y) Time-Series [1:85] from 1996 to 2017: 773829 781874 803765 829058 814855 ... Here the VARselect endo...
Suppose we have a pmf $\pi=\{\pi_1,\pi_2,...\}$ and a random variable $X$ such that $P(X=1)=\pi_1, P(X=2)=\pi_2,...$. I want to know how we can estimate $E(X)$. One way I know is (this is probably not very accurate) to simulate a MC $X_1,X_2,....$ and then $$E(X)\approx\sum_{i=1}^{n} \frac{X_i}{n}$$ Maybe I am no expla...
Assume you created $B$ bootstrap replicates $T^{(i)}, i\in\{1,\dots,B\}$ for a test statistic $T$ since you don't know the distribution of this test statistic. Why is the p-value approximated by $\frac 1 B \sum_{i=1}^B\mathbb 1_{\{T^{(i)}> T\}}$? Why not for example by $\frac 1 B \sum_{i=1}^B \mathbb 1_{\{T^{(i)}<T\}}$...
Why is it when I calculate a set of values with a gaussian function that has sigma 1, the resulting variance of the values doesn't equal 1? E.g. in MATLAB I have: g = @(x) exp(-(x.^2)/ 2) /sqrt(2*pi); %normalized 1D gaussian, variance = 1 x = linspace(-50,50,200); var(g(x)); %doesn't give 1, nor does sum(g(x)) What i...
Consider linear regression model: \begin{equation*} y_i = x_i^T \beta + \sigma \epsilon, \end{equation*} where $y_i = \min(T_i,C_i)$ (failure time and censoring time). Can someone explain me the intuition behind the kaplan meier weighted generalized M-estimation? The solution $(\beta,\sigma)$ that minimizes: \begi...
I have a factorial design with three factors. The model looks like this $$y_{ijk} = \mu + \alpha_i + \beta_j + \gamma_k + (\alpha \beta)_{ij} + (\beta \gamma)_{jk} + \epsilon_{ijk}$$ where $i \in \{ 1, 2, 3\}, j \in \{1, 2\}$ and $k \in \{1, 2, 3, 4, 5 \}$. The three order interaction has been dismissed since this is ...
I am using Random Forest to predict different forest attributes (e.g. biomass, density, age class, etc.) using remote sensing and climate data. We want to predict species composition in each site, expressed as % for 4 groups of species (4 continuous responses). These percentages must sum to 100% in each site. I initia...
This is a graph of the distributions of population proportion (y-axis) by population density (x-axis) for four different modal ages of housing stock. The black line, which we are interested in, represents zip codes where modal decade for the build date of all housing units in that zip code is older than 1940. From th...
In short, Below, I'm asking why the analytical way of getting the posterior for the difference between two proportions (binomial data) and simulation way of the same don't match? (Note: All code is R code) Details Suppose I have the following information for two groups (g1 and g2) of binomially distributed data: g1.tr...
I am using forecast package in R by Rob Hyndman. I am using the auto.arima() function and I have various regressors. One of my regressors is temperature values, including both negative and positive values. I only want the temperature regressor to be effective when it is below 0 and I want the other values to be ignore...
I am looking at this paper on posterior sampling. The algorithm is on page 8 (image below): Let’s say I have 3 arms and on line 22 arm 3 is the best followed by arm 2 then arm Line 24 calculates the number of candidate arm sample to draw. There is a sum over all the sub-optimal arms to produce N_t+1. Let’s say that t...
I have the following datasets of several variables: hourly data of the year 1990 hourly data of the year 2000 hourly data of the year 2010 Now, I was planning to select and estimate a linear regression model based on the dataset of the year 1990 and then validate/check its accuracy by applying the model to the other...
I've been wondering, why is it so important to have principled/theoretical machine learning? From a personal perspective as a human, I can understand why principled Machine Learning would be important: humans like understanding what they are doing, we find beauty and satisfaction to understanding. from a theory point...
I am interested in understanding the specific relationships between an dependent variable (low birthweight), which is binary and various independent variables (which are also binary). So far, the way I have been doing the logistic regression is to run the regression with low birthweight and all of the independent varia...
An M-estimator $(\beta,\sigma)$ is defined as the parameters that minimize $$ \displaystyle \sum_{i=1}^n \rho\left(\dfrac{y_i -x_i^T \beta}{\sigma}\right)$$, for some robust function $\rho$. I understand that typically it's going to bound the influence of an outlier (observation with outlying $y$-part). Then they intro...
I want to test different algorithms for predicting when a person stops an activity. The information available to the person (and the algorithms) consists of different performance criteria and other variables. I wonder which loss function to use for describing how far off an algorithm is. One possibility is a continuous...
I'm building a random forest regression model in R to forecast sales demand and comparing it to other traditional forecasting models, such as naive, mean, holts method, exponential smoothing, etc. The performance metric used to compare the models is RMSE. For the traditional models, its quite straightforward to calcula...
I was interpreting my SPSS outputs for Mixed- model ANOVA. It says that there is no main effect of gender (my IV) on time (DV) but there is significant interaction. However the graph does not show any interaction. Gender non-significance p=.560 and interaction - time*gender p=.007 How to understand and report it? I'...
How are $H_0$ and $H_1$ linked to the F value in the following cases? I understand how each of $H_0$ and $H_1$ gets more likely depending on F-value, yet I was trying to find more of a mathematical link between the hypotheses and the F-value (Not the derivation of F-distribution). I am trying to understand the followin...
When using Q-learning, we have different options for a behavior policy, for e.g. we can use $\epsilon-$greedy. But I have not seen $\epsilon-$greedy prescribed for policy search/gradient methods. When sampling trajectories in "vanilla" policy gradient, it looks like we only use softmax action selection. Is this claim ...
I found a three-way interaction (continuous x continuous x binary) in the prediction of my outcome (count) in a Poisson regression model. I am struggling to find guidance on how to probe and plot this - there's lots on probing three-way interactions for continuous (but not count). Would it be defensible to split my sam...
I am measuring degradation of RNA over time with a control and a treatment. I have % RNA remaining (relative to time 0 for control and treatment) and 5 time points. I would like to test if the % remaining is different for control vs. treatment at each time point. I think that I need to correct for multiple comparisons,...
I have the following mixed models: modeloIa<-lmer(log(FstPSAmm2+1)~AntherAreamm2+(1|plant), REML = F) modeloIIa<-lmer(log(FstPSAmm2+1)~AntherAreamm2*color+(1|plant), REML = F) modeloIIIa<-lmer(log(FstPSAmm2+1)~AntherAreamm2*color*FlPerBranch+(1|plant), REML = F) modeloIVa<-lmer(log(FstPSAmm2+1)~color*AntherAreamm2*P...
I have a small data set (about 120 rows) with a large number of features (about 600). I'm attempting to train a linear support vector machine and using the following approach: 1) Apply recursive feature elimination with 10-fold cross-validation to reduce the number of features 2) Fit the SVM on the reduced feature spac...
Apologies for what looks like a easy question but i'm a doing a geodemogrpahic classification and i'm about to run my cluster analysis. Most of my data is in percentages (ie %black,white,asian etc) but I do have some raw totals in there. so would my standardisation method (zscore) work on both my percentages and totals...
I've noticed that when I compare my results from fixed and mixed effect models, I get very similar standard errors for the slopes of (fixed-effect) covariates, whereas on the intercepts, the fixed effects model can have far far smaller standard errors (while the parameter estimates themselves are almost identical). Wh...
I'm formulating a prediction in a logistic reression type in a GAM model. model1 <- gam(hi.lo.arousal ~ s(time) + s(mssd) + s(sum10days), family = binomial) I wish to predict high arousal in bipolar patients, on the basis of earlier arousal. I have daily Hi/lo measures of arousal in a timeseries. These a...
What factors should be considered when determining whether to use multiple binary classifiers or a single multiclass classifier? For example, I'm building a model that does hand gesture classification. A simple case has 4 outputs: [None, thumbs_up, clenched_fist, all_fingers_extended]. I see two ways to approach this:...
I'm trying to understand the connection between estimators and entropy. Grasping at straws but do estimators reduce the entropy of the random variable being estimated, with better estimators (less variance) reducing it more?
I would like to generate correlated data draws across two unrelated distributions (or across two empirical datasets that are from unknown distributions). The correct way to do this is to use a copula. I'm not a copula expert. Mechanically, my steps are as follows: Do multivariate normal draws with a fixed correlated s...
Consider a best-of-31 game where team A won 16 times and team B won 14 times. Assuming a rematch in which all conditions are the same, is there any way to infer (or guesstimate) what the probability of team A winning is? My attempt: I used team A's score and the total number of rounds to find the probability of A winni...
Multilevel models (aka hierarchical linear models, mixed models, etc.) incorporating random slopes can entail unstructured variance-covariance matrices decomposing level-specific heterogeneity into portions attributable to variables with random slopes and to the joint distributions of those variables with one another, ...
I'm following along with some lecture notes on Bayesian updating with discrete priors. They give an example problem to illustrate some of these concepts, which I briefly restate here: Someone tells you they have three types of coins (A, B, and C) each with different probabilities of HEADS: Coin Type A has p = 0.5,...
RNNs and their variations use the previous time-step output and input, but has there ever been any research done into using multiple time-steps (ie, using each time-step going 10 time steps back) ? Is there a reason why such models are not used?
I would like to compare more than 2 groups (their dependent variable is not distributed normally). Can I use the Anderson-Darling test like I would use the Kruskal-Wallis test? I have no specific reason to choose the former, this is mainly a way to learn something new about nonparametric tests. (I use R) I read this: h...
I have an exponential regression equation that I use to predict the condition of roads. The equation can be found on page 53 of the original master's thesis: Development of a Flexible Framework for Deterioration Modelling in Infrastructure Asset Management From page 53: The equation has some IF statements which deal w...
Studying for a final and I really can't figure out how to proceed beyond the first step of forming the linear model. Finding the matrix l for the null hypothesis lβ=0 is especially proving to be harder than I'd like to admit. Any help would be greatly appreciated.
I am currently reading Jun Shao's Mathematical Statistics, and in his discussion of U statistics, he proves that $Var(U_n) = $ $n\choose m$$^{-1} \sum_{k=1}^m $$m \choose k$$n - m \choose m-k$$\zeta_k$ where $\zeta_k$ is the variance of the conditional expectation of the kernel conditioning on $X_1,\ldots,X_k$, n is th...
Is there any difference in applying a uniform prior or a Beta(1,1) prior for your Bayesian analysis ?In which conditions is one preferred over the other ?
I know that by stacking different models among which there has a low correlation can boost the performance of on single model. And I found a picture In step 7, the $h_j(x_i)$ in new data $x_i^{'}=\{h_1(x_i), h_2(x_i), ..., h_T(x_i)\}$ is the output class label or the probability of model $j$?
I understand that Likelihood is not a probability distribution but what about Marginal likelihood ? Suppose we are given a set of data points $\pmb{X}$ such that each data point $x_{i} \sim p(x_{i}|\theta)$. Now $\theta$ is also a random variable such that $\theta \sim p(\theta|\alpha)$. Then Wikipedia describes margin...
The GLM hat matrix is $$\mathbf{H}_{GLM} = \mathbf{W^{1/2}X(X^{T}WX)^{-1}X^{T}W^{1/2}}$$ where $\mathbf{W}$ is a diagonal matrix with elements $w_i = (\delta\mu_i/\delta\eta_i)^2/\text{var}(y_i).$ For OLS, the link function is identity so $\mu_i = \eta_i$ and $\delta\mu_i/\delta\eta_i = 1.$ Also, the random component i...
Suppose I am estimating a parameter using maximum likelihood using numerical methods. I go through many steps until eventually I find a value that leads to the maximum. I then want to do inference on this value - for example I want to do a hypothesis test that it's not actually zero. This is just classic theory, carry ...
I have several linear and geometric cranial variables of specimens sampled from about 20 different localities. The sample sizes per locality range between 9 – 100. What would be the best multivariate statistical tests for this dataset to compensate for the unequal sample sizes?
I have data concerning registrations of students in courses similar to qrDate discipline number remaining registered session year 17/06/2007 COSC 111 57 43 1 2007 17/06/2007 COSC 121 26 34 2 2007 17/06/2007 COSC 122 35 5 1 2007 17/06/2007 COSC 150 36 4 1 2007 17/06/2007 COSC ...
For neural networks, current approach requires optimization of hyper-parameters for a given training dataset. For individual dataset such as MNIST, CIFAR and, IMAGENET, we can achieve a pretty descent accuracy. However, my question is why we need to design individual classifier for each dataset. We do have transfer le...
I have the following exercise: A production process is working satisfactorily if the percentage of defective produced items is at most 2%. A sample of size 100 is taken and it has 4 defective items. Is the production process working satisfactorily? p-value= 0.14. Justify your answer. The way I solved this te...
Suppose I have a bivariate normal distribution $V=\begin{bmatrix} v_1 \\ v_2 \\ \end{bmatrix} \mathtt{\sim}\left( \begin{bmatrix} 0 \\ 0 \\ \end{bmatrix}, \begin{bmatrix} 1 & a \\ a & 1 \\ \end{bmatrix}\right)$ Define $\theta_s=\sum^s_i\left(\alpha_sv_1^s+\beta_sv_2^s\right)$, where $\alpha...
I am studying the impact of different factors on the expected price change for drugs. I have a regression model that looks like the following: Y=a+B1x1+B2x2... I would like to conduct some one-way sensitivity analysis in order to see which predictors have the biggest impact on the price change. I have two questions con...
I'm looking for a 'not too technical' explanation on how Neural Networks with a regression output differ from running a traditional regressions (eg. OLS) on the data. Say we want to estimate how a set of independent variables $(x_1, ..., x_n)$ are related to a dependent variable $y$. OLS estimates slope values $b_1,......
I am analyzing survey data collected among plant breeders. I want to know if there is any association between some of the variables we collected, namely their perception of climate change and the region where they work. I have 200 answers from breeders who belong to one out of 6 regions. They were asked about 10 clim...
I am working with a very large and complicated function. I am using EM algorithm to estimate the model parameters. The EM works very well. However, after 27 iteration I see that the values of the loglikelihood function decreases very slightly (from 154.2335 to 154.2122). I do not understand why that is happen. Then, it...
I have a quantitative variable (Dim: which is actually factor scores) and 2 categorical variables (Category + Region) in my dataset. I am interested in knowing if the variance explained by each categorical variable (and their interaction) is significant. Additionally I also want to know how much overall variance is exp...
In our online system, we run 1000 tests (where each test presents one piece of functionality) and found 30 bugs/errors, i.e. 30 tests failed. My background in statistic is pretty much non-existent, so I would like to know whether the following make sense: I believe I could estimate - assuming the normal distribution - ...
How should I calculate standard deviation if visualize results using ratio. I have two sets of samples: control and treatment. For each, there are four replicates. I would like to visualize it using ratio calculation on the mean. Then I performed T-test to find significant changes. However, I have no idea how to calcul...
I am seeking recommendations for a good book on the method of sieves, with clear explanations of its differences to the method of kernel, its statistical properties as well as its application. The level of the book should be suitable for a graduate math and statistics degree.
I have two variables, Y and X, and I have managed to find these to be cointegrated. Unfortunately, endogeneity is present yet I have access to data which has high correlation to the endogeneous regressor, X. My question is whether it is valid to use these instrumental variables as instruments for the endogeneous regres...
My question is about how to show if my data is better fitted to the y=x line. I calculate my x and y using different ratios so for ratio A, I get x1 and y1 while for ratio B, I get x2 and y2. %1st figure (left) figure(); subplot(1,2,1); x1=[36;36;37;37;36;34;33;33;25;38;37;37;34;32;31;31;26;36;34;36;33;35;36;36;36;38;...
I have a data set whose dependent variable is confined to the range [0,1]. I modeled it using fractional probit regression in R (model=glm(Y~X1+X2,family=quasibinomial(link=probit),data=mydata)) When I checked the residuals (using command model.residuals) I found that it was not equal to the difference in actual and pr...
I have a question regarding forecast. I'm building an inventory model around warehouses, where all warehouses have multiple customers/countries assigned. I have data on sales for all countries separately, so I can perform my forecast on this data to get a forecast for the country demand. I can do the same at the wareho...
Consider the unconstrained programming problem with a high-dimensional, smooth function $f(x_1,x_2,\ldots x_N)$. Because $N$ is large, such kind of heuristics is sometimes used: -- Fix $x_2…x_N$ to 0, and minimize $x_1\rightarrow f(x1, 0, 0,..0)$. Suppose this step happens to get the true minimum point $x_1^*$. -- Fix...
One can find outliers in a data set if you fit that data in a probability distribution and see how well the data fits in the model (Normal data instances occur in high probability regions of a stochastic model, while anomalies occur in the low probability regions of the stochastic model.). In this method you make an as...
I have been struggling on a problem from the past few days, and I hoped you could help. I have estimated an OLS regression model of the form: $Y=\beta_0 + \beta_1 x + \beta_2 ln(x) + ...$ $\beta_1$ and $\beta_2$ are significant, and have opposite signs. $\beta_1 x = 0.0053$ $\beta_2 ln(x) = -0.2464$ When I plot their ...