instruction
stringlengths
9
38.7k
I have a classification problem which i have run through both a neural network and an SVM. I am interested in the probabilities of all the different classifications rather than just assigning to correct class. The neural network is using a Softmax output and the output probabilities are never very confident. My NN outp...
I have a classifier that outputs biased predictions, that I want to correct for in a mathematically sound way. I define bias as the difference between the true class distribution and the average predicted probability per class. I cannot add this bias directly to the outputted probabilities, because then the probabiliti...
Very often in the literature authors state something like: "We consider a contextual linear bandit problem where at each round t, the learner receives a context vector $x_t \in R^d$ with norm 1". Questions: Is the norm 1 assumption useful only for proving regret bounds, or are there other reasons for it? What happens i...
I am trying to examine the effects of language (English/Mother Tongue) on functional connectivity between different regions of interest (ROI). Hence, I employed a nested Linear Mixed Effects Model approach to examine the fixed effect of language nested in each ROI. Wondering if this is a crossed-factored model or wheth...
I was reading about Leverage Score Sampling. If I am not wrong then what I know that Leverage Score Sampling help us to select representative sample. But I didn't understand how the whole process is done. I read these lecture notes but could not get the whole picture, like how Matrix Chernoff Bound helps to obtain a su...
In a discrete time and space Markov chain, I know the formula to estimate the transition probabilities $$p_{ij} = \frac{n_{ij}}{\sum_{j \in S} n_{ij}}$$ I'm not sure however how you can find this is derived from the likelihood function $$L(p) = \prod_{i\in S}\prod_{j \in S} {p_{ij}}^{n_{ij}}$$
I have just started reading about Bayesian statistics and have a question regarding the general interpretations of priors. Let’s say I have recorded the reaction times (RT, in ms) every time a single subject pressed the space bar as fast as possible, without paying attention to any stimuli. I would like to know how lo...
Suppose that I collect some dataset $Y$ which is a sample from a multinomial distribution with unknown event probabilities $\theta_{truth}=(p_1,p_2,...,p_k)$ where $\sum{p}=1$. I have two competing models which each use theory to make a prediction about the true event probabilities $\theta_{truth}$: $$ Model 1: \theta...
I am having difficulty fitting a generalized linear mixed-effects model in R. I did a simple study looking at the variables affecting the triggering of camera traps. My response variable is binary (triggered/not triggered), and I have four categorical variables: camera sensitivity setting (low-normal-high), distance (5...
In my model, some potentially confounding continuous variables had to be taken in account as well as an interaction of this variable with the main factor of interest, which is categorical. Initially, I had been doing some modelling in R but I switched to JMP for some extra plots. There the p-values of my main factor of...
I wanted to understand the solution to a question I got incorrect. In particular given two independently sampled iid data of different sizes (m and n), possibly different means ($\mu_1, \mu_2$), and same variances, we want to construct a hypothesis test regarding if the population means are the same. From other SE post...
I am doing exercises and I come across a question that asks me to describe sampling with rotated panel. What does rotated panel sampling mean?
I want to interpret the models (2) Pool variable. It equals 1 if the house has a pool and 0 if not. The relation between the dependent variable and the Pool variable is a log-linear that means ∆y/y = b1*∆X whereby X is a dummy variable D so the change ∆D can only be 1 or -1 if I am not wrong. So if a house has a pool t...
So the sum of gamma, introduced in I-MLE is defined as the following: $$SoG(k,t,s)=\frac{t}{k} \left( \sum^{s}_{i=1} Gamma(1/k,k/i) - \log(s) \right)$$ But what exactly is $s$? It clearly controls the number of sums of Gamma we're performing, which also controls the beta factor in the Gamma function... but what exactly...
I'm new to statistics and maybe I went a little bit other my head for the experiment design of my bachelor thesis: I measured the turn angle of people dodging different objects in virtual reality. The virtual rotation of Group A was amplified but for group B it wasn't. The objects they were dodging had 4 different prop...
I'm writing a thesis on data and variable specification sensitivity pertaining to economic growth. I have panel data with 39 countries ranging from 1981-2012, however, lots of countries had important variables missing for numerous years, I decided to drop some countries, but others still have some missing observations....
I am reading some papers about glucose time series prediction and I have noticed that some of them propose LSTM models that use relative changes between two measures. For example, if $$ glucose(t)=60, glucose(t+1)=65$$ We will send $$\triangle_{t}=5$$ to the next cell. If this cell were the last one, we would calculate...
I've been running some analysis using morphological data. However, when I run a PCA, PC1 explains more than 90% of variance. I'm not sure if this is possible. If not, what should I need to do?
I have measured a variable (soil moisture) for multiple samples over time. Soil moisture increases steeply at several points in time (when it rains) and then decreases steadily until the next rain event. I would like to express in one value per sample how similar my samples are in terms of soil moisture over time. One ...
I'm studying the omitted variables problem. My model is: $E[y|x_1,x_2,...,x_k,q]=\beta_0+\beta_1x_1+...+\beta_k x_k + \gamma q$ From the first equation, I write the population model as $y= \beta_0+\beta_1x_1+...+\beta_k x_k + \gamma q + \nu$ where, $\nu$ is the error, and I assumed $E[\nu |x_1,...,x_k,q]=0$ One way to...
Let $X_1, X_2, \cdots, X_n$ be non-negative continuous iid random variables. The goal is to find the probability: \begin{align*} \Pr(\max_{k+1 \leq i \leq j } X_i < \max_{1 \leq i \leq k }X_i) \end{align*} and I solve it by the following method: \begin{eqnarray} \Pr(\max_{k+1 \leq i \leq j} X_i \leq \max_{1 \leq i \leq...
I'm conducting a meta-analysis, and some of the studies that I have included only report the number of occurrences of the event of interest without an accompanying standard deviation. As such, I am using the formula $\text{SD} = \sqrt{(p(1-p)/n)}$, where $p$ represents the sample proportion and $n$ represents the sampl...
I would like to have the standard deviation for the fixed effects output in R. By default, the lmer function from the lme4 library only gives me the standard error. Is there a way to achieve this?
I want to run a binary logistic regression to understanding (modeling) factors affecting nest-site selection in a bird species.. I think it is better if I transform continuous variables to categorical variables, because for example Nest Height from the ground can have different effects in different ranges (different in...
I'm working on a school project that involves performing backward stepwise regression as a form of feature selection. The dataset in question is 60k images with 700 total columns and is much too large to perform backwards selection on in either Python or R and causes my computer to break out and crash. Because of this,...
Background I am trying to create a model that can predict Type 2 diabetes in a patient based on MRI scans of their thigh muscle. Previous literature has shown that fat deposition in the muscle of femur is linked to Type 2 Diabetes, so there is some valid relationship here. I have a dataset comprised of several hundred ...
I am trying to understand the math behind the Support Vector Machines (SVM) Kernel Trick but there isn't any real source online for the mathematical steps to I can follow to see how its solved. One example is here, but the answer didn't show how it was actually calculated using the numbers for the data points. Could so...
I am curious how to formulate a deterministic answer to a problem I have in mind. I have computed it stochastically, but am unsure of how to frame and compute the problem deterministically. My prob & stats classes are a few decades behind me... Let's say that we have 100 people, and each person is asked to choose a num...
I'm trying to use causal inferences in portfolio optimization and I used CausalImpact library in python because it deals with time series. I wanted to check the effect of covid19 on the daily closing prices, so I selected the prior and post period as the period before and after 2019-03-01 respectively. Since there are ...
There is plenty of information on how to detect outliers in a sample when assuming that this sample was derived from a normal distribution. Sometimes it seems to me as if when we talk about outliers it just means deviation from a normal distribution. But if we speak about right heavy tails distribution of the populatio...
I want to measure whether the impact of a company's headquarter country on my dependent variable (goodwill paid) is stronger during recessions. After some researching, I found out that the differences-in-differences analysis could solve my problem. However, in the internet they always show a diagram (see Figure 1 in Di...
I need to understand how naive method works when it comes to validation and test sets. I created the following time series and the data partition is as follows: the first 20 days as train, the next 5 days as validation set, and the last 5 days as test. I want to understand the logic behind it, so I do not want to use a...
I am working on my bachelor thesis with time series data. The idea is to predict the expected battery life based on voltage data from sensors. During my research I came across SARIMAX. For me this ML algorithm sounded very plausible at first. Unfortunately, I was only able to generate constant predictions. Since I was ...
I'm not sure how to express the variance of this estimator. Here's the setup. We have $X\sim N(0,\sigma^2)$ and want to estimate $\mathbb{E}[\phi(X)]$ where $\phi : \mathbb{R}\to\mathbb{R}$ is some function such that $\mathbb{E}[\phi(X)]$ has finite mean and variance. We have iid samples $Y_1,\dots, Y_n \sim N(0,1)$. T...
My research question is to determine whether self-perceived competence is an indicator of objectively measured competence in a group of physiotherapy students? I have measured self-perceived competence on a Likert scale and created 3 categories: low, moderate and high self-perceived competence. I have measured objectiv...
I have the following question. At first this seemed very silly but after thinking about it, I found my self struggling. Given $X$, a random variable, I should decide if the following sentences are right or wrong and explain why: 1 - $X$ and $X^2$ are always independent. 2 - $X$ and $X^2$ are never independent. 3 - $X$ ...
I'm studying time series from the Hamilton's book. I have the following question: Consider a 2nd order difference equation: $y_t=\phi_1 y_{t-1}+\phi_2 y_{t-2}+w_t$ By using the lag-operator, I write: $(1-\phi_1L-\phi_2L^2)y_t=w_t$ I can factorize my polynomial in the lag operator as $(1-\phi_1 L -\phi_2 L^2)=(1-\lambda...
I am using 3 papers for a mini meta analysis using data (mean and SD) of both the experimental and control groups. Using the means I have made 2 histograms displaying distribution. Only one of them has a right skewness (tails off to the right). Do I have to log transform both data sets or only the one that is skewed? ...
I have assembled a multivariable Cox proportional hazard model like this: res.cox <- coxph(Surv(time, status) ~ AGE + B + C, data = data) When I use cox.zph(res.cox) I get a violation for proportional hazard assumptions for the first two variables (and a global violation): ...
The dependent and independent variables are all time series variables. The dependent variable is found to have ARCH effects. Is a GLM an appropriate model for modeling the relationship between the dependent and independent variables?
I'd like to perform an ANCOVA analysis for my study. The following features: 3 groups and 1 DV (continuous) ANOVA and post hoc analyses showed a statistically significant differences There are some covariates (dichotomous and continuous; i.e. risk factors) The aim is to "eliminate" or "control" the effect of the cov...
Consider a kernel estimation problem as follows. We have functions $f^* \sim GP(0, C^*)$ drawn from a Gaussian process. We want to construct a kernel $K$ that does well in regressing functions drawn from this distribution (over functions). Note that given a data set $X$ from some $p(x) $ distribution, $K, X$ completely...
I am doing an experiment to see if users are more likely to fall victim to a phishing attack if a mobile number is provided in the phishing email, rather than if it wasn't. Participants are split into 2 groups. The control group will be sent a standard phishing email, while the experimental group will be sent the same ...
Say I have fit parameters $a, b, c$ for a power regression model (using SGD and a MSE loss), $$y = ax^b + c.$$ Suppose the derived $a, b, c$ fit the data very well. Now suppose $x$ undergoes a change in units, so that $\tilde{x} \equiv x + \alpha$, and now I want to fit a model $$y = a'\tilde{x} ^ {b'} + c'.$$ Is there...
I am analyzing risk factors associated with surgical site infections where we want to have a 3:1 case-control study. Other than some brief lectures in my classes, the only thing we were taught about matching is that it is used to adjust for confounding, so I am not familiar on how to actually perform matching and if t...
I want to run a binary logistic regression to understanding (modeling) factors affecting nest-site selection in a bird species..I measured 32 presence points and 64 absence points. Instead of measuring random points as absence points, I measured points where I guessed the bird could build a nest. Is this measurement me...
If these are the assumptions: A(1) E(ϵi)=0 for all i A(2) ϵi and xi´ are independent for all i,i´ A(3) var(ϵi)=σ² < ∞ for all i A(4) cov(ϵi,ϵi´)=0 for all i ≠ i´ What does the violation of these assumptions do exactly with the parameters of the model and with the p-value? With a violation of A(3) and A(4) the parameter...
E.g. Anscombe's quartet teaches that "visualizing data is important, as the summary statistics can be the same while the data distributions can be very different". But if you have millions of samples it would be difficult to look on all of them. So: Question 1: are there any automatic tests which would help to check th...
I am currently analysing inter-rater reliability/agreement data for a single case with multiple raters. For that I am using Gwet's $AC_2$ (as described here) using the irrCAC package in R, written by Gwet himself. Unfortunately, I am not able to obtain a variance, SE etc. for my point estimate, as the code for this cal...
I'm not quite familiar with conditional probability, and is having difficulty coming with a solution of the following problem: There are 3 coins in a box, and each of them is associated with 1 of the 4 values: 1, 2, 5, 10 with a probability of 1/4. Each coin's value is independent from each other. Besides, each coin ha...
My course notes have what I think can be paraphrased as follows. (Red sections are my interpolations.) Let \begin{align} y_t & =\alpha y_{t-1}+\epsilon_t \\ & =\alpha(\alpha y_{t-2}+\epsilon_{t-1})+\epsilon_t \\ & =\dots \\ & =\alpha^ty_0+\sum_{i=0}^\infty\alpha^i\epsilon_{t-i} \\ & \xrightarrow[|\alpha|<1]{t\rightarr...
Suppose we have $X_1,X_2,X_3 \sim Mult(p_1,p_2,p_3)$, what would be a confidence interval for $\frac{X_1}{X_1+X_2+X_3}$? The top and bottom are not independent and so would this need to rely on a delta method type calculation?
Sometimes I see papers that report the z-score. I am confused because the z-score requires us to know the population standard deviation, which is impossible. What are some reasons people still report the z-score?? Can you give an example please? (The only thing I can think of is when the sample size is large enough so ...
Using R (package plm), I ran OLS and random effects model to compare the effect of marriage on earnings based on the youth survey longitudinal data. Strangely, both models produce identical results as shown below although they were supposed to be different. I want to know what kind of mistake I made in my regression. T...
Reading about Denoising Diffusion Probabilistic Models (DDPM) the paper (algorithm 2 - sampling) states that the sampling goes according to... $$ x_{t-1} = \frac{1}{\sqrt{\alpha_t}}\left( x_t - \frac{1 - \alpha_t}{\sqrt{1 - \bar{\alpha}_t})}\epsilon_\theta(x_t, t) \right) + \sigma_tz, \;\;\; \text{where, } z \sim \math...
In the paper WaveNet: A Generative Model for Raw Audio, the authors try to capture spatial data as follows: They do this by limiting the scope of the hidden layers to particular sections of the input, this approach improves performance as supported by experimental evidence. However, is it not possible for the same str...
Let $(X_1,\dots, X_n)$ be a random sample from $X$ with pdf $f(x)=2x/\theta^2$ for $0\le x\le \theta$ where $\theta>0$. Find the maximum likelihood estimator of $\theta$. The likelihood function is that $$ L(\theta)=\frac{2^n}{\theta^{2n}}\prod_{i}x_i $$ I know that we need to find the $\theta$ that maximized the $L(\...
It's been asserted to me that there is a difference between underidentified and unidentified models in that: Underidentified models can still be estimated and solutions can be obtained, but they are usually considered to be less reliable because they may result in multiple solutions or solutions that are far from the ...
I want to derive that in ARCH(1) model, $\operatorname{Corr}(y_t^2,y_{t-k}^2)=\alpha^k$. Could you please take a look at to the photo attached and help me on how to proceed:
Why do we need separate data for probability calibration? Scikit learn documentation says: The samples that are used to fit the calibrator should not be the same samples used to fit the classifier, as this would introduce bias. This is because performance of the classifier on its training data would be better than for ...
In the answer to Explanation for this event on a high-dimensional dataset it is stated that: "almost all the surface area of a sphere in d -dimensional Euclidean space Ed is concentrated around its equator." and it is supposed that the equator is relative to an arbitrary point on the sphere. What if a different random...
on page 13 of the Dayan and Abbott book onTheoretical Neuroscience, there is this formula $$r_{approx}(t)= \int\limits_{-\infty}^\infty{d\tau w(\tau) \rho(t-\tau)}$$ Let's assume that $w(t)$ is a gaussian function. This is called a linear filter and apparently it generates a nice smooth function of individual events in...
Problem statement: I am using a simple linear regression with outcome $y$ and single predictor $x$ of the form: $$ y_i \sim N(\mu_i, \sigma) \\ \mu_i = \beta_0 + \beta_1x_i $$ I assume fitting $\beta_0, \beta_1$ with maximum likelihoood (although if other method works better for the purpose of this question, I can use ...
i am testing soil chemistry in soil that has been samples in fields subjected grazing. So two levels ( grazing treatment and soil depth). I have used a two-way ANOVA after testing for normalisation etc. I want to express how to report the data. I am using boxplots with the letters so letters indicate difference between...
I would like to know if, for some specific models, the STL ("seasonal-trend decomposition using LOESS, see here) algorithm for time series analysis is proved to converge (in some sense). For example, if $N = kn$ for two non-zero integers $k,n$, if $a,b \in \mathbb{R}$, and if $(e_j)_{j \in \{0,\cdots, N-1\}}$ is a i.i....
I have the following two models in Python: import statsmodels.api as sm from statsmodels.formula.api import glm model1 = glm(" rate ~ explanatory variables", data=df, family=sm.families.Poisson()) model2 = glm("count ~ explanatory variables", data=df, family=sm.families.Poisson(), offset=np.log(df.exposure)) where ra...
I want to implement an algorithm for the online estimation of a joint probability distribution from a sequence of mini batches sampled from the real distribution. The distribution is discrete and non parametric. I need to keep updated my estimation by embedding the information from the batches and gradually approximate...
I have sets of data depending on a experimental parameter (wt%, in the legend) that can be fitted linearly. I would like to get the line corresponding to another value of that parameter, for example 10. I thought that maybe I could make a linear fit for both the slope and the intercept as $$slope = a*wt + b$$ $$interc...
I've fitted 2 different binomial GAMM models, both with a smooth for a predictor Timesec that varies by Condition (a categorical factor). In the first, Condition was a nominal, unordered factor: bam(cbind(FixTarget, NFixations - FixTarget) ~ 0 + Condition + s(Timesec, by=Condition, bs="tp") + s(Participant, by=Conditio...
I'm running several machine learning algorithms on a dataset with 80% negatives and 20% positive cases (classification). Below I attach the results of comparing performance on 500 bootstrap resamples for five methods where NB=Naive Bayes, RF=Random Forest, KNN= K-Neares Neighbors and SVM= Support vector machine (linea...
I have carried out a study assessing the accuracy of contouring the prostate (i.e. drawing around the prostate gland) pre and post guideline intervention. 16 observers were asked to contour the prostate on three MRI scans (MRI1, MRI2 and MRI3). A STAPLE (ground truth contour) was creating using a contouring software fo...
I have been working with a custom classification model with some success, and I was wondering if there is a package in Python or R does the same thing. Regular KNN chooses a K and does classification based on the K nearest points, regardless of distance. What I've been doing instead is choosing a distance, and doing th...
So I have a data that has continuous outcome (risk score) and a mix of continuous and categorical variables (that I converted into factors), I ran multiple linear regression but I got R squared of 1, so I checked for any multicolinearity using pair.wise and I found that 2 variables have correlation of 0.99, I tried to ...
This question has been haunting me for a long time, When I'm given an R output of linear regression, and asked to calculate 95% prediction interval, I feel there's something missing. In this output, how am I supposed to calculate 95% prediction interval for X_b value of 10? I can evaluate y_hat and MSE from the output ...
My question is a follow-up from this post. I have a dataset where a predictor can have 2 states - if it's in state 1, then the value is always the same. If it's in state 2, then the value is continuous and changes. An example to this can be number of cigarettes smoked per day (my true predictor is actually continuous, ...
I'm working on an unassessed course problem, If $y_t$ is the $\text{AR}(1)$ process $$y_t=\alpha_1y_{t-1}+\epsilon_t,$$ where $(\epsilon_t)$ is $\text{White Noise}(0,\sigma^2)$, and $|\alpha_1|<1$, find the covariance function of the differenced process $w_t=y_t-y_{t-1}$, and show that $\text{Var}(w_t)=2\sigma^2/(1+\a...
I am trying to create a species accumulation curve that accounts for different areas of each sample. For example, samples were obtained from different sized quadrats. I think the weights argument in the specaccum vegan function can be used. However, I am not sure what this argument actually does. The non-weighted resul...
Problem statement: Articles in a factory are produced with weights following a normal distribution with $ X \sim N(\mu, \sigma^2)$. A few changes are made in the factory and a random sample of weights of newly produced articles is collected $(x_1, x_2, ..., x_{10})$. Which hypothesis test should I perform to test if t...
I'm a newbie here. But I want to select 10 retailers to onboard in an experiment, but that retailers need to be important enough to be there and bad enough to drive an impact. So in my dataset I will have the following: retailer name; number of times a user interacts with their products; number of times a user buys th...
I am working on a convergence result for an economics paper but am struggling with the following: Suppose you have two distributions, $f(a)$ and $g(a)$ of the same non-symmetric family. Suppose that at least one of the two distributions' moments differs between the two. The Kullback-Leibler divergence between the two d...
Sorry I'm new to machine learning and statistics. For time series predictions, do you use RNN or something? For example, the past 2 years' sales of a product. TBH Im pretty much unfamiliar with how statisticians deal with time series data. I'm dealing with some time series problems and I'm not sure if I should put all ...
I am studying for the Statistical learning exam and my professor has put me in doubt as to when it is preferable to use cross-validation and when the validation set: he said that with less than 2000 observations it is better to use cross-validation, with more than 2000 observations it is better to use the validation se...
I'm running a regression model using a count variable as the DV and I'm trying to understand what changes when using it as a count outcome vs. a proportion. REF: https://ademos.people.uic.edu/Chapter19.html For example, cuse <- read.table("https://grodri.github.io/datasets/cuse.dat", header = TRUE) ...
I need to distribute points of 3 different kinds in a rectangular 2D plane so that they are spread out as evenly as possible. That means, I want to avoid "gatherings" of points of the same kind in some areas of the rectangle. Ideally the points of each "family" cover the space as uniformly as possible. (Pardon, if "uni...
I have a data set of N samples (>10k) and expression measurements for P genes. Among the P genes, there are subsets Ptf (795 genes) and Ptarget (2492 genes) that form a bipartite graph. Not all pairs of genes between the two sets are connected. I want to test if the set of absolute correlations between connected gene ...
What are the differences between the standard deviation of a population divided by the square root of the sample size and the standard deviation of a sample divided by the square root of the sample size? Are they both called standard error?
This might be a dumb question.. but I was wondering if someone can help me out with the concept expectation. This question started from trying to understand bias vs consistent. So when we roll a dice, we usually say that the expected value is 3.5 I sort of assumed that getting 3.5 means that we roll the dice infinite n...
In most of the times in linear regression, the two problems of non-normality and hetroskedasticity are present both in the model. However, the two problems could be (but not neccessarily) inter-related; if one is solved, the other could be solved automatically. If I have a regression model, with non-normal errors (P-va...
I'm trying to compare the effect of treatment on fruit size grades over a number of harvests (time groups). I have applied 3 treatments (10ppm, 5ppm and control), each treatment had 3 replicas of 4 plants (12 plants per treatment, 36 in total). Each treatment was applied once (same day) and no other treatments were app...
I am working in a medical device company and there is something that I would like to test out on the manufacturing line. I am not a statistics expert so this is something that is out of my skillset. In the past, we have always had this equipment "X" (to keep a level of confidentiality) that is used in a production line...
I have a linear regression model with violated assumptions (linearity and Constant variance), thus I decided to take the log of the dependent variable and this step solved the problem. Afterwards, the coefficient of the independent variable (BMI) was: Coefficients: Estimate Std. Error t value Pr(>|...
I am confused by the second line and the third line of the autocovariance calculation. Like how the var() and the 0 come, and why there is t*sigma^2 at the end.
I would like to find an effective way to get adjusted cosine similarity for a large matrix (10k rows). Apply seems also slow... Could you please suggest a method? Maybe based on the approaches suggested here: cosine similarity
I am a newbie in the field of deep learning. I am trying to use LSTM with time series data with more than 300,000 datapoints. The target variable is a class with 7 unique values. I used one-hot encoding to covert it into numerical values. The final dataset looks as follows. 0 1 2 3 4 ...
Context tldr you can skip to the bottom to see the question. I just add some basic information about the problem below. I have been testing my VGG16 based network in this cases Stop signs (small training set from caltech101) Airplanes (larger dataset, from Caltech101 as well) The network worked well to predict the bo...
I've just carried out an ANOVA using the Anova function in the package car, with type III sums of squares and got the following output. model <- lm(Count ~ Distance*State, data=df) Anova(model, test="F", type="III") I'm just wondering what the intercept term in this means?
I analyzed the impact of a celebrity's disclosure of mental health condition in the monthly incidence of the diagnosis of the celebrity using an interrupted time series analysis (ITA) with the ARIMA model. In the model, a ramp function represented the disclosure event, and auto.arima in R gave an output about the best ...
Suppose I have a linear regression form of $$ \log(Y) = \beta_0 + \beta_1X_2 + \beta_2X_3 + \beta_3X_1Z + \beta_4X_2Z + \epsilon $$ where $X_1, X_2, X_3$ are binary and $X_1$ is omitted as a reference variable. Suppose $Z$ is also binary 0-1. I am wondering how we would be interpret $\beta_1$ and $\beta_2$?
I've just carried out an ANOVA on my data My data is comparing juvenile abundance, based upon distance from the nearest adult A and another factor B Based upon the output A and B are non-significant, however A:B is significant Just wondering what the best way is to interpret this.
I want to generate autocorrelated data that follows a standard normal distribution. Following the algorithm in this paper : $$ X_t= \frac{\alpha X_{t-1}+(1-\alpha)Z_t}{\sqrt{(1-\alpha)^2+\alpha^2}}$$ $$X_1=Z_1$$ where $Z_t$ is normally distributed with 0 mean and 1 variance. The variance of $X_t$ is given by $$Var(X_t)...