instruction
stringlengths
9
38.7k
I was asked to perform a two-sample t-test for correlated data. When I search for that, I barely found a source mentioning this name. Almost all the sources used paired sample t-test but I want to be sure if paired sample t-test and two sample t-test for correlated data are the same test. I have 4 samples (4 huts with ...
Quite a basic multiple linear regression question. I know that the intercept should describe the predicted value when all predictors equal 0. Then, why does adding a paired interaction term (X1X2) changes the intercept? Wouldn't the product term be zero when the predictors are zero? Thanks for your help.
$36$ blood samples are collected at random from a blood bank and $6$ samples are sent to $6$ laboratories for studies. The assignment of each sample to each laboratory is random. A friend of mine told me she had a nested model. The data is given by the following table, where x denotes the laboratory: x sample val A ...
This has been bugging me for a while, and I'm not getting an answer where I study, so maybe someone here can help me out. (Don't worry, this isn't homework) Consider this question: Assume that you, Bob and Nate have a height of 172, 174 and 169 cm. Also assume the heights to be independently normally distributed with ...
In a paper, I read that "the values are polluted by white noise of amplitude up to 10%". Say, the referred values are stored in a vector x, what is meant by amplitude in this regard?
I am quite new to R, so this is maybe a "basic" question. I have a dataset with multiple imputed data (repeated measures). I want to do a mixed model and test a three-way interaction with lmer. However, I can't figure out how to set up this model correctly: Sleep problems (sleep) should be the dependent variable. The i...
I have a ML model (a NN in the specific but I don't think it's important for the purpose of my question) that is doing pretty decent at his job, which is predicting the demand of a certain substance X in the next day (on day n I have to predict the demand of X for day n+1). The overall prediction error is satisfying, t...
I've been training on predicted labels and then using that to predict the train data, using the resulting score as a measure of fitness of my model. It seems to work quite well in many different scenarios, though I do notice that some level of accuracy is required otherwise the score can be a bit noisy and less useful....
Intro Let $Y$ be a random variable whose PDF is $p_Y(\cdot)$. Let's say that $Y$ is a function $g(\cdot)$ of another random variable $X$ whose PDF $p_X(\cdot)$ is given. Then, you do your calculation and you end up with the analytic expression of the PDF $p_Y(\cdot)$. My general question is: how do verify that your res...
I'm looking for a way to estimate the equivalent of modification indices for parameters that are not zero, but are constrained to be equal. See example below. HS.model <- ' visual =~ x1 + a*x2 + a*x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 ' fit <- lavaan(HS.model, data=HolzingerSw...
I have response times in seconds of 3 tasks which follow Gamma distribution: F ~ $\Gamma(k_1, θ_1)$, G ~ $\Gamma(k_2, θ_2)$, H ~ $\Gamma(k_3, θ_3)$. Tasks 1 and 2 run in parallel, but task 3 runs after the first two. From this setup my goal is to calculate the probability of all tasks being executed within x seconds. C...
I am struggling with how to conduct multilevel modeling for my current data (I am fairly new to multilevel modeling). I have Event as an IV (bad event = 1, good event = 2) and have well-being as a DV. Here, I would like to assess whether the mediator (psychological trait) would moderate the relationship between IV and ...
I developed an experimental method that measures certain material property. I want to see how precise my method is, so I have a confidence interval, or other metric. To do this, I'm comparing it with an established (and theoretically "perfect") reference method. Sadly, one method is destructive, and due to external is...
The law of the unconscious statistician (LOTUS), is a theorem used to calculate the expected value of a function $g(X)=Y$ of a random variable $X$ when one knows the probability distribution of $X$ but one does not know the distribution of $g(X)$. If the point of LOTUS is to find the expectation $E[g(X)]$, then the the...
I have a question about the interpretation of the log-rank test, when the survival curves (in the figures below hazard curves) are close together. Below you can find two figures with survival curves for three groups. In both cases, the Log-rank test indicates a significant difference in the probability of the event at ...
Assuming I have time series for different for some consumers visiting a website. The time series would look something like this: import pandas as pd foo = pd.DataFrame({'user_id':[1,1,1,1, 2,2,2,2, 3,3,3,3, 4,4,4,4], ...
I am currently studying the textbook In All Likelihood by Yudi Pawitan. Example 2.10 of chapter 2.5 Maximum and curvature of likelihood says the following: Example 2.10: Based on $x$ from the binomial$(n, \theta)$ the log-likelihood function is $$\log L(\theta) = x \log \theta + (n - x) \log(1 - \theta).$$ We can firs...
I have a dataset with several features and a binary outcome (0 or 1), from which I want to estimate the probability of getting 1 based on some of those features. I thought of applying logistic regression, however there’s a constraint I have on some datapoints where the probability is expected to be around 1/2. How do I...
I would like to fit some economic data and evaluate it. Usually I used only regression techniques, but recently I found out about smoothing techniques which could be used to diminish noise in dataset before regression. As I currently understand, conventional way for assessment of a fitting (pre-processed by smoothing) ...
I am doing a linear regression and the summary for the model is good however the plot is not normally distributed, i wanted to know if the model is still valid.
I have a sample of two-dimensional points $\{\{x_1,y_1\}, \dotsc, \{x_n, y_n\}\}$, I've built a linear regression line, there seems to be a correlation between X and Y (Pearson's 0.662 if that matters). Now what I need is to have a measure (p-value or something like that) of how likely an additional point $ \{x_{n+1}, ...
Suppose I have a population where some subjects have a property $P$ and some do not. Further, I have a sampling technique which I use to extract a sample of 10,000 subjects. Of those 10,000, 20 exhibit $P$ and the rest do not. If instead I extract a random (disjoint) sample of the same size, only 5 subject exhibit $P$....
Is it possible to implement a multinomial/categorical model where the number of categories itself is variable? For example, say I have two surveys with the following questions/responses: What ice cream flavor do you prefer: Chocolate/Vanilla/Strawberry; 1,000 / 900 / 100 What ice cream flavor do you prefer: Chocolate/...
As title. I'm worried about the implications of autocorrelation (the timeseries is not stationary), if should transform it to be stationary, etc. Particularly worried since right now I'm having problems beating a simple Naive seasonal average model. If I transform the series, it is not clear to me how to best compare r...
I have a question regarding the cumulative incidence curves obtained using prodlim, which seems to differ quite a lot compared to the ones that I can obtain from the survfit function in the survival package. In a relatively basic competing risks setup, I would expect the two implementations to give more similar result...
I am building computer vision models on data that exists in a continuum. For example, imagine I'm trying to do semantic segmentation on cars. Some of the labels are distinct, like "chipped paint", but others exist on a continuum, like "not dirty", "a little dirty", "moderately dirty", or "filthy". I can create descript...
Per my understanding, there are 2 kinds of "subsets" that can be used when creating trees: 1) Subset of the dataset, 2) Subset of the features used per split. The concepts that I'm comparing are: 1) Bagging, 2) Random Forest, and 3) Boosting. Please let me know if the following is correct or incorrect: Bagging: Uses Su...
I have a continuous response variable from proportion data with both negative and positive values. Values in response variable range from 0.92 to -0.92. I would like to use glmms but not sure what family to use. As I understand, beta family can be used for proportion data with values between 0 & 1 (both exclusive). Abo...
Extremely confused about the following: Lets say we start out with a dumb weak learner. Since its the 0th model and hasnt learned anything yet, we have a high residual, lets say of 10,000. We produce the next weak learner, which actually turns out to be pretty good. The residual is only 1000. And so we update the resi...
I might be thinking about this in a completely wrong way, but I have the following problem: Let's say we have 100 people in the population, and we know the probability of someone dying on any given day is 50%. To estimate the number of people that die on day 1, we can use a binomial distribution with 100 trials and a 5...
i am working on understanding Markov-Chains but i have a hard time understanding an irreducible MC. At our uni we have following definitions: "If the set of all states is closed and does not contain any subset that is closed, then DTMC is irreducible Alternative definition: A DTMC is irreducible if every state is reach...
Suppose we have a data set $\mathcal{D}$ consisting of $n_C$ continuous features $\boldsymbol{X}_1, \boldsymbol{X}_2, \dots, \boldsymbol{X}_{n_C}$ and we wish to target a discrete variable $\boldsymbol{X}_D$ which takes 4 levels based on some linear combination of the continuous features. For simplicity, assume that $X...
Why can't we do z-tests of two proportions for data from a continuous variable? For Example, if I have sample sales data (continuous, dollar) from a company and want to see if the proportion of sales of a certain product group has changed from one year to the other, can I roll up the products to product group and just...
I am running proportional binomial GLMs with 2 factors (Test Salinity and Region) but I am running into an issue with high multicollinearity. The reason for this is because this is a lab experiment with a fully factorial design where individuals from each region were spit up across 7 salinities - so each region will ha...
Attached is a plot of the R-squared for each additional latent variable (LV) included in a PLSR. When choosing which LVs to display on a biplot (and ultimately determining which factors best explain variance in the response variable) I am not sure which LVs to choose. Every source online always uses the first two (or ...
I'm encountering a result in research that is counter-intuitive to me. Specifically, I have two matrics, $X, Y$, where $X_i$ is the ith column of matrix $X$. In my research: $\Large{\rho}$$ (\sum X_i, \sum Y_i) < 0$ and statistically significant, While: $\Large{\rho}$$ (X_i, Y_i) > 0$ for all columns. Can anyone provid...
In the last 4 hours I have been trying to wrap my head around the Error 1 Inflation that, citing wikipedia, happens, when we perfom multiple independent tests on the same dataset. The probability that one of these results ends up with a Type 1 error when not caring about adjusting the significance level is: $1−(0.95)^{...
Can the coefficient of an independent variable in a multiple regression model be greater than the dependent variable units? E.g. if my dep. var. is categorical (10 scale), does it make sense if one of the coefficients in the model is 12.35 (statistically significant), and if so, how? Because how could a one unit increa...
I am working on a modelling issue with two main effect variables: time period and Setting, related to an outcome, with all 3 being binary. My PI wants to test for moderating effects, so we have an interaction term included. There are repeated measures within individuals in the study. I have to code it in SAS but it is ...
I have temporal data that I try to analyze correctly. I have plotted my independent (let's call it x) and dependent variable (let's call it Y). The pattern they show is pretty much the same. Let's say from the period 1800 to 1950 it starts to decline, and then it flips in the opposite direction. My dependent variable d...
I'm working on a binary classification problem with a small dataset n < 2000 that predominantly uses text data. Let's say the model tends to misclassify observations where a certain categorical column value is 'A' or 'B' but performs well on 'C' or 'D'. If I have the means to get help with manual data labelling, is it ...
The similarity measure between two attributes always falls in the range of $[0,1]$, why is this not true in the case of dissimilarity where the value falls in the range of $[0, \infty)$? Can't the dissimilarity between them be thought of as the opposite of similarity in the sense that if they have a similarity of 0, th...
I need help for this exercise please: How do I compute the joint Survival function for the bivariate Gumbel distribution: $f_{xy} = ((1+\delta x)(1+\delta y)-\delta) e^{-x-y-\delta xy}$ According to this paper the result should be $e^{-x-y-\delta xy}$ [with $\theta = \delta$] (see end of the screenshot): I don't know ...
I have a data set with plant measurements and indices as columns. I would like to see the correlations between the indices and measurements to see if any indices could help to predict the value of some measurement. I performed a simple corrplot in R but the results show no particular correlation. Thus, I would like to...
I would like to analyze the output of 11 field trials dealing with the disturbance to soil after logging operations. The goal is to check if there are significant differences between two machinery: skidder and forwarder in comparison to control soil not affected by machinery passage (so three treatments skidder, forwar...
I am getting different significance outcomes when using non-parametric tests on the raw data versus log-transforming the data and then applying parametric tests. Which one is more valid? Please consider the following situation: I have Machine 1 (the reference) and Machine 2 (the experimental) which count the number of ...
please bear with me because I'm a beginner. I have created an LSTM Model to solve a regression problem. The metrics that I am reporting are RMSE, MAE and R2. Unfortunately, my model might not be robust enough (also, not enough data), so everytime I run it after fine-tuning the hyperparameters, I get a different result....
I'm reading the textbook Survival Analysis: Techniques for Censored and Truncated Data by Klein and Moeschberger, and in Chapter 3.5 it says Data from experiments involving right censoring can be conveniently represented by pairs of random variables $(T, C_r)$, where $C_r$ indicates whether the lifetime X is observed ...
I have data from an agricultural field trial with scouting data (pest infestation, leaf damage estimates) on two occasions and plant height and yield at harvest. There are six field management treatments including the control, and the trial has a split plot design with farmers' fields (=block), nested within landscapes...
I am looking for some help with factor analysis in R. I ran a factor analysis using psych package and ended up with a four-factor model, which is fine. BUT... I want to use the results in further analysis to : discuss which of the factors is the most prevalent for each respondent, eventually, use the factor scores in ...
I have a binary classification task with highly imbalanced data, since the class to be detected (in the following referred to as the positives) is very rare. For data limitation reasons my test set cannot have the representative prevalence (i.e. positives/total ratio) and at the same time contain enough positives for t...
First, I'm really sorry if this is a duplicate, I just couldn't find a definite answer. I'm not used to analyzing categorical variables so I'm having trouble with something that is probably very basic. So, I'm running a glmer model with a binary outcome and 2 categorical predictors, one with 2 levels (pub) and one with...
Suppose a data with a large sample size has a binary categoric variable (i.e. True/False, etc) and it is assumed that the null hypothesis of the sample follows a discrete uniform distribution. Is it possible to conduct a Chi-Squared test to determine whether or not the data follows a uniform distribution (and therefore...
I have ratings of different products (a number, 1...10) by different customers in different countries. Product X will get a high rating in country A. Product Y will get a medium rating in country B. However, both customers are happy with the product. Is there a way to make the rating fairer? For example, if people in c...
I am wondering if the following reasoning is correct regarding minimal sufficiency and dimension. Given $X_1,\dots,X_n$ i.i.d. $N(\mu,1)$, we know that the sample mean $S = \bar{X}$ is a minimal sufficient statistic. Let $T := [1^T_{d-1}, \bar{X}]^T \in \mathbb{R}^{d}$ be the $d$ -dimensional vector of all ones in the ...
For a period of ten years, I have to identify, if there are timely variations of impact of the independent variables on the dependent variable. So far, I have run an RE regression for the entire period. But now I have to identify variatins over time. My approach is to run one multilinear regression for the sample for e...
I am comparing proportions of different maturity stages (3 levels) between different treatments (4 levels). As I have some values less than 5 in some cells, I decided to use a Fisher exact test instead of a chi square. After doing the fisher test, I got a significant results. However, when i did the posthoc test, the r...
I have built the following function which takes as input some data and runs a VAE on them: def VAE(data, original_dim, latent_dim, test_size, epochs): x_train, x_test = train_test_split(data, test_size=test_size, random_state=42) # Define the VAE architecture #Encoder encoder_inputs = tf.keras...
How can I estimate the required sample size $n$ from a population of unknown standard deviation $\sigma$, in order to estimate the mean of a variable, given the margin of error $\epsilon$ and a confidence level $1- \alpha$ ? For instance, if my sample follow Poisson distribution, with parameter $\lambda$, we can constr...
I used the durbinWatsonTest command to test a regression for autocorrelation of error terms in R and got the following output: lag Autocorrelation D-W Statistic p-value 1 0.03016262 1.937592 0 Alternative hypothesis: rho != 0 I'm wondering how can I interpret this? The p-value is obviously very low, but...
Stochastic process is usually defined as a family of random variables $X: \Omega \times T \rightarrow \mathbb{R}$. A realization of this process can be written in the series $x_i = X(w, t_i)$ for $t_i \in T$ and $w \in \Omega$. This is my where my first concern arise. In this notation (borrowed from textbook) $X$ seems...
I'm struggling to understand some notation in this excerpt from Larsen & Marx. Under "Comment" j is defined as 1, 2,...,r, but the sigma shows the lower bound of j as 0. Is this inconsistency a typo?
Problem formulation I have 5 strains on which I administered treatment and repeated the experiment two times independently. So my data looks something like this: strain <- factor(1:5) ctrl <- c(1, 1, 1, 1, 1) trt1 <- c(60.82812657, 6.175973947, 7.395597282, 203.6573398, 24.42014734) trt2 <- c(758.3219468, 26.846584...
I have a relatively simple regression problem where I wanted to model y given x. X is continuous and is bounded [0,inf); y is bounded (0,1). My question is, is it appropriate for me to insert a sigmoid link function into my linear regression model? Predicted values of y should never exceed 1 or go short of 0. The sigmo...
EDIT: I've edited this question to include the probability stage of calculations. Thanks to Henry for getting me started. I'm exploring some simple time series correlation data. And I want to show that two variables are not entirely uncorrelated from each other. Stock A went up 1052 out of 1984 weeks (53.02% of the we...
I'm trying to fit a GLM on some data and I feel like there should be an interaction term between two of the explanatory variables (one categorical and one discrete) but all the non-zero instances of the discrete variable occur on the "1" state of the categorical variable (partly why I feel like there should be an inter...
I am trying to compare slopes/gradients for three Groups (A, B, and C): the values for each Group are on essentially the same scale for the independent variable (Age), but are on markedly different scales for the dependent variable (Performance). Specifically, I am trying to ascertain which of the three trendline pair...
I am currently studying the textbook In All Likelihood by Yudi Pawitan. Example 2.4 of chapter 2.2 Examples says the following: Example 2.4: Suppose $x$ is a sample from $N(\theta, 1)$; the likelihood of $\theta$ is $$L(\theta) = \phi(x - \theta) \equiv \frac{1}{\sqrt{2\pi}} e^{-\frac{1}{2} (x - \theta)^2}.$$ The dash...
Is there a scientific term of using different denominator depending on the result in the nominator where nominator is a diffrence between two variables and denominator is either one of those two variables like in the example: If (variable1 - variable2) < 0 then equation = (variable1 - variable2) / variable2 Else equat...
So it sounds like boosting techniques (eg. XGBoost) uses weak learners (stumps) to gradually learn sequentially. This is not in dispute I hope. However, with bagging techniques (eg. Random Forest) I'm not sure if it grows weak learners (like stumps) in parallel, or fully grown trees in parallel? Since the definition of...
I have a dataset with the following characteristics: Total number of samples: 319 813 Sample percentage of people not declaring their gender: 0.57 Sample percentage of people declared as Female: 0.38 Sample percentage of people declared as Male: 0.02 Sample percentage of people declaring Other: 0.021635 This datab...
Let $y \in \Bbb R^n$, $\Bbb 1$ be an n-vector with all its entries equal to $1$, and $Z \in \Bbb R^{n×p}$ with columns of unit norm and such that $Z^T \Bbb 1 = 0$. The elastic net is a penalized regression procedure for fitting the model $y ∼ \mathcal N (\beta_0 \Bbb 1 + Z \xi, σ^2 I)$, combining both ridge regression ...
Problem Let $X\sim f_X$, where $f_X$ is the probability density function of $X$. Let $g: \mathbb{R} \to \mathbb{R}$ a strictly monotonic (decreasing or increasing) mapping. I aim to prove or disprove: $$ g[\mathrm{median} (X)] = \mathrm{median}[g(X)] $$ Try Let $x_0 = \mathrm{median} (X)$, $Y=g(X)$, $y_0 = g(x_0)$. Th...
I'm looking to create a calibration function for a lab instrument I have: $y = A + Bx$ Where $y$ is the "true" output and $x$ is the initial reading. I have a dataset of ~100 readings that I can apply OLS and obtain $A$ and $B$. My values for $y$ and $x$ are quite far away from the origin, but I still think that $A$ ha...
I am trying to calculate confidence interval 95% for hazard ratio from flexsurvreg-weibull distribution output. Please provide the formula of the same. I have formula for HR = exp(-beta)^shape. But could not find formula for 95% CI for HR.
Supose you have an ordinal logistic model, with a dependent variable with 6 categories, being 6 the highest and 1 the reference. I have one independent categorial variable, that I would like to compare within the levels and I am unsure about the procedure. I am wondering if is valid to compare the two levels in this wa...
In Durrett, a sequence of cdf $\{F_n\}$ is called tight if for all $\epsilon > 0$< there exists $M_\epsilon$ such that $\limsup 1-F_n(M_\epsilon)+F_n(-M_\epsilon) \leq \epsilon$. In Rosenthal, a sequence of probability measure is called tight if for all $\epsilon$, there exists $a<b$ both finite such that $\mu_n([a,b])...
I was watching this video (time stamp: 21:08) that explains how the algorithm works, and although it was clear for the most part there is one thing I didn't understand. How can a single sample end up in multiple leaves? Isn't the point of decision trees to separate the samples by some threshold?
Consider the sequence of random variables $X_1,X_2, X_3,\dots$. Suppose this sequence is a martingale, that is $$ \begin{aligned} &(1) \quad E(|X_t|)<\infty\\ &(2) \quad E(X_t| \mathcal{F}_{t-1})=X_{t-1}, \end{aligned} $$ where $\mathcal{F}_{t-1}\equiv \sigma(X_1,\dots, X_{t-1})$. Does this imply that $$ (*) \quad X_t=...
So my professor used the following so show that using averages instead of the full data set in OLS Regression will not cause any bias in our estimator. I understand everything up to the penultimate equality, as that would imply that Cov(X_id, X_d_bar) = Var(X_bar), which is either wrong or I'm really missing something....
Reporting chi-squared test results in APA format requires reporting N, the sample size. If I am comparing proportions from two different samples, how should I report N?
Consider the linear regression model $$ Y_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \dots + \beta_k x_{ik} + \epsilon_i $$ or equivalently in matrix norm $$ \mathbf{Y} = \beta \mathbf{X} + \epsilon$$ where $\mathbb{E}[\epsilon|X] = 0$, $\mathbf{X}$ is $n \times (k + 1)$ matrix. It can be shown by the Central Limi...
So I came across this sentence (from an e-learning website): By training on the residuals of the model, this is an alternative means to give more importance to misclassified observations. Intuitively, new weak learners are being added to concentrate on the areas where the existing learners are performing poorly. Howe...
Is a 2x2 table/Chi-square test an appropriate method if I have a set of data with two dichotomous variables like so: Location Heavy User Very Heavy User Urban 10 5 Rural 20 30 or similarly Location Male Female Urban 10 5 Rural 20 30 I want to test to see if either group is significantly more...
In the Beta-Binomial and Gaussian settings, indeed, the marginal contribution of each observation to the posterior moments (I could check first and second) and (differential) entropy are decreasing in the number of observations. Is that result more general? Is there a proof for it? ETA: Xi'an commented that the result ...
Given is the AR(1) model: $y_t=\rho y_{t-1}+\epsilon_t$ with $\epsilon_t $ i.i.d. $N(0, \sigma^2), t=1,...,n$ and $y_0=0$ with $\epsilon_0\sim N(0,\frac{\sigma^2}{1-\rho^2}),\lvert\rho\rvert<1;$ Why is $\epsilon_0$ there and why its variance is $(\frac{\sigma^2}{1-\rho^2})$? What is the reason behind setting up distr...
I have a clustering problem that I might solve with an algorithm based on Euclidean distance (e.g. K-Means). One potential feature is the "hour" at which each user began an interaction. As part of feature scaling, I have doubts that either keeping it as a number or one-hot encoding the feature makes sense, so I was thi...
I want to calculate sensitivity, specificity, PPV, and NPV from a confusion matrix for multiclass classification. My objective is to learn the basic concept of constructing a confusion matrix for multiclass classification and how to calculate sensitivity and specificity from a confusion matrix manually without using ma...
I need heteroscedasticity robust standard errors for a multivariate linear model (MLM) with weights. In R we usually use sandwich::vcovHC with type "HC0" to get the White variance-covariance matrix. But while this works for univariate models with weights or MLMs without weights, it doesn't seem to support MLMs with wei...
I am working with 5 groups of measurements, all having a measuring uncertainty of 0.5 mm - I used the one-way ANOVA test to reject the null hypothesis and Fisher's Least Significant Difference to compare individual groups. The requirement of the paper I am writing is to account for all measurement errors. How could I i...
In the book Causal Inference In Statistics by Pearl, page 63, while referring to the below DAG, it says - Thus to compute the $w$-specific causal effect, written $P(y|do(x),w)$, we adjust for $T$, and obtain $P(Y=y|do(X=x),W=w)$ $=$ $\sum_t {P(Y=y|X=x,W=w,T=t)P(T=t|X=x,W=w)}$ (3.11) I have the following queries - W...
Say I have created some numerical embedding for each word in a text corpora -- that is, for each word I have some n-dimensional vector representing the word. Now say I would like to perform some modelling task using those embeddings on various documents. As such, I'd want to aggregate the word embeddings per document, ...
Call: lm(formula = formal_engaged_replaced ~ setting_interest + setting_trust + setting_contact + setting_confidence + setting_visibility + network_close_network + network_help_neighbour + network_help_orgs + personal_sex + poverty_replaced + personal_education, data = train_model) Residuals: Min ...
For context, I have a input dataset of 156 images and I'm extracting the feature maps for each image at the last fully connected layer of the AlexNet model. I get 156 feature maps, each of size [1, 4096]. To vectorize them, I calculated the mean across the 4096 elements and ended up with a single element for each. I t...
There are already multiple questions asking where the lagged error terms in an MA(q) model come from and how the model can be fit without knowing the errors in advance. Textbooks give multiple methods for dealing with this, but I've noticed that earlier texts and even recent formal texts seem to recommend finding the l...
Suppose an event takes place, and there is a parameter $\theta$ with $\mathbb E[\theta] = \mu$. Suppose I take a sample to estimate the parameter by taking the average of sample $\bar X$ (i.e. $\bar X$ is a statistic). $I$ is an interval carefully chosen from our sample, and $H_0$ is a null hypothesis that $\mu \in I$,...
in sklearn, if I want to transform the data to range(-1, 1), do you think it is better to use StandardScaler before using MinMaxScaler? to make the date more normal distributed?
I did a survey and had 41 people answer a multiple choice question, where they could only pick one answer. The frequencies included: $A = 25$ $B = 12$ $C = 4$ $n = 41$ I want to know if there is a statistically significant difference between results. After reading it seems like doing a chi-square test with post-hoc t...
Give a non-linearly separable dataset $X,$ I want to proof that after performing PCA on it, the resulting dataset is guaranteed to be still non-linearly separable. I think we could argue that we still use the eigenvectors of the original feature space to describe the transformed feature space, and if it wasn't possible...
I have trouble finding the name of the problem (and algorithms to solve it) where one needs to repeatedly estimate the value of a continuous, time-varying parameter online based on incoming observations, without knowing the dynamics of the parameter changes, (which could even be random). This seems like a trivial Bayes...