instruction
stringlengths
9
38.7k
In deriving the unbiasedness of OLS Estimators, $$\hat{\beta_1} = \beta_1 + \frac {\sum_{i=1}^{n} (x_i - \bar{x})u_i}{\sum_{i=1}^n (x_i - \bar{x})^2}$$ My professor changes the above to: $$\hat{\beta_1} = \beta_1 + \sum_{i=1}^{n} (\frac {(x_i - \bar{x})}{\sum_{i=1}^n (x_i - \bar{x})^2})u_i$$ How are these two equal?
I am currently conducting a study where the outcome variable is measured only at the level 2/group level. The dependent variable is a measure of the proportion of all municipal spending that is being spent on a particular type of service. However, I would like to investigate to what extent this corresponds to the attit...
This is a problem that I have experienced in multiple domains but most recently in identifying bird species from audio data. I have 300, 5 minute audio files with corresponding species labels (10 species). To build a classifier, I split the audio files in 10 second windows and build a CNN on the spectrograms. This achi...
I'm working with a dataset where all I have is the similarity matrix (with values 0 to 1, 0 being no similarity, 1 being identical). After I assign the labels, I loop through the matrix and, for each pair of points: 1a) if the points are in the same cluster, add (1-similarity(p1, p2)) to a tracker variable. 1b) if the ...
I am using ROC curves for multi-label classification. I have a classifier that produces a score for each label, say a Logistic Regression that produces a probability. I understand that an ROC curve is parameterized by a discrimination threshold and assigns to a class the observations where a class with the highest prob...
I am currently building a solution that can reduce the overall electric consumption of a household by remotely controlling some appliances (for a period of 60 minutes). And to prove that it works I will run a pilot program where I will equip a few people with my solution, and test it over the course of a few months. Mo...
I am studying returns on advertising, here defined as [Customer LifeTime Value]/[Customer Acquisition Cost]. I have obtained values and respective CIs for both variables and now i have to combine them to form a ratio and its CIs. Customer lifetime value is an average of 10k+ observations and it is a log-normally distri...
I'm looking for help clarifying the concept of parameters in statistics. Mainly, I'm having trouble understanding the commonality or difference between distribution parameter and model parameter. When describing distributions, (e.g., normal distribution, binomial distribution, etc) we use the word 'parameters' for norm...
I have encountered a situation where someone has run many simple linear regressions, each on a separate subset of data, to test for changes in a slope in some time-series data. Each month, a new data value is added to the end of the dataset and data point at the start of the dataset is removed. The idea with some sampl...
Suppose I have a data set with $(Y,X)$ where $Y$ has some missing entries(say 20% missing). From $p(Y,X|\lambda)$ and prior $p(\lambda)$, I can conduct MCMC by data augmentation to impute missing $Y$'s. Assume I have $n$ such data points. If I had no missing entries in $Y$, then according to Bernstein-von Mises theorem...
I am having difficulty finding the correct location and scale parameters for a PDF diagram that I need to validate my data. I have already calculated the location parameter to be -1.01, but I am unsure about the scale parameter. I would appreciate any guidance or correction you could provide. I am currently conducting...
Can I use predicted outcomes from one model as the dependent variable in another model to make causal claims? Put differently, is there something equivalent to the Frish-Waugh-Lovell theorem for working with predicted outcomes rather than residuals? To explain and make things tangible, let's take something like the Bos...
My book presents the following derivation of the variance of the mean estimator $\bar{X_n} = \frac{1}{n} \sum_{i=1}^{n} X_{i}$ for a stationary process $(X_t)_{t}$ with autocovariance function $\gamma(\cdot)$: I do not understand the last equality in the calculation above. Could someone explain how they have rewritten...
I am trying to interpret my results from decomposing my time series and the acf/pacf plot. The adf test gave a p-value less than 0.05 so is it ok to assume that my time series is stationary with no trend or seasonality? Is it ok in the ACF plot if the values are above the thresholds?
Assume we plot $f(x) = ax + b$, a linear regression for some data points. We have already calculated the 95% confidence intervals for both $a$ and $b$. So in total we have 6 values given: $a, b, a_{lower}, a_{upper}, b_{lower}, b_{upper}$. Given these values, how do we plot these alongside the linear function in this w...
I am trying to learn how to use r to perform an ordinal logistic regression, in order to look for correlation between survey questions with categorical answers and another question asking about level of confidence. I am very new to this, so I would really appreciate any help so that I can understand how to do this corr...
O'Brien (1988) has shown that a strong method for doing multivariate testing is to reverse the problem. That is, instead of seeing if the category impacts the measured values, see how the measured values impact that category. These are logically equivalent notions, and approaching the problem this way, such as with a l...
I'm trying to run a beta regression to predict my dependent variable Consistency, which has values between 0 and 1. Here is the distribution of Consistency values in my dataset: I originally tried linear mixed models with different transformations, but none of them seemed satisfactory (none of the Q-Q plots looked goo...
Let $X$ be a matrix with $n$ rows and $d$ columns. We know that there exists matrices $U, S, V$, with $U$ of dimensions $(n, d)$, $S$ of dimensions $(d, d)$ and $V$ of dimensions $(d, d)$, which form the singular value decomposition of $X$, such that: $X = USV$ $S$ is a diagonal matrix. Assume for this problem that S ...
I have run an Interrupted Time Series Analysis based upon the below code: glm(`Subject Total` ~ Quarter + int2 + time_since_intervention2 , df, family = "poisson") I have used the emmeans package to estimate the pairwise difference between the counterfactual and point estimate and get the below output: contrast ...
Could you please help me understand why the following reasoning is wrong: let's say there are two random independent samples: x1=56, n1=250, so that phat1=0.224, and x2=60, n2=300, so that phat2=0.2. Suppose I want a 95% confidence interval for the difference in population proportions. Using the standard technique, I w...
PDF of a random variable $X$ is, $$ \begin{equation} f\left(x|\gamma\right)= \begin{cases} \frac{1}{\gamma} \exp(-\frac{x}{\gamma}) & x > 0 \\ 0 & \text{otherwise.} \end{cases} \end{equation} $$ I got the estimator using negative log-likelihood function and equal it with zero: $$\hat{\gamma}_{\text{MLE}}=\frac{\sum_{i...
In microbial research, a common way to check growth rates of bacteria is by performing a dilution of the bacterial population and then plating the resulting dilution on a petri dish. After some time, the cells on the petri dish grow into visible colonies which you can then count to arrive at an estimate of the original...
A concept I'm struggling with is the type 1 error and the level of a test, for me the type 1 error is P(Wn|H0) where Wn is the rejection zone. Is it not a way to measure Wn given that H0 is true ? So why do we reject H0 when the level of a test is too low? ( In my opinion, if the level of the test is too low so is the ...
I am using the normalized confusion matrix to aid in quantifying the uncertainty in related observations over time. More specifically, I have a classifier that returns the confidence of each class via the softmax function. I can build a confusion matrix by taking the arg max of the predictions. When I see an event, I u...
I have a list of genes and I tested if these genes are associated with a disease by using the genome-wide association summary statistics dataset. Chi-square statistics was used and after performing permutations, I could calculate the empirical P value (number of times the simulated statistic value exceeds the calculate...
I was reading briefly about the field of EVT - extreme value theory, and the associated distributions that arise from modeling the maximum of a finite sample. It's not quite clear to me the nature of data and estimation that this field treats. Does it concern deriving the exact distribution of a maximum (or minimum), a...
If I generate a uniform distribution of $X$ ranging from $0$ to $2\pi$ (so $X\sim U(0, 2\pi)$), then the probability distribution of $1-\cos(X)$ appears to be this function: Is this an analytical function that I can work with directly? And if so, how do I prove this?
I am struggling to choose the correct test procedure for the following data and hypothesis: Variable A: 3 levels, fixed effect, signifies the grammatical gender of a noun Variable B: 2 levels, fixed effect, signifies gender of the participant who used that noun Variable C: 30 unique values, random effect, signifies dif...
I'm using the Granger test from package lmtest in R This is the test grangertest(dados$Publico_Total ~ dados$Classificacao) I receive this result Granger causality test Model 1: dados$Publico_Total ~ Lags(dados$Publico_Total, 1:1) + Lags(dados$Classificacao, 1:1) Model 2: dados$Publico_Total ~ Lags(dados$Publico_Total...
I am working with a data set with the sequence identity (a value in [0,1] representing the conservation between sequences) of many genes for many bacterial strains. I would like to be able to draw conclusions about how statistically significant a value for one gene is by comparing it to the distribution of all genes fo...
Some studies report the regression results and when explaining it, they say something like " a one standard deviation in the x variable increases the y variable by something" How do we run this model in a statistical software? Do we simply to the Z-score transformation and re-run the original model again?
I have created a Poisson regression model with robust error variance (https://academic.oup.com/aje/article/159/7/702/71883) to calculate relative risks. This is the Poisson regression model: glm.poisson <- glm(new_anydiagnosis ~ gender + age + socioeco_status+dsdm_category+family_history+mental_before_hiv+relations+sex...
I am trying to use Akaike Information Criterion with the small sample correction (AICc) as method for determining how many data points to use in a linear approximation of a non-linear function; the goal is to make an extrapolation, with error bars, from the end of my data set. In working on this project I ran into a p...
I have a staggered adoption of a policy across states. I expected the mean of my outcome in post to increase for all treated states, however, I do not observe it consistently. Furthermore, the t-stat of the pre/post means for most states is not significant. Does this imply that there is no effect?
I have a time series data where I have a variabel that shows me electricity price data week to week. The variabel has severe autocorrelation as it start in the high 90s for the first lag then slowly goes lower and lower. My question is, I have tried decorrelation/removing the autocorrelation and thought I had done it w...
Assume I have a regression, where y and one of the dependent variables (may) share a predictor. For example, if I wanted to check for a correlation between occurrences of heart attacks (age-dependent) and occurrences of cancer (also age-dependent). My aim is to check if these are inherently connected, and (in this exam...
Given 3 data points (-1,1), (0,0), and (1,1), I am asked to apply PCA and find the projected data points. Then calculate the variance of the projected data. I applied eigenvalue decomposition and found the projected data points as -sqrt(2),0, sqrt(2) i.e., the 2d points are now projected onto 1d space. Should I use the...
For a stochastics process $\{X_t\}_{t=0}$ with a filtration $\left\{\mathcal{F}_t\right\}_{t \geq 0}$ where $\cdots \mathcal{F}_{t-1} \subseteq \mathcal{F}_{t} \subseteq \cdots \subseteq \mathcal{F}_{\infty}$ and $\mathcal{F}_t = \sigma\left(X_s, s \leq t\right)$ (e.g. $\mathcal{F}_t$ is the smallest $\sigma$-algebra w...
In a number of online articles (e.g. 1, 2) I see the $x$ values over which a Gaussian Process is used written as $X$, e.g. the training points are $X$, test points are $X_*$, and (in the 1D case) the observed data or points to predict $Y = f(X)$. However, my understanding is that we know the values of $x$ over which we...
I am given the question: "What is the probability that both the mean is in its confidence interval for confidence level a and the variance is in its confidence interval for confidence level a?" Note that these CIs are the t-distribution interval for the mean and the chisq-distribution interval for the variance. I am ve...
For simple estimators (e.g. sample mean, OLS), we typically establish asymptotic normality by appealing to some type of Central Limit Theorem $$ \sqrt{n}(\hat{\beta} - \mathbb{E}[\hat{\beta}]) \to^d \mathcal{N}(0, \Sigma) $$ If the estimator is asymptotically unbiased s.t. $\mathbb{E}[\hat{\beta}] = \beta$ is the param...
I'm familiar with inter-annotator agreement (or inter-rater reliability) metrics for data that has categorical annotations, but what about a set of data samples that are ranked by several annotators? Would coefficients like Cohen's kappa still apply here? The specific context that I'm talking about is within machine le...
What is the purpose of the lower element in the control argument of the factanal function? It says "The lower bound for uniquenesses during optimization" from the documentation. I realized that the loading scores from a factor (ex. 3rd factor) in the latent model can be extremely different depending on if lower is low ...
I have a set of forty predictors each of which are binary. I’m using elastic net logistic regression in addition to a random forest Is there any reason why you could not use binary inputs for a Keras neural network? I can’t find anything in the documentation that indicates that this is not an option.
I was thinking about the following question today: Suppose I visit a university and want to determine the average height of a student at this university. Let's say I spend the whole week at the university and measure the height of every student on the entire list of students at the university (i.e. population). By the ...
I'm doing curve fitting, but my error is non-stationary. The variance decreases: I'm looking for a signal in the noise (In this case at x=90, y=50). I'd like to calculate the "standard error", and choose my signal be the point with the largest "standard error". How do I do this when the variance is changing? I'd appre...
Let say we have a variable X1 that measure the percentage of C from total population and X2 as a variable that measure the growth rate of C in t,t+1 period. I wonder if is correct to use both variables in the same linear regression I am still studying statistics, so any explanation would be a real help for me! Thanks!...
The definition of the range has been given as the difference between the largest and the smallest value of the distribution. This, in my perception, tells us the discrepancy between the smallest and largest value and does not measure the dispersion from the central value. So, my question is how does that help us in fin...
This is a fixed effect panel model in Stata. Income group has 4 categories: Low income, Lower middle income, Upper middle income and High income. Here below, I put the interaction coefficient values for the model. I would like to know the effect of financial service (findex) on Carbon emissions. Other control variables...
I have a question about the Spearman rank correlation coefficient. In this reference (https://arxiv.org/pdf/2211.16224.pdf, Fig. 4) they use the spearman correlation coefficient instead of the standard correlation coefficient to perform PCA. This is for me appealing because it removes the need of normalization when the...
I am doing latent class analysis but the degrees of freedom are negative. Because of that I should do parameter restrictions. How do I choose the way I restrict my parameters?
I am currently looking at a dataset of Fair Market Rents which are determined at different percentiles over the years - for example, nationally in 1983 they were all set at the 40th percentile, and in 2005 you had some areas set at 40 and some at 50. I would ideally like to try to standardize the data for one particula...
I'm planning to run a large amount of regressions to test for an association between medical conditions. As my dependent variable is always age-dependent, I include age as a covariate. For example, I wish to check if drinking regularly affects the risk of a heart attack, e.g.: heart_attack ~ age + drinker_status Now th...
In my study, participants were presented with descriptions of several acts of interpersonal betrayal and asked if they would want wo find out about the betrayal if they had been the victim of it or if they would prefer to remain deliberately ignorant (Variable name: DI). Additionally, I varied the relationship with the...
I try to apply dimensionality reduction to a multidimensional data set (with numerical features) with significant outliers. I have managed to identify outliers with Isolation Forest but now I'm in a quandary how to handle them: As the features are on a different scale, I'm expected to do some normalization as a first ...
I predict a continuous variable by taking the average of $N$ model predictions. The models are different in terms of their functional form, i.e. a tree model, a neural net, etc. Is the average SHAP value for some input variable across those $N$ models equal to the SHAP value I would get by treating the aggregate model ...
So I have a model: $log(y)= \beta_0 + \beta_1dog +\beta_2cat$. I want to test for heteroskedasticity using a Breusch-Pagan test and the variables cat and dog. Should by formula be bptest(log(data$y)~ data$dog + data$cat) or bptest(data$y ~ data$dog + data$cat)?
I am using GAMs to model the occurrence of a species across 7 sites. I specified Site as a factor, and the response to each variable (smooths) is allowed to vary across sites. See a sample of code below: model <- bam(Y ~ offset(log(offset)) + Site + s(X1, by = Site, bs = "tp", m=1, k=15) + s(X2, by = Site, bs =...
I have a dataset on contaminant exposure of small critters, for which it visually appears to be a large increase in egg production over time for treatments exposed to the contaminant. The selected model shows no significant effect. However, most of the high producing animals died 15 days before the end of the experimen...
We want to compute a cluster analysis in a not well-researched field and therefore created about 60 questions. Those questions are supposedly aspects of factors, but we are not sure yet, to which extent. But our primary purpose is to analyse the object structure of the sample. Not only since 60 variables are far too ma...
I have a machine learning problem that I solve via nonlinear regression. I have 80 samples totally and try to understand is it useful to gather more data. For this, I plot learning curves in the following way: I randomly split the data into 60/20 train/validation samples I implement the training on different number of...
I have a vector $x = (x_0, \ldots, x_T)$ and given this vector, I would like to sample an index $k$ between $0$ and $T$. The probability of sampling index $k$ is given by a weight $w_k$ that is a function of $x_k$. In other words $$ \mathbb{P}(\mathsf{k} = k \mid x) = w_k, $$ where $w_k = w_k(x_k)$. I will assume these...
I am currently evaluating a new device compared to a gold standard device. Each person is measured at the same time with both devices and I want to know how to investigate the results. My question is how to approach the data analysis. Calculate the difference between the 2 measures and then? I need to be able to show s...
Suppose I have the following dataset that shows the faculty composition of different colleges and the total number of drop outs that happened in an academic year. Here is some R code for this problem: set.seed(123) n <- 100 college_id <- paste0("college_", 1:n) percent_engineering <- runif(n, 0, 100) percent_science <...
I have purchase panel data of consumers over a period of time (1.5 year). Within this period of time there is an intervention of +/ - 0.2 years implemented. this purchase data consist out of the purchase of products. These products can belong to a productgroup (in total 10 productsgroups) I am interested in the effect ...
I am using glmnet for feature selection, given a gaussian dependent variable. Part of my code is like this: lambda_seq <- 10^seq(2, -2, by = -0.1) cv_output <- cv.glmnet(data.matrix(x_vars), y_var, alpha = 1, lambda = lambda_seq, nfolds = 5) How can I use glmnet to select exactly three (continuous) predictor variables...
Disclaimer: I am relatively new to time series analysis, so I am not sure if my way of thinking makes sense. I have a time series of a few years, that I can model relatively well (respectable R squared, and normally distributed errors). However, in the last year of the data set, a series of effects happened that I am ...
Consider a two-dimensional stochastic field with power spectral density function $S_{ff}(k_1,k_2)$ given by: $$S_{ff}(k_1,k_2)=σ^2\frac{b_1b_2}{4\pi}\exp{\left(-\left(\frac{b_1k_1}{2}\right)^2-\left(\frac{b_2k_2}{2}\right)^2\right)}$$ $$-k_{1u}\le k_1\le k_{1u},\ -k_{2u}\le k_2\le k_{2u}$$ where $k_{1u}$ and $k_{2u}$ a...
Given a multivariate regression, how can I test if each element in the coefficient matrix is statistically significant? Would doing a t-test be right? $$\mathbf{Y}=\mathbf{X}\mathbf{B}+\mathbf{E},$$ where $\mathbf{Y}, \mathbf{X}$ and $\mathbf{E} \in R^{n\times m}$ $(n>m)$ and $\mathbf{B}\in R^{m \times m}$. You can tre...
In skipgram we predict the context words. That is the output layer before applying the softmax function is a number $V$ of words, where $V$ is the dictionary size. But each word is represented as a vector. So we have $V$ vectors in the output layer. And now we want to apply softmax to those vectors to get a vector of d...
Suppose there are three variables A, B and C, that are thought to have a three-directional relationship. This means A is related to B and C, B also influences A and C, and C affects A and B. I wondered which analytic approaches could be taken to assess this complex relationship? I can think of multiple regression, f.i...
I'm kind of knew in statistics, and I'm working in a time predictor related to process events. As an accuracy measurement, I'm using MAE, but my advisor asked me to use a statistical test to validate the statistical significance of the results I got with my model compared with the baseline models. He suggested the F-te...
I have two samples I am using to evaluate the effect of a treatment. Group $T$ contains 60 treated objects and their scores and group $C$ contains 60 control objects and their scores. The two groups are paired, so for every object in $T$ there is a corresponding object in $C$ that is identical in every way except for t...
I'm trying to specify a regression model. The data spans 6 time periods in a patient population. Periods 1-3 are blood glucose samples, and 4-6 are troponin samples (cardiac damage marker). So, a conditional growth model considering only the time-varying predictor in R would be, I think: troponin ~ glucose*time_period ...
Suppose I have a measure $G$ that follows a Dirichlet Process, $$G \sim DP(H_0,\alpha)$$ where $H_0$ is some base measure. Is there a closed form solution for the expected value of $G$?
I know that it is not possible to run a fixed effects probit model, when fixed effects are at the individual level. In other words, it is not possible to estimate $\alpha_i$ for each individual $i$ in the sample. However, is it possible to include fixed effects that are not at the individual level? For example, suppose...
I am new to time series analysis. But I am well versed in data science and machine learning. One thing that confused me was modeling the data. For example, I want to create an LSTM or regression model, I have stationarized all my variables (first-order differences). My dependent variable/target is stationary and I can ...
I have a set of panel data and want to do a fixed-effect regression. My data consists of four years of survey data with (nearly) identical structure. My dependent variable (for each year) is a satisfaction dummy that can be answered with either yes or no. My independent variables are several characteristics people migh...
First of all, I apologize in advance for errors and/or usage of unspecific terms. Let's say I have the median and IQR for some variable for a "test" dataset and a set of "reference" datasets, and I want to know how different or abnormal the distribution of the variable in the test dataset is in comparison/context of th...
One of the things I've struggled with is the issue of effectively summarizing some sort of time series metric (i.e. independent variable) for use in a regression analysis. The most common solution that I've encountered (which may not be the best) is to compute a meaningful average. Although I can get a single number I ...
I am new to time series and would appreciate help in this matter. I have a time series with the following graph as a result of applying the plot_acf in Python. Given this, can it be inferred that this series can be predictable via Machine Learning algorithms? I have already tried LSTM and N-HiTS to predict and the MAE ...
the standard result is that with a uniform prior on p (from 0 to 1) and binomial signals (h H signals and (n-h) L signals from n draws, each with probability p), the posterior mean is (h+1)/(n+2) and the ex-ante probability of observing h H's is 1/(n+1). it's beautifully short formulae. are there some papers or books ...
In a comment one user said that the true guard against overfitting is the adopted priors but, for example, in bayesian neural networks we still have priors on the weights and the common advice is to use a test dataset to check if there is overfitting
I'm working with a dataset to train a credit risk model. The dataset already has flags for how it should be split so results can be reproduced, it has a column with two values DEV, for development, and OOT for out-of-time. But then again I have another column that determines if the register will be used for train or te...
Given a scenario where I compare a single column(independent variable) in a data set to the other columns(dependent variables). If I find the outliers from the independent variable. What could I test for by removing and keeping the outliers. What measurements could I take that could show the difference the outliers hav...
I've conducted a questionnaire asking participants to rate biscuit samples based on factors such as taste and look. The ratings ranged from strongly like to strongly dislike. What is the best method to analyse/compare the ratings of different samples? For example, compare the appearance ratings of sample 1 with the app...
When setting out experiments, I want to make sure treatment groups are as balanced as possible. Instead of using randomization, I've started to use the following process. I first collect some measurements from the potential experimental units I have at my disposal. Then, I generate all the different possible combinatio...
Let $\mathcal X$ (observation space) and $\mathcal P$ (prediction space) be non-empty sets. Let $P$ be a variadic function (predictive model) mapping tuples of elements of $\mathcal X$ into $\mathcal P$. Let $\ell: \mathcal X \times \mathcal P \rightarrow \mathbb R$ be a loss function. The predictive task is then defin...
Say my randomization wasn't very effective, so I have two groups, each with 100 individuals and the difference in success rates is 3% before the treatment has ever been administered. I want to know the lift in success rate that can be attributed to the treatment exposure. A statistician on my team proposed a regression...
I have a classification task for which I have a binary outcome -- however, I need to know the level of confidence in classifying each individual in with medical record (previously referred to as row). The specific classification problem is how to ascertain if someone is pregnant based on medical records (there are appr...
I have had to include a squared term in my regression model due to observed non-linearity in the LOWESS plot. In my reading to understand how to interpret the coefficients on the linear and squared term, most advice to centre around the mean. However, my model regression is multivariate, with linear variables. I'm unsu...
I am trying to find the best analysis approach for my data. Simply put, I am looking at a treatment for the impacts of drug exposure before birth. My groups are: 1 - no drug, no treatment 2 - drug, no treatment 3 - no drug, treatment 4 - drug, treatment In each group, there are 5-7 pairs so siblings (1 male, 1 female f...
I am trying to look at how two different factors A (levels A1, A2, A3, A4) and B (levels B1 and B2), as well as the interaction between the two, influence the time to an event X. As a result I am trying to use a cox proportional hazards model as my data contains censored data (individuals for which event X did not occu...
First of all, this is not a case of Overfitting. The task is to forecast Temp using univariate Single Step forecasting. I have trained the LSTM model with on jena climate dataset(Dataset https://storage.googleapis.com/tensorflow/tf-keras-datasets/jena_climate_2009_2016.csv.zip.) Following are steps Extract Temp as a s...
A simple question that I just want to clarify for understanding: In logistic regression, if we have $n$ input features, will there therefore be $n$ weights used for classification, one for each feature? EDIT: I wanted to edit this so it will show up if others search. It seems that a more common terminology for what I c...
I have MA(2) as $$x_t=e_t-0.3e_{t-1}+0.1e_{t-2}$$ and would like to find $x_{t+1}$. But I struggle and $$x_t(1-0.3B+0.1B^2)^{-1}=e_t.$$ I can't write it as linear process because the root of the equation is complex. In here I try to find the best linear predictor of $F_{t+1}$.
After years of uncertainty, I need to make this question. I have a conducted several experiments with X replicates each. I obtain then a dataset, where each "observation" is a single experiment and the values are each average±SD of those replicates. Now I need to calculate the Average and SD of the whole study. While i...
Given an unbalanced panel of data points $(X_{i,t})$, I calculate variances in a rolling window (labelled $Y_{i,t}$). I want to calculate the time series mean of cross-sectional averages of this generated variable $Y_{i,t}$. In Fama-MacBeth (1973) language, I estimate an OLS regression of $Y_{i,t}$ on a constant for ea...
Suppose I have a dataset where 9 patients occured with the post-operative complication. (e.g. information such as height, smoking, weight, age, disease status) and rest of the 150 patients without the post-operative complication. In this case, I only can have 9 as the number of control group and experimental group resp...