instruction
stringlengths
9
38.7k
I conducted an exploratory factor analysis on a 5-point Likert scale utilizing polychoric correlations, identifying and retaining 4 factors. Subsequently, I computed factor scores through the Anderson-Rubin Method. Now I want these factor scores to serve as covariates in an ordinal probit regression, with the dependen...
I would like to forecast demand count time series of taxi fleets at different locations on the map at different points in time. I.e. multivariate demand Time series forecasting. Given hierarchinal demand time series. where the region level time series is the sum of district level time series at each point in time and d...
The question I have is previously posted here in detail by someone else but the main question is not answered. what exactly is the fitted sigma? Is it always standard deviation? If yes, why can't it be used to calculate Z-scores as in this formula: z = (y - mu)/sigma
I'm analyzing # of days a particular bird species was observed in a forested area, let's say out of 100 days. I have a control plot, a masticated plot, and a burned and masticated plot. I have pre and post treatments. I conducted this at 6 sites that are mostly similar. What kind of test would you recommend I run? Data...
I was going through this nice paper ” A Simple and General Duality Proof for Wasserstein Distributionally Robust Optimization”, and one quick qu on applying Theorem 1 to my poject: What if in my problem, I can show as an additional lemma, that the necessary condition for optimality is that the primal problem’s inequali...
I have two lognormal rvs $X$ and $Y$, and a third rv $Z$ which is the product of the former two. I know the mean and standard deviation of the three. Is it possible to calculate an alternative pair of $\mu$ and $\sigma$ the mean and standard deviation of $X$ that follows a specific coefficient of variation ($\sigma/\mu...
I would like first to mention that I am not statistician but I work with lineal mixed model and like to know more about statistic behind them. Here my question: I have a mixed model where I have response variable (e.g. protein content), and I have a set of variables (from spectra decomposition) that are highly corelate...
Consider the following multiple linear regression model \begin{equation} y=\beta_0 + \beta_1 x_1 + ... + \beta_k x_k +u \end{equation} If the variance of the error is not constant for any value of the regressors, we have heteroskedasticity and Gauss-Markov assumption of homoskedasticity is violeted, i.e., $Var(u_i|x_{i...
i have collated a significant body data for a local badminton league (> 20000 indvidual games) and while i have the means to extract data on a: per player per couple per team per club per season per division (across 4 or 5 divisions) per gameType (mixed, mens, ladies) the piece i am missing is a way to understand how...
First time posting, so apologies for any missing info and the like. I have some microbiome data collected from two different treatment groups over two timepoints. I want to look at the compositional changes that occurred between the treatments. To do this, I CLR-transformed my data and I was wondering if there are any ...
Again, today I heard about the same thing. That is, in any lab experiment, if some subjects (ex: medical patients) have 2 observations, some have 3 observations, some have 4 observations.... apparently anova/hypothesis tests dont work .... but longitudinal regression apparently can still work. Why? Can someone explain?...
why the in-sample looks very different from the out-of-sample? Is the in-sample overfitting? Horizon is 12, using pycaret time series function.
I am studying machine learning and wanted to work on a project of my own so that I have better chances after graduating college. I'm studying the application of ML to improve searches using a toy dataset. Here's a couple of scenarios: Document retrieval (search) system: We have a (source) document with us and we're tr...
Background Suppose I have data $\mathcal{D}_1, \cdots, \mathcal{D}_n$ with each $\mathcal{D}_i$ containing $m$ observations $X_{i1}, \cdots, X_{im}$; these observations are of unknown distribution, but we may safely assume that they have moments of all orders. If $\overline{X}_{n-1}$ represents the sample mean over the...
The dual problem for hard margin SVM is: \begin{align*} &\max_{\alpha} \left( \sum_{i=1}^{N} \alpha_i - \frac{1}{2} \sum_{i=1}^{N} \sum_{j=1}^{N} \alpha_i \alpha_j y^{(i)} y^{(j)} \langle x^{(i)}, x^{(j)} \rangle \right) \\ &\text{subject to } \sum_{i=1}^{N} \alpha_i y^{(i)} = 0 \text{ and } \alpha_i \geq 0 \text{ for ...
I am currently learning about Bayesian methods. One of the first clear distinctions is the lack of hypothesis testing and usage of sampling distributions. I began to wonder about the approach to designing experiments from the Bayesian point of view. In my experimental coursework we discuss power and sample size selecti...
I have a measurement Y, with 2 factors(A,B). For A, I have two levels: A1, and A2. For B, I have 3 levels: B1,B2 and B3. All together, I have 4 groups: group1: A1+B1 group2: A2+B1 group3: A2+B2 group4: A2+B3 My intended comparisons are group2 vs group1 to check the effect of factor A on B1; group3 vs group2, and group4...
Hi I use a difference in difference framework to study the policy effect. My outcome variable has a lot of zero, actually 75% are zero. My question is that how to interpret the aggregate effect based on the estimation from the regression. Is it okay if I calculate the aggregate effect by multiplying the estimation of t...
In the original t-SNE paper, the authors explain the use of the t-distribution with one degree of freedom (i.e. Cauchy distribution) for the map points, $(1 + |y_i - y_j|^2)^{-1}$, as follows: ...[it] approaches an inverse square law for large pairwise distances in the low-dimensional map. This makes the map’s represe...
I am trying to read a research paper (link) that involves a permutation test. My (limited) understanding of a permutation test is that you get two samples of data, compute a statistic based on both samples, then compute the same statistic based on many permutations of the gathered data and calculate the proportion that...
I have limited knowledge in statistics, please bear with me! I am trying to develop a model based on the following conditions: I have a finite population P to draw from, essentially between 1 and 10 billions I draw an element from that population the element has a probability of being successful S regardless of the ou...
I am trying in Stata to analyze the effect of an exposure on the risk of an event, and to determine whether this risk increases or not after a temporal cut-off. I have two groups of subjects, with multiple observations per subject. Every observation is in a separate row. One group keeps being exposed after the cut off ...
I want to calculate R-squared from LST and CO data in GEE. However, after considering the revisit time and cloud masking, I get very few data for Landsat-8 with respect to CO data. For example I have 15 LST samples for the specific months. In return, I have almost 70 samples for CO data. Since the total number of LST a...
first time posting here so please let me know if I can improve my question. As an exercise, I have to simulate 1000 iterations of a sample of 500 observations from a linear model: $$ y_i = \beta_0 + \beta_1 x_i + \varepsilon_i $$ $$\varepsilon_i \sim N(0,\sigma_i^2) ,\ \ \sigma_i^2 = a + b\,x_i^2 $$ Notice the errors ...
There is a dataset, where each Y depends on separate table : Each table consists of the same set of columns, but the number of rows may vary. Features in tables are both numerical and categorical (both nominal and ordinal). Numerical features may have a heavy-tailed distributions. I need to build a regression model, w...
I have a binary predictor group = c("negative", "positive") and this model syntax: outcome ~ 0 + group + (1|subject) + (1|stimulus). In the summary, I receive point estimates for both group means, which is what I want. Now, I want to have a Cohen's d effect size for how much each of both groups differs from zero. I fou...
I have an experiment where I predict that the two levels of my Cond variable (effect coded as -1 and 1) will have different trends over time on my EDA_cs outcome variable (skin conductance). Specifically, I expect my -1 to be s-shaped (cubic) and my 1 to be u-shaped (quadratic). I am testing this with the following mix...
I have a daily time series dataset, and I'm using Facebook Prophet for daily-level predictions. Frequently, my actual data experiences sudden spikes due to external events. What I want to achieve is to capture the sharp increase in the very short term and then gradually return to a more typical level in the short to me...
I am new to Bayesian Statistics but from my basic knowledge, I feel there may be real practical benefit in using it at work. My role is to find process improvements during fabrication to improve batch yield. An example scenario would be that I have a baseline dataset of 10000 batch yields and a second smaller experimen...
I am trying to calculate the following probability distribution: $Max(X_1, X_2,..., X_n) - \frac{1}{n} \sum _{i=1} ^{n} {X_i}$. $X_i$ are iid random variables whose pmf is $\frac{C_{i-1}}{2^{2i-1}}$, where $C_i$ are Catalan numbers. However, I am also interested in the general problem regardless of the specific distrib...
My goal is to create a regression model with text data where encoded text predicts a value, (news headlines, or article summaries, predicting number of clicks). The y is very left-skewed (few articles having very many clicks and most articles having few clicks). My models so far are not able to predict anything and I'm...
I am having a tough time as a newbie understanding the drop argument in OneHotEncoder. Does it drop the column with the non-numerical values of the categorical variables after it is done? I am looking at the documentation and I don't get how we end up with a 2 x 3 array at the end. >>> enc = OneHotEncoder(handle_unknow...
If $X$ is n-dimensional standard Gaussian, is there an analytic expression for the differential entropy of the $\ell^p$ norm of $X$? For the case $p=2$, the $\ell^2$ norm is exactly the chi distribution and the entropy of the chi distribution is known. For the case $p=1$, the method here can be used to derive an analyt...
I know that not all weakly consistent estimators exhibit MSE-consistency : https://stats.stackexchange.com/a/610835/397467. Anyway, does increasing the sample size leads to a reduction in their mean squared error ? Specifically, I am trying to find a formal mathematical argument to explain why models such as Logistic R...
Currently I'm learning about MCMC techniques. . Exercise A researcher wants to sample $\theta$ from a discrete distribution with density function $$ f(\theta)= \begin{cases}p=1 / 6 & \theta=0 |\\ p=1 / 2 & \theta=1 |\\ p= 1 / 3 & \theta=2\end{cases} $$ He is only able to sample from the discrete distribution $$ g(\thet...
I have been reading Pattern Recognition and Machine Learning by Bishop, and I have a question regarding the prior distribution of an iid Gaussian with known variance. The relationship $\dfrac{n}{\sigma^2} + \dfrac{1}{\sigma^2_0} = \dfrac{1}{\sigma^2_n}$ is derived in the text. The derivation stems from the fact that yo...
I implemented a Variational Autoencoder (VAE) in PyTorch for motion sequence generation using human pose data (joint angles and angular velocities in radians) from the CMU dataset. The VAE architecture consists of an encoder and a decoder, each with two layers, comprised of a Conv1D layer and an ReLu activation for eac...
Consider the family of all continuous distributions with finite $r$-th moment (where $r \geq 1$ is a given integer). We denote this family as, $$\mathscr{P}_r=\left\{f:f \ \text{is a pdf and} \int|x|^rf(x)\,dx<\infty\right\}.$$ Suppose $X_1, X_2, \ldots, X_n$ is a random sample from this family. Find a complete statist...
I used propensity score matching in one of my studies to reduce the effects of confounding. Although some authors have suggested that methods of inference appropriate for independent samples can be used for assessing the statistical significance of treatment effects when using propensity-score matching, others recommen...
I would like to investigate whether social economic status (SES) would be associated with the age of onset of mental illness, after controlling some possible confounders, in the cohort of patients with mental illness. No censoring data were included as all the data were from mental illness cohort (all patients have age...
I'm working on a project that provides an anonymized dataset to a service. Clients of this service will often use our data to make inferences to the population it's drawn from. Our data is known to be biased with respect to certain categorical variables that (for privacy reasons) can't be included in it. The mismatch b...
I am trying to test if there is an effect on number of individuals depending on the proportion of a certain land use type and its management. But I don't find a model with a good fit. There seems to be zero-inflation and I have tried to fit a zero-inflated model, but any way I try, the zero inflation test still tells m...
I have access to a population of around 5 million people. I also have access to multiple social and demographic variables (age, gender, level of education...). I randomly sampled 10,000 people from that population. I randomly divided this sample in 2 equal groups of 5,000 people. I sent a survey to one of those 2 group...
The time series model in pycaret offers a lot of methods, some of which have w/Cond Deseascnalize & Detrending. Why exactly does it mean? Models like ARIMA does not have it. Exponential Smoothing ETS ARIMA Auto ARIMA Passive Aggressive Wi’ Cond. Deseasonalize & Detrending Theta Forecaster Huber Cond, Deseasonalize &...
I have a list of items. Each item has some properties associated with them. For example, let's consider country. Let's say out of 100 entries, 98 are from US and 2 are from UK. When considering the number of countries that the list includes, saying it's 2 is not useful in my case as most of the entries are from single ...
We are submitting a paper documenting new statistical model. We have a matrix Fi,t and a vector Fi, defined like this: Thus, the vector Fi contains row sums of matrix Fi,t. Since the definition of Fi is basically a definition of Fi,t without the recapture at time t, we thought it is nice to use the same letter for bot...
I collected species richness data along permanent transects over the course of 3 months. So observations were made at the exact same location, where each transect was sampled once a day for 12 days over the course of 3 months. I am trying to determine what dependency structure I need when constructing a GAMM. My model ...
I am currently working on the topic of instance segmentation. So far I have found three possibilities for categorising the architectures: one-stage / two-stage architectures proposal based / proposal free architectures detection followed by segmentation / labelling pixels followed by clustering Can anyone tell me the...
I'm trying to interpret results from my logistic regression. I normalized the values between 0 and 100 because I had many variables with different units. My intercept is -0.741 and I'm using that to calculate probability P0 For the variable investment cost, I calculated the unit change as function of the max and min or...
The famous paper [1] compares the power of several normality tests. Regardless of its result, my immediate question is, "How is that even possible?" Well, the definition of power in this case is the probability of rejecting the null hypothesis H_0: the underlying distribution is a singly variated normal distribution ...
In this problem we consider a sensitive dataset $x \in \{−1, 1\}^n$. We consider the bounded setting where neighboring n-dimensional datasets differ in one coordinate. $A$ mechanism is available that supports statistical queries on x. Specifically, for a query $q \in \{−1, 1\}^n$ the mechanism computes the dot product...
It seems to be that the minimum number of observations needed to calculate variance is 2. I can see the logic behind this because by logic, there can not be variance for a single point. But on the other hands, I don't think 2 points are really enough to calculate variance in general. This is because you need to observe...
I am completing exercises in the book Mathematical Statistics: Basic Ideas and Selected Topics regarding proving or disproving that a model is identifiable. The problem I am struggling with considers $X_1, \ldots, X_n$ where $X_i \sim \text{N}(\alpha_i + \mu, \sigma^2)$. I am attempting to prove that the parametrizatio...
I have a group of approximately 130 participants. I am interested in evaluating the amount of food they consume per month. I have two different measures for evaluating them, mass and volume. I have split the participants into three tiers using the 1st and 3rd quartile each month. In the end I have two sets of data. Eac...
I have a subset of a data as below: I would like to compare two groups (1/0) for 6 categories for using a medication Every week they could choose more than one option for each question. The number of responses for each response option during the full study period and test differences between group (1) and group (0). Th...
The elbow method calls for setting the number of nearest neighbors (let's call it $k$) to the minimum number of points for a cluster (let's call it $m$), but what do you do when $m\leftarrow1$? Is the elbow method still usable in this situation, and if so, how do you determine $k$ since setting $k$ equal to one results...
I am currently working on a report about the frequency of hand types in Texas Hold'em and whether or not the frequencies change when there are multiple players involved. For example, is there a change to the frequency of straights when there are five players compared to when there is one player? With each player having...
I'm trying to prove a common result for the Poisson process but I'm stuck. Given $T_i$ are i.i.d. $Exp(\lambda)$ random variables (where $\lambda$ is the rate) that represent the duration of arrival events and $N(t) = \textrm{max} \{ n: \sum_{i=1}^{n}T_i \leq t \}$ is the number of said events within the interval $[0,...
Hi I have a difference in difference framework with multiple pre-periods and post-periods. I get the coefficient of Treatment * Post from the DiD regression. Is this coefficient an annual effect? ( My data is at the level of Individual-Year) If so, why?
I have a linear system with uncorrelated, heteroscedastic noise, $Y \propto \mathcal{N}(Xβ,Σ)$ where $Σ$ is a diagonal matrix with elements $σ_{ii}^2$. The MLE is given by weighted least squares (WLS) with weights $W = Σ^{-1}$, $\hat{β} = (X'WX)^{−1}X′WY$ with estimator variance $(\hat{β})=(X'WX)^{−1}$ Suppose I only h...
Say I want to compare two order statistics (say the 2nd largest value or min value) of two samples. Let's not make any distributional assumptions except that the variance is finite? Is something like the Mann-Whitney U test adaptable here? A permutation test or bootstrap hypothesis test seem like it would be strange gi...
I am running a two-stage regression model, where the first model is a log-linear model he outcome is log(y) = Intercept + 1 * x + Error. I then calculate the residuals for each observation of x. The second-stage regression model is each residual for the ith observation: residual(yi) = Intercept + 1 * x + Error For the ...
I have simulated the moving and clustering of actors through Netlogo. I colour actors with a score higher than 60 as red, lower than 40 as green, and others as blue. Now I need a measurement of the level of clustering of the chart that describes whether the green actors are scattered or clustered, and how well they ar...
I'm analyzing microbiome data un R, and for beta diversity i got aitchison distance, unifrac (weighted and unweighted) and Bray Curtis. Then i usted Adonis test (from vegan) Note: i'm looking for differences in gut microbiota composition from 14 insect species. From Adonis test, p-value Is 0.001 afther 999 permitations...
I understand the intuition that the sum of linear functions is again linear, and that is why a neural network with linear activation functions yields a linear model. But what I'm confused about is that lets say we have two neurons outputting $w_1^{[1]}x+b_1$ and $w_2^{[1]}x+b_1$, with just an identity activation functi...
I recently conducted a survey asking users about their music listening habits at different times of day. Here are the results from 6am in the morning: Taking a weighted average, 32.14% seems quite high. The Median doesn't work well with only having 6 choices. Would it be appropriate to use a Geometric mean for a distr...
Two researchers are tasked to independently collect a same set of data ($N$ observations) from a same set of subjects. For simplicity, let us assume they observe only one variable. After comparing their data, we notice a mismatch in $K$ observations. Obviously, at least $K$ values are wrong, though we don't know which ...
I perform a synthetic calculation and then an inversion, that is, I have actual value in the synthetic calculation and I estimate it in the inverse problem stage. The inverse problem gives me the estimation of the actual value and its standard deviation. However, the estimated value plus the standard deviation is less ...
Consider you have an optimization problem where your are given: Dataset $(\mathbf{x}, \mathbf{y})$ $\mathbf{x}$ is perfectly known $\mathbf{y} = \mathbf{y}_{\text{true}} + \mathbf{n}$ with $n_i \sim \mathcal{N}\left(0,\sigma^2\right) $ Variance $\sigma^2$ is known and noise is IID $\mathbf{y}$ depends nonlinearly on...
I want to define the dimensionality of a group as the number of PC features that can explain 80% of the variance in the group dataset. This intuition seems to work for a single group, however, if I want to compare the dimensionality of two groups using the same idea, how do I mitigate the problem of different numbers o...
First my assumption was that ARMA models take only the autocorrelation of the time series into consideration but not of the error terms (wrong!). But this assumption is wrong! As the within ARMA models the autocorrelation of the implicit error terms (approx trough the residuals) disappear. An ARMA model with autocorrel...
I'm doing a simple regression task using a neural network with two inputs (x1 and x2) and one output (y). I want to add an additional term to my loss function such that when x1=0 we always get y=x2. How would I formulate an additional term to account for this?
I've often looked at count data models over the years. And like a lot of statistical models, they can be used/abused in cookbook style. Identify equidispersion -> do X model (Poisson). Identify overdispersion -> do Y model (some modified Poisson or alternative spec). However, when I read textbooks on count data model...
Is it true that in probability theory the third central moment of a sum of two independent random variables is equal to the sum of the third central moments of the two separate variables?
Suppose $x \sim F(x; s)$ where $s\in\{n, p\}$. Then let $F(x; n) \leq F(x; p) \forall x$. Can this be be a valid PDF? It seems that other than the case where $F(x;n)=F(x;p)$ it is not possible. Letting $\int^\infty_{-\infty} F(x;p)dx = 1 $, then allowing $F(x; n) < F(x; p) \exists x$. Would this not imply: $ \int^\inft...
How would you find the probability of the following: $$\frac{c+\sum_{i=1}^na_iZ_i - \sum_{i=1}^ma'_iW_i}{\sqrt{\sum_{i=1}^nZ_i^2}}>\frac{d+\sum_{i=2}^{n+1}b_iZ_i - \sum_{i=1}^{m}b'_iW_i-b'_{m+1}Z_1}{\sqrt{\sum_{i=2}^{n+1}Z_i^2}}$$ where $Z_i \sim N(0,\sigma^2)$ for $1 \leq i \leq n+1$, $W_i \sim N(0,\sigma'^2)$. I tr...
Sorry if my question is a little silly. I did an experiment about the effect of a drug, so I designed an experiment with two groups: the control group(without any intervention) and the experimental group (which subjects received the drug). Each group has aprox. the same number of samples. The subjects in the experiment...
I have no math background and am in way over my head trying to figure out the correct notation for my model: a multilevel random-slopes gamma regression with log link and AR(1) autocorrelated residuals. There is one predictor $x$ measured several times per individual, separated into within- and between-person component...
I have data of individuals giving scores with millions of observations on thousands of products. The individual scores are ordered at the product level, representing a sequence starting from 1 to the maximum number of scores that product received. By now I aggregate products by the first n scores they receive, creating...
In my current research, I am working with a comprehensive dataset that captures human mobility patterns across different locations. My specific focus is on quantifying the similarity between these distributions, using a feature called "median dwell time," which represents the median duration individuals spend in variou...
In reading about quasibinomial regression: The quasi-binomial distribution, while similar to the binomial distribution, has an extra parameter (limited to ||≤min{/,(1−)/} ) that attempts to describe additional variance in the data that cannot be explained by a Binomial distribution alone. What is quasi-binomial dist...
I have a dataset of many variables of varying data types (binary, categorical, ordinal, continuous), and I want to find the correlations between them. I encoded the binary as (0,1) and one-hot encoded the categorical variables. I thought that I could simply use a Kendall's tau correlation matrix because of the differen...
When I view a histogram of my weights it is very much centred at 0, with the overwhelming majority being very small. I want to ensure I do not have a vanishing gradient problem. I must preface this by saying that my target data is normalised to [0,1] & my input data is standardised. With ReLU I understand that weights...
I differentiated cdf to find pdf and then integrated it, but the result is not 1. What’s wrong with my calculation? CDF $$F(x)=\begin{cases} 0&x<1\\ \dfrac{x^2-2x+2}{2}&1\le x<2\\ 1&x\ge2 \end{cases}$$ PDF $$f(x)=\begin{cases}0&x<1\\ x-1&1\le x<2\\0&x\ge 2\end{cases}$$ However, \begin{align*} \int_{-\infty}^{+\infty}f(...
The experiment goes like, there are two different machines, Machine_A and Machine_B and a Technician. The machines have the same purpose which is for measuring a continuous quantity (be it weight, temperature, or anything) and the Technician is supposed to be like the one with the correct measurements. The researcher w...
Background. I am using multiple imputation using the "mice" package in R (https://cran.r-project.org/web/packages/mice/mice.pdf) to handle missing data in a large public dataset I am analyzing. I have been following this tutorial, which has been incredibly helpful: https://library.virginia.edu/data/articles/getting-sta...
Let's say I'm trying to cluster observations based on five features, including: n_emps: Number of employees n_cust: Number of customers If I were to declare cust_per_emp by dividing n_cust by n_emps to account for the average number of customers per employee, would it make sense to keep all five features plus the new...
I have always taken $\text{“}R^2\text{”}$ to mean the proportion of a sum of squares explained by a model. The context in which this idea is first encountered is when one explains part of the total corrected sum of squares $\sum_i (y_i-\overline y)^2$ by fitting a straight line $\widehat y = \widehat \alpha + \widehat...
I have been beating my head against this wall: There is this optimization problem for SVM (photo taken from Andrew Ng's lecture notes) What I did not get is how, by using a quadratic solver for example or even just as a phenomenon, the "b" value gets set initially. We are optimizing in respect to both w and b, so the ...
I'm trying to use non-parametric bootstrapping to compare mean values in a 2 (between) by 4 (within) experimental design. I cannot use mixed ANOVA because the sample values are not normally distributed. I basically need to get a probability value of obtaining the measured means under the null hypothesis to test for two...
I understand an estimator is a "rule" (e.g., a function, say $g$) that produces an estimate ($\hat\theta$) of an estimand (say, a population parameter, $\theta$). My question: is it technically correct to say "bias of the estimate" and "bias of the standard error of the estimate", or should we instead be saying "bias o...
As the question says, what is the distribution of the estimate of residual variance in a standard gaussian linear regression? I'm confused because I know in theory the observed $y$ subtract the predicted $y$ should be normal, so the sum of these squared should be chi squared. In practice though, say we want to calcul...
Suppose we are using an Ordinary Least Squares (OLS) estimator of $\alpha_{0}$ and $\alpha_{1}$ for the simple linear regression below: $$ H_{i} = \alpha_{0} + \alpha_{1}X_{i} + \epsilon_{i} $$ How does one show that the goodness-of-fit measure, $R^{2}$ will equal to the square of the correlation coefficient of $H_{i}$...
I am relatively new to statistics and I am conducting some statistical analyses on a dataset. My dataset has two categorical, independent variables A and B. A has 7 potential values and B has 18 potential values. I also have a dependent variable, C. I want to see how C is affected when the values of A and B are changed...
Every definition of consistency I see mentions something convergence in probability-like in its explanation. From Wikipedia's definition of consistent estimators: having the property that as the number of data points used increases indefinitely, the resulting sequence of estimates converges in probability to $θ_0$. T...
I have two drugs. Drug A and Drug B... I did a test where I gave one group Drug A and another group Drug B. For the group I have Drug A, I saw a 20% cure rate. For the group I gave Drug B, I saw a 17% cure rate... However, there were only 1000 people in the group I have Drug A and there were 300000 people in the group...
Here is an example I thought of recently. Suppose in the year 2000, 1 dollar could get you 10 apples. In 2005, 1 dollar could get you 8 apples. In 2010, 1 dollar could get you 7 apples. In 2015, 1 dollar could get you 8 apples. In 2020, 1 dollar could get you 5 apples. If we put a regression through this data, you will...
Say we have a well setup A\B test that puts half of users in one arm, half in another. Do we describe the sample space as $\Omega_1$ for arm1 and $\Omega_2$ for arm2? Or do we instead just say the outcomes of the experiment are over a single sample space, $\Omega$? I'm trying to formalize my test as a series of element...
What is each entry in an outcome of a sample space called? For example, say our outcome is ${HHT}$, describing two heads and one tail. What is each head ($H$) and tail ($T$) member of the outcome called?
I have a problem with the LSTM forecast model; it predicts the current value instead of the next value. I have checked the data alignment, and it is correct. Try with: different scallers and unscale the data different input window use the difference in Target Value (target.diff()) But with the same problem, I also ch...