instruction
stringlengths
9
38.7k
I am trying to understand the the best practices for preprocessing images prior to neural network training and I have some uncertainties despite reading extensively online about it. I am also uncertain if what I am reading (which is about color natural images with an RGB channel applies to my images, which are greyscal...
Problem I'm estimating a seemingly unrelated regression (SUR) with identical regressors where my dependent variable, $y_{cit}$, is a share of total across $c$, such that, $\sum_{c=1}^5 y_{cit}$ = 1. In this setup my dependent variable is a proportion, $c$, of total output for each, $i$,in each year, $t$. In a SUR model...
I am running some linear regression models in R using the lm function and calling the summary() function on my linear model gives a nice summary of the degrees of freedom, F-statistic, sum of squares, etc. Call: lm(formula = y ~ a + b + c + d, data = my_data) Residuals: Min 1Q Median 3Q ...
I have two ML algorithms trained to classify structured text documents in the following way: Model 1: P(B|A) = score_x (trained over count(A) samples) Model 2: P(C|B) = score_y (trained over count(B) samples). In the overall process, a document can error and be put into class A. An analyst needs to look at all class...
How do I report results of a linear mixed model analysis if the data have been transformed? Does it still make sense to report coefficients and standard errors?
I have the following problem: I have a set of several observations A, B, C, ... (6 such observations) of a group of individuals (20 of such individuals). Since I am interested in whether there exist monotonic relationships (A vs B, A vs C,... B vs C, etc) among these observations I have run an spearman rank correlation...
Let's assume I have two coins for which I know the probabilities of heads - they are both fair coins of 0.5. So if I toss them both and get one heads and one tails, for me they are indistinguishable, so my probability of that event is 0.5. Now let's assume that I know which one is slightly unfair with probability of he...
I have been trying to understand the kpss test and I have read this answer and have been reading information from this KPSS Test: Definition and Interpretation , but am still confused about my own results. I am confused because the critical values for 1,5,10% etc. I receive on my own data do not follow the order I wou...
I am working on an email application. To determine if an email is important one of the features we are considering is a ratio of avg time to open an email from a particular contact to avg time to open an email from all the contacts. I was just curious to know if there a statistical term for this kind of ratio? Is it ju...
CONTEXT I have a survey of 200+ multiple choice questions, most of which have different options (I was not the one who designed it). I have a categorical (yes/no) outcome variable. I'd like to find which of the 200+ questions' response have the most effect on these outcome variables (assume that a YES is good). PROBLEM...
I am trying to apply word2vec/doc2vec to find similar sentences. First consider word2vec for word similarity. What I understand is, CBOW can be used to find most suitable word given a context, whereas Skip-gram is used to find the context given some word, so in both cases, I am getting words that co-occurs frequently. ...
I am performing a Mardia's test to assess the multinormality of a multivariate distribution. Mardia's test actually perform two tests, one on the skewness and another on the kurtosis, thus yielding two p-values. Is there a valid way to combine those two p-values into one so that results are easier to share? I've read a...
In my scenario, I use deep reinforcement learning to fix a problem that is related to transportation. During training, I plot the gradient and loss, I find that the gradient converges and then explodes while the loss can not converge all the time. I wonder what caused such result. The fist graph indicates one of the ou...
This may be a strange question. I work as a data scientist for a Media company. My job revolves around predicting the expected "Reach" and number of views an ad will have based on mining historical data. I have used a variety of regressions (nonlinear, logistic) and Bayesian probability techniques. Without getting into...
My understanding of SVMs is the following: The kernel trick allows us to project data from a training set which isn't linearly separable into a higher dimensional space where it becomes linearly separable. This in turn makes it possible to find the optimal separating boundary between the two classes, hence improving t...
Can a time series that satisfies the covariance-stationary properties (mean of x(t) and covariance between x(t) and x(t+m) are both constant relative to t) be heteroskedastic (variance of x(t) changes with respect to t)?
For tree-based models, I've used varImp in caret to extract feature importances; however, this doesn't work with KNN. Can someone explain why this is/if this is possible? Thanks!
I have a total relationship quality variable constructed as the mean of three other scales. Each of these three (family, friend, and spouse) scales is significantly negatively associated with an outcome in a simple regression; however, when I combine them into the total relationship quality, the total relationship qual...
I built an rpart pruned tree as dictated by cross validation and the prp graph of the node only shows a simple tree with 3 variables, the same as the text print out. Question #1: How do I get the list of variables only used in the text print out? Question #2: Why are so many variables listed as important if it did not ...
I was reading the rstanarm documentation and came across this about its use of 90% intervals as the default. I was hoping someone might be able to provide some clarification. Default 90% intervals We default to reporting 90% intervals rather than 95% intervals for several >reasons:Computational stability: 90% interv...
I have a particular situation. I would like to build a probit model to predict a given outcome $Y=\{0,1\}$ based on a set of predictors $X$. A probit model has the form: $$\text{Pr}(Y=1\,|\,X)=\Phi(X^T\beta)$$ where $\beta$ is a vector of coefficients estimated in the model. It can also be written as a latent variable ...
I am trying to predict the appearance count of a particular item using Neural Network.My data has severe imbalance i.e 90% of data contains zero as output, remaining values ranges from 1 to 5. I am training a neural network with item features and week number of year.Whenever I run the neural network and **predict for t...
Is reward function needed to be continuous in deep reinforcement learning? It should be noted that the reward is used for gradient computation The algorithm I used is Proximal Policy Gradient(Schulman J, Wolski F, Dhariwal P, et al. Proximal policy optimization algorithms[J]. arXiv preprint arXiv:1707.06347, 2017.) The...
Let's say I have an MA(4) model, and I find that theta 4's 95% confidence interval contains 0. Thus, I set theta 4 to 0, and now my AICc decreased. Can I call my new model an MA(3)?
Let $S \sim Binomial(N,\theta)$, where $S$ can be seen as $S_n = B_1+...+B_N$ and $B_i$'s are i.d.d $Bernoulli(\theta)$. I have to show that $\frac{\hat{N}_{MLE}}{N}$ converges to $1$ in probability as $N$ goes to infinity. I know that $\hat{N}_{MLE}$ is the smallest integer $>\frac{S}{\theta}-1$. I think I have to us...
Using GridSearchCV always picks the max_depth the highest number supplied to it as the best estimator. The gap between the cross validation score and the train score keeps increasing. Is this RF overfitting? How can I tackle this?
I have data from a survey with $m$ quantitative questions (rating 0 to 100). There was $n$ participants. I want to apply linear regression to predict $X_m$ based on $X_1,\dots,X_{m-1}$. There are, however, two problems: Some participants did not answer some questions. I have only aggregated data. Each aggregation is t...
I understand that with $H_0$: $$b_1 = 0,\ b_2 = 0,\ b_3 = 0$$ the number of restrictions ($q$) is 3. However, with $H_1$: $$b_1 + b_2 + b_3 = 0$$ is the number of restrictions now 1?
I have a Uniform PDF from [-50, 50], I would like to transform it to a Gaussian. The methods that I read up about doing this(like Box Mueller) assume that the uniform distribution is between [0,1). Is there any way to do this for [-50,50]. Is there any translation or scaling that may be done for what I am trying to ach...
When looking into statistics for weather data I'm given, usually I get mean, P10, P50 and P90. I would like to name the Pxs in a more friendly way, for the sake of reporting to non-technical people. In my particular case, the higher percentiles are bad deal - higher weather will imply more costs due to downtime. So af...
Is it necessary to find the 'maximum likelihood estimates' of prior dirichlet parameters after finding their initial values through the 'method of moments ' to find posterior probabilities through bayesian analysis (using dirichlet -multinomial conjugate pairs)? If yes, I need to know an easy way to find the maximum ...
I need to forecast a univariate time-series of sales data with the following characterica. It is a daily time-series Around 70-80 % of the date nothing is sold ($x_t = 0$) At the 20-30 % remaining days there is a positive integer numberof sales The days during which nothing is sold are not always at the sameay day of ...
I have 2 overall groups A, B. In both A and B, I have 3 individuals, each scoring a certain percentage on a test. If I want to compare the scores across group A and B, is the correct process to sum all the scores in each group across subjects and then run a fisher's exact test? Or can I take the scores from each indivi...
According to these equations in wikimedia: each gate has two weight matrices:W,U respectively,but according this: from:http://colah.github.io/posts/2015-08-Understanding-LSTMs/ each gate has only one weight matrix:W,and in the example code: z = np.row_stack((h_prev, x)) f = sigmoid(np.dot(W_f, z) + b_f) i = sigmoid(n...
I wanted to do a hypothesis testing for paired data. My null hypothesis is that Xi is 4 times as big as Yi. So i create a variable Zi = Xi - 4Yi. The null hypothesis is that Zi = 0 I do the testing in R as follows: t.value = (mean(Z) - 0) / (sd(Z) / sqrt(length(Z))) p.value = 2*pt(-abs(t.value), df=length(Z)-1...
I am reading the chapter on Gaussian process regression from this book. As I understand it, Gaussian processes are extending multivariate Gaussian to infinity. While multivariate Gaussians are distributions over vectors, Gaussian processes are distributions over infinite dimensional vectors, so basically functions. L...
I have some absence data of some employee, associated to some characteristics (e.g. type: short, middle, long; people characteristic: gender, age, tenure… ; other variable like event dates etc. All these variables are at a daily level, but they could be concatenate at other level, like state (i.e. one observation won't...
I'm trying to solve a medical mystery using data visualization. But I'm not very experienced in handling statistical data. My data does not have rows for every day of the year, only for dates which have a > 0 value. How can I avoid having to manually create the "empty" dates? I have two years of data as a CSV file. The...
I am using Edward, to create a Bayesian neural network for non-linear regression. My training set consists of time series that all end at 0 but after doing inference the predictions (and thus the credible intervals) do not seem to pick up on that i.e the network is not getting more confident as it approaches zero. The ...
I am studying Variational Inference using Bishop's book: Pattern Recognition and Machine Learning. At the moment, I am struggling to understand the Lower Bound derivation for the Mean-Field Variational inference at page 465, equation 10.6. Surely I am missing some basic algebraic detail.. but, I can't for the moment se...
I need to compute the mean and variance of the truncated normal distribution. For simplicity, let us focus on a standard normal, since the general case can be reduced to this. The PDF is given by: $$f\left(x;a,b\right)=\begin{cases} \frac{\phi\left(x\right)}{\Phi\left(b\right)-\Phi\left(a\right)} & a\le x\le b\\ 0 & \t...
There are a lot of criterion bases or test based tools to compare different linear models and perform variable selection (for example, we have adjusted R squared, AIC, F-test, and so). However, as far as I know, those tools can't be used if the number of cases in both models is different. In my data I have a lot of mis...
I am presenting here a very simplified problem, because I have a feeling that if I'll understand this I will be on my way to understand my original problem. I tried googeling this and also searched this site but couldn't find the answer I needed. Hopefully you'll be able to point me to the right direction. I am solving...
I am developing an online quiz program using reinforcement learning. Assume that we have 1000 questions in hand and 25 questions to be asked in each quiz. Instead of asking questions at random, program has to learn from the way user answer and ask next question. Quiz master should be a reinforcement learning agent. How...
I am trying to use Random Forest as Surrogate Model instead of Gaussian Process for my Bayesian Optimizer Framework and already studied the concept of it through SMAC and mlrMBO Papers. I use the Python package Pyrfr https://github.com/automl/random_forest_run to build Random Forest. But the prediction of the new data ...
Let $a$ and $\phi$ be independent random variables, each with a known probability density function. Furthermore, in the sequences of observations $(a_{1},a_{2},...,a_{N})$ all $a_{i}$ are independent and identically distributed ($iid$). Similarly, in the sequence of observations $(\phi_{1},\phi_{2},...,\phi_{N})$ all $...
The LIME framework (see https://arxiv.org/abs/1602.04938 and https://github.com/marcotcr/lime) allows for per-instance explanations of a black box model's predictions. It does so by random sampling around a sample of interest in feature space and fitting a linear model to those data points that is easily interpretable....
I am currently doing a linear regression, where i try to predict the housing prices based on different variables that describe the house's spatial features (such as the distance to the closest city, the closest road etc.). My problem is, one of the original datasets have only calculated the distance to the closest roa...
The empirical probability of an event can be estimated as the number of times the event occurred $E$ divided by the total number of samples $N$. For example rolling a dice 12 times if we see a 6 for 3 times we can say that $\hat p =P(x=6) = 3/12$. How can I add in this model the confidence that I have in the est...
I am quite new to advanced statistical methods and concepts but i would like to know a few things about KDE. I understand that KDEs are used to estimate the probability density function of a series of data values. But looking at the snapshot above, could it also be used as a classification method based on certain char...
I have a 2x2 design. "Aorta disease(AD) - Aorta healthy(AH)" on the X-axis "Pulmonary disease(PD) - Pulmonary healthy(PH)" on the Y-axis. So: A=ADPD, B=AHPD, C=ADPH, D=AHPH I want to compare the results of A (ADPD) and D (AHPH) for significance. Which test do I use for this? Thanks in advance.
What is the correct method of comparing efficiency of different test for one sample of individuals? Are ROC and AUC enough? Comparing of sensitivity and specifity values of the tests with McNemar test? Comparing of AUC values with an apropriate statistical test (any suggestion?)
I am looking to calculate the confidence interval for the covariance between two series. Both are of the same length (there are n pairs X,Y) and there is no missing data. I calculate covariance without a problem, but I am also looking for the confidence interval for said covariance. As I already have the confidence int...
How can I prove $F$ is a bivariate distribution function where $F(x_1,x_2)=F_1(x_1)F_2(x_2)[1-t(1-F_1(x_1))(1-F_2(x_2))]$ $F_1$ and $F_2$ are univariate distribution functions. And $-1\leq t\leq1$ $F(\infty,\infty)=1$, $F(x_1,-\infty)=F(-\infty,x_2)=0$ and $F$ is right continuous can be proven easily. How can I prove t...
Poisson process start with certain assumption about the how process govern in short interval of time $\Delta t$. The first assumption about the Poisson process is that the probability of occurrence of an event in small interval of time $\Delta t$ is given by $\lambda \, \Delta t + o(\Delta t)$, for some constant $\la...
The definition of kernels in nonparametric can be formulated as follows. [Randles&Wolfe] pp.61-62. A parameter $\gamma$ is said to be estimable of degree $r$ for the family of distributions $\mathcal{F}$ if $r$ is the smallest sample size for which there exists a function $h^{*}(x_1,\cdots,x_r)$ such that the $\gamma$...
I am comparing two groups with multiple measurements before and after intervention (4 measurements before and 4 measurements after intervention in both experimental and control groups). The outcome is level of anxiety. I am planning to use generalized estimating equations to analyse the treatment effect. However, the ...
A few weeks ago, my wife and I went to a fundraising banquet. We bought 12 raffle tickets, of what I estimate was about 4,000 sold. There were about 30 prizes drawn (tickets pulled randomly from a big bowl), and — to everyone’s surprise — we won four prizes. The prizes were drawn over the course of the evening (ca. 8 d...
Let $\mathbf{a}_1,\ldots,\mathbf{a}_n \in \mathbb R^d$ and $b_1,\ldots,b_n \in \mathbb R$ be fixed. For $\mathbf{x} \sim \mathcal U([0,1]^d)$ and $j \in \{1,\ldots,n\}$, consider the real variable defined by the softmax / "logistic" transformation $$y_j(\mathbf{x}) = \frac{\exp(\mathbf{a}_j^T \mathbf{x} + b_j)}{\sum_{...
I am curious about this question, because in definitions I have never seen this property. Is it true? If yes, why?
I have a count outcome and a treatment vs. comparison group independent variable. I would like to model how many times patients return following their first visit (I might actually make this outcome binary - TBD). However, the patients all have different study enrollment lengths. Rather than lose data by subsetting bas...
command for the graph: hist(c1,freq=FALSE) lines(density(c1,adjust=2),col="darkblue",lwd=2) I generated this sequence in R: set.seed(106) lambda1<-1/98 c1<-rexp(n=1000, rate=lambda1) and did a z.test with a significance value of 5%: z.test(c1,mu=98, alternative = "two.sided", sigma.x = sd(c1), conf.level = 0.95) th...
I am trying to analyse the performance of two algorithms , bascially through click through rate and i have arrived at the following form Algorithm Day Users CTR 1 1 100 20 2 1 10 100 Now here's where i am confused . From the data above , it looks like algorithm2 is better than alg...
Suppose I have two ways of measuring some quantity, $a$ and $b$, where each method has its own intrinsic error, $\sigma_a$ and $\sigma_b$. I make repeated measurements with each method and produce two samples of data, each having a mean $\hat{\mu}_i$ and sample standard deviation $\hat{\sigma}_i$, $i \in \{a, b\}$. Eac...
I've been reading about Independent Component Analysis and the FastICA algorithm. The wiki page for FastICA states: FastICA is an efficient and popular algorithm for independent component analysis invented by Aapo Hyvärinen at Helsinki University of Technology.[1][2] Like most ICA algorithms, FastICA seeks an o...
Partly inspired by the following post: Relation and difference between time series and regression? After thinking carefully into these two subjects, I kind of wondering for what kind of data/situation time series analysis is more suitable? (or conversely, stochastic processes will be more suitable) There are some examp...
I realize this may be better asked on Stack Overflow, but thought I would try to elicit a response here first. Here is my problem I am simulating a GAM from the posterior of the multivariate normal distribution based on examples from Simon Wood's GAM textbook. I am able to easily obtain confidence intervals (CIs) for t...
I'm trying to fit an ordinal logistic regression using the ordinal package but the proportional odds assumption is not met. I have read all post here on this. My specific question is that, if you change logit to probit link function, is the proportional odds assumption to be met?
Lets suppose we are in a casino, having two slot machines. Our strategy is to flip a coin to decide which machine to start on. (Without loss of generality, we say that we play the slot one first with probability $c_1$ and play the slot two first with probability $1-c_1$) Then, we play on that machine until losing one g...
I'm going through the paper "Consistency of Random Forests and Other Averaging Classifiers" and I'm stuck on a seemingly simple part of the proof for Proposition 1. Here's the relevant part: What I'm not getting is the last sentence which claims that $$ P(g_n(X, Z) \neq Y | X=x) = (2\eta(x) - 1) P(g_n(x, Z) = 0 + 1 -...
For the reading that I have done, I found that Dirichlet priors typically don't perform well when they aren't given significant amounts of data. I'm not quite sure why that is. What is it about NMF that allows it to perform well on smaller inputs? Why does the LDA prior perform poorly on smaller data.
I am proposing this question for a chi-squared test of association between party and voting. The following table is based on how (R)-Republican and (D)-Democrats voted on a specific bill yes no R 99 11 D 1 48 Since the (D, yes) cell is 1, could I be violating Cochran's rules for a chi-squared test?
The textbook definition of a statistic is any function of the data, $g(\mathbf{X})$. Much of frequentist inference is concerned with deriving sampling distributions for various statistics under some null model, so it makes sense that the term "statistic" has a precise definition and is used quite often. The goal of Bay...
With the data I'm currently analyzing, it is easier to derive the EDFs than the PDFs; furthermore, I'm much more comfortable using CDF-EDF goodness-of-fit tests like the Kolmgorov-Smirnov and Anderson-Darling, which I already have code for. I would also like to calculate a multitude of information and probabilistic dis...
I have two categorical variables and I want to do the chi-squared test. I was wondering if the gap between the sample sizes in each cell will affect the results? normal nonormal test1 n=6000 n=6000 test2 n=2500 n=2500
Right now I'm doing survival analysis for marketing purposes and I'm picking the covariates. One variable that has a lot of impact on churn is the age band of the customer at the time of the first interaction. Younger customers churn faster. Another variable that seems to have an impact is the client's "persona"; it's...
Suppose an assessment used in a clinical trial is imprecise, i.e. given the same patient, two physician conclude different scores (but without bias). Also let's assume the level of imprecision is known, as determined by the variation when N number of doctors assess the same patient. Now consider a multi-site randomized...
The results of my coxph() are significant, yet the cox.zph() test is significant too. From my understanding of it, the significance of cox.zph() means that the Cox model is not fit to model the relationship between my covariates and the dependent variable. The reason being that this relationship is not linear, while th...
How to test if these two samples are from the same distribution? (These are tweets located near some tourist attractions. If yes, is there a simple implementation in Python?
I am struggling to understand the following paradox. Suppose we have a large population of people who exhibit different values of a trait, e.g. they are sick with different strains of a virus. Suppose I'm trying to cure them. Consider 2 scenarios: I have a vaccine. I survey a subset S of these people and count how man...
Let's say I have data from a number of brain regions in both teenagers and adults. I want to know if brain regions b1, b2, etc (selected based on theory) differ in their effect on a normally distributed outcome variable depending on age group. I also have data from multiple locations, which I am including as a random e...
Is there any package available or some other approach to implement constraints like (x1 < x2) or even more complex relationships provided by some function. Another desired option would be a possibility to call some custom correction function after crossover and mutation operations or the definition of custom crossover ...
I have data with 5,000,000 records and many categorical variables of it have more than 3 categories. For example(here is the Python Pandas code) >>> df_train_set.PWD_STAT.unique() [ 0. 1. 3. 2.] >>> df_train_set.CUST_CLASS_XL.unique() [500101 620101 540202 5001 560301 600103 610201 610103 540101 570101 500102 59...
I have fitted a parametric survival model using Gompertz distribution. In the output, I can get the values for the shape and the rate. I would like to using the shape and the rate to estimate the probability of survival, but not sure how to do that. Please help. (Admittedly, I have very limited understanding around di...
Which are the various causal tests in statistics which can be done in R? I have data for some months, with 2 variables. But I am not able to prove causation in between.
Currently I am using Cook's distance to detect outliers in multivariate data. Is there any better approach than Cook's distance for the same?
I have a question concerning a derivation of a marginal log-Likelihood function that I found in a paper and that I do not understand. It's pretty basic so sorry for this in advance. Assume that the marginal Likelihood of object $i$ is given by $f(e_i) = \int_{\theta} f(e_i|\theta)g(\theta)\, d\theta$ and the Likeliho...
I am working on the curse of dimensionality (theoretical models) and would like to test an algorithm on it. What I haven't found is a standard dataset that could be used to compare different approaches. Is there such a thing? Or... related: what is the most well-known failure due to the curse of dimensionality?
I am doing a Wilcoxon test in R and one thing that has surprise me is that when I compute the confidence interval for the below mentioned dataset I get a 95% confidence interval of (-807,198), and non of the values for the treated and untreated groups are within that interval. For example: treated <- c(323,421,578,300,...
Introduction: I have a camera system (6 cameras) on basis of which a third party system performs classification and segmentation of images. This is used to monitor product quality of a products with different properties. Problem:The cameras are not frequently/well maintained and are in a dirty area - they often get dir...
I am trying to understand Eigenfaces Vs. Fisherfaces: Recognition Using Class Specific Linear Projection paper. It uses PCA and further uses LDA for dimensionality reduction. I have read about eigenfaces and PCA approach but I am not familiar with LDA and I am unable to understand the mathematics behind the scatter m...
I try to minimize an unweighted moment function $G(\theta)$ given by $G(\theta) = \bar{g}(\theta)'\bar{g}(\theta) $. $g(\theta,x_i)$ contains the specified moment conditions, where we state $E(g(\theta_0, x_i))=0$ and $\bar{g}(\theta) = N^{-1}\sum_{i=1}^N g(\theta,x_i) $. R provides a GMM tool with gmm() that works fi...
I am currently writing up a statistical part of a report. In the field where I am from a "parameter" would refer to what is known as the "independent variable" or "predictor" in statistics (that is $x_{1}$ below). To avoid confusion I was wondering if the "parameter" in statistics ($\beta$ right ??) had another name I ...
From a paper I am reading, I do not think the meanings of the parameters matters here but I can edit if that's useful to know. $L(\phi, \theta \mid n, \omega) = Pr(n \mid \phi,\theta)Pr(\omega \mid n, \phi, \theta)$ So the likelihood has been factored into the product of the marginal of $n$ and the conditional distr...
I want to ask if the higher value of B is a matter of concern for the health of the hierarchical logistic regression model or not? I have a categorical variable and for two of the categories, I have got a B value +20 and another one is -22 for which the respective exp(B) are approx. 1070563626 and the other is 0.000. ...
I would like to fix the parameter gamma by using the following heuristic and then select C using GridSearch: taking the inverse of variance of RBF. gamma= 1/(2*sigma^(2)) I wrote the following funcion : def get_gamma(data): variance=np.var(data) variance=variance*2 gamma=np.divide(1,variance) return ga...
I'm currently trying to implement the Heckman method for estimating the dynamic probit panel model (Original paper can be found here). I'm trying to implement it according a paper of Stewart (2006), with the following Likelihood: $\prod_{i}\int_{\alpha^*}\{\Phi[(z'_{i,1}\pi+\theta\sigma_{\alpha}\alpha^*)(2y_{i,1}-1)]\p...
I have a dataset with the following variables for the treatment (nutrition, fertilizer), that records algal growth in water across time (t0, t1...t10). In series with fertilizer marked as "nitrogen" , nitrogen was added after day t5. In series marked as "none", no nitrogen was added. nutrition fertilizer t0 t1 t2 t3 t4...
How do I supply yearly(month/week of the year) + day of the week seasonality in causal impact? I have 1 year of data in the pre period at daily granularity i.e. 365 data points. would, nseasons =52 and season.duration=7 work? Is there a better solution? Also I noticed in one of the posts on stackexchange that pre peri...
I would like to explore a model to predict the value of a continuous response variable, from a set (around 100) of explanatory variables. I do not want to apply PCA like feature reduction, because I want to keep my model maximally informative. A straightforward method is to conduct a multiple linear regression on a pr...