instruction
stringlengths
9
38.7k
I have two variables measuring exposure. Count data (number of exposures) Categorical variable (exposed everyday, exposed a few times a week, exposed a few times a month, rarely exposed, and almost never exposed) I want to perform a regression on these two in order to see how they associate. My idea was to use a GLM ...
I see the implementation of wilcoxon test in scipy as follows - scipy.stats.wilcoxon(x, y=None, zero_method='wilcox', correction=False, alternative='two-sided', method='auto', *, axis=0, nan_policy='propagate', keepdims=False) It seems that the implementation is applicable when you have two samples (x and y) or you ha...
In the lab, we have cell cultures growing in bioreactors. Every day we measure the concentration of a set of metabolites and amino acids in the media with a cell culture analyser. Along with this, we also count the number of cells in the sample every day to calculate the cell growth dynamics. Some metabolites are consu...
I've got an urn problem that I believe can be nicely modeled as a birth-death process (I'm very new to markov chains, so maybe this is simply the wrong approach). Suppose we have $k$ urns each of which can hold a finite number of $n$ distinct balls labelled $1, \cdots, n$. The number of urns can increases without bound...
I have implemented a linear regression model and tried that on a dataset. The input has 8 features, and the output has 2. I split the train/test set as 80%/20%, 70%/30%, 60%/40%,...,20%/80%. I observed that the MSE of training set increased as the training set size increased, and the MSE of test set decreased as the tr...
I'm working with an essentially linear unsupervised modeling approach which (predictably) has problems when there is (multi)-collinearity. To avoid this, I've written some code which removes variables one-by-one based on which reduces VIF the most. I.e. The function VIF(X, i) returns the VIF of the column i of X when r...
Let $x \sim N(\mu_x,\Sigma_x)$ and $v \sim N(0,\Sigma_v)$ be independent multivariate Gaussian random vectors, and let $$y = Ax + v$$ for some square matrix $A$ such that $y \sim N(A\mu_x, A\Sigma_xA^T + \Sigma_v)$. Now let $Z$ be a Bernoulli random variable with parameter $p_Z$, where $Z$ is marginally independent $x$...
Is this an appropriate Venn diagram for different types of events classified as independent/dependent, mutually exclusive/non-mutually exclusive?
I read an article saying that "all parametric tests make an assumption of normality", which I know to be incorrect, since technically a parametric test could be done for any distribution, but I couldn't actually find any tests that didn't make an assumption of normality somewhere in them. Are there any examples of a pa...
I am reading the paper from Vilhjálmsson et al (2015), Modeling Linkage Disequilibrium Increases Accuracy of Polygenic Risk Scores, at the "Phenotype Model" section, they said: Let Y be a N × 1 phenotype vector and X be a N × M genotype matrix, where N is the number of individuals, and M is the number of genetic varia...
I have one questions about the simplification steps of Equation 3.3.6 in the Chapter 3.3.1 in Most Harmless Econometrics. We know that $$ \delta_R = \frac{E \{ (D_i - E[D_i|X_i]) E[Y_i|D_i, X_i] \}}{E[(D_i - E[D_i|X_i])^2]}, \tag{1} $$ and $$ E[Y_i|D_i, X_i] = E[Y_i|D_i=0, X_i] + \delta_X D_i, \tag{2} $$ where, \begin{...
I am currently trying to calculate bayes factor for eye tracking study. I created linear mixed-effect model and found best random factor structure using buildmer. On there, p value for the main effect is significant (<2e-16). When I insert the best fitting model from buildmer into brm() function and insert that brm mod...
I am using the software PAST*. When running an ANOVA I have available these tests: Tuckey's pairwise, Kruskal-Wallis, Mann-Whitney pairwise and Dunn's post hoc. I am trying to see if three species are different. In one case the species A is significantly different from species B using the Mann-Whitney pairwise (p=0,018...
In short: what is the name of the type of plot below? These seem like standard plots, so I don't want to rename them by accident (I'm giving a presentation on this). The code itself does not matter but I provide it anyway. Suppose we want a plot that looks only at the effect of one of the factors in a regression model ...
Let $D(\theta)$ denote an absolutely continuous distribution on $\mathbb{R}$. (The finite dimensional vector $\theta$ collects the parameters of the distribution.) Assume that the p.d.f. of $D(\theta)$ exists and is positive on the entire real line for all $\theta$. Let $E$ be some other absolutely continuous distribut...
I was wondering if my intuition behind the weak law (WLLN) and strong law of large numbers (SLLN) is correct. The WLLN says that, if you consider a sequence $X_1,X_2,...$,of $i.i.d.$ random variables with finite mean, $E|X|<\infty$, then define $\bar{X}_n=\frac{X_1+X_2+...+X_n}{n}$. As $n \rightarrow \infty$, the WLLN ...
I am analysing some data in R where I have information on $y$ and $x$. When I run $y = \alpha + \beta\cdot x$ I get the same coefficient on $x$ (i.e. $\beta$) as when I run $$y = \beta \cdot (x - \bar{x})$$ But when I run $$y - \bar{y} = \gamma \cdot x$$ I get a different coefficient on $x$. I am really confused. Isn...
I am trying to use the specaccum function from the R vegan package to develop species accumulation curves. However, I am trying to set the gamma argument to return the extrapolated number of species, but I do not know how to extract the results. Do I have to use specpool function separately? Here is what I am attemptin...
I have angler catch data from tournaments over 10 years and want to compare the proportion of each species (Sp1 vs. Sp2, Sp1 vs. Sp3, Sp2 vs. Sp3) caught within each year 2005 to 2015. So were more of Sp1 caught than Sp2 during year 2005, 2006,...2015. I've been able to do this with a linear model an a Tukey test but I...
Under some assumptions, OLS estimator is consistent to true value. With all the assumptions hold, now I would like to know if OLS estimator calculated from subset of sample is still consistent or not. To be precise, does consistency of these two estimator hold? beta_1: calculated using only every two observation. beta...
I am looking to run an A/B Test testing the effectiveness of a promotion on revenue but I am concerned about the pre-period skewness of my customer spend. I am splitting my customers into 2 groups of 20K each based on revenue and a few other metrics. After sampling, my means are close to being equal, however I am worri...
I am looking for a way to make a proper power analysis for a logistical regression in R. So, I created this model for a logistical regression: model <- glm(df1$fish. ~ df1$Temperature, family="binomial", data=df1) options(scipen=999) summary(model) # McFadden’s R2 to test if model fits library("pscl") pscl::pR2(model...
I'm trying to determine whether there is seasonality in some data or not. When I apply the ACF the data doesn't seem to be correlated but, with a 1st order diff, there might be with a lag of 7. Since I need to forecast 36 more values should I consider this value or since there isn't seasonality use only the trend? @ed...
According to this question, the etymology of the terms is related, and Kernel is used to mean the "core" of something. In general it seems to refer to an unchanging transformation at the heart of a maths problem In linear algebra, a Kernel is the vector space for which a matrix always go to zero. In statistics, I have ...
I think I have a juicy one! My state's lotto game is 2 dollars, you select 6 numbers between 1 and 40, (odds to get all 6 are 1 in 3,838,380). However, if you pay an extra 1 dollar (so 3 in total) you get a second "Bonus" chance to win, meaning it's still your original 6 numbers that you selected, but they do a second ...
I'm reading a paper by Giles Hooker on Functional Decomposition through the use of Functional ANOVA. In the paper he defines a function: $$ F(x) : \mathbb{R}^k \rightarrow \mathbb{R} $$ and explicitly states that we must let $F(x)$ be square integrable. I've read before that square integrable functions are important in...
I came across this diagram while learning the derivation for SVMs: The author makes the claim that $\textbf{x} = \textbf{x}_{\perp} + r\frac{\textbf{w}}{||\textbf{w}||}$, where $r$ is the distance from x to the decision boundary. The decision boundary for binary classification is defined through $f(\textbf{x})=\textbf...
Suppose a particle enters a system at $0.5$ in the unit interval $[0,1]$. With some probability $\lambda_{right}$, particles go right by $$x_{right} = \frac{x\pi_{H}}{x\pi_{H} + (1-x)\pi_{L} }$$ and with some probability $\lambda_{left}$, they go left by $$x_{left} = \frac{x(1-\pi_{H})}{x(1-\pi_{H}) + (1-x)(1-\pi_{L}) ...
Multicollinearity (https://en.wikipedia.org/wiki/Multicollinearity) is when two or more predictor variables are heavily correlated with each other. As an example, if you have "weight" and "height" as predictor variables in a regression model - if you were to include the "ratio of weight and height" as a new predictor v...
I have a CS background with intro stats courses, and currently, I am working through Berger's Statistical Decision Theory (the theoretical questions). I'd like to ask a clarification question: this is question 12 from Chapter 1: Consider a decision problem and decision rule $\delta$ for which $$\mathbb{E}[(L(\theta, \d...
Why do we need to control state-fixed effects in a Difference in Difference model? If we are comparing the difference in the change between post and pre-periods, then the fixed effects are naturally canceled out. Did I miss something?
Is there a statistical test that determines if there is a significant change in a regression coefficient parameter's value when more data is added? For example, you have 11 months of data, fit a regression model for variable x1 which has an estimated coefficient of 0.8. Next month, you get another set of data and refit...
Right now, I have some function $g(x,\theta)$ where the expectation this function at a given $x$ evaluated over $\theta$ $E_\theta[g(x,\theta)]$ is known, and I want to upper bound (or compute if at all possible) $I=E_\theta\left[\left(\int g(x,\theta)^\frac{1}{2}\,dP_x \right)^2\right]$ What I tried: First divide up t...
Was told to post this here so hope it's the right place! I am using a very large dataset of job postings, which for each posting has a unique posting ID, the job posting occupation, and a row for each skill requested in each job posting. The dataset looks a bit like this: posting_id occ_code occname skillname 1...
Please see the logical flow of the issue in the figure. I want to examine the impact of economic factors (V1) on pollutant atmospheric deposition (V4). We know economic activities (v1: x1~x3) may change pollutant's anthropogenic emissions (e1) which is one of the pollutant factors (V2: e1~e3). And the pollutant factor...
I am new to data science & machine learning I am using Weka platform to work on a classification problem with an imbalanced dataset. My question is: can I apply a feature selection method to a balanced copy of the dataset then I use the resulted subset of features in the original dataset (imbalanced)? I my question is ...
Suppose we have $$ X_1, \ldots, X_n \mid \theta \, \mathop{\sim}^{iid} \, L(\cdot \mid \theta), \quad \theta \sim \pi $$ By Bayes' theorem, the corresponding posterior distribution is $$ \pi_n(\mathrm d \theta \mid X_{1:n}) \propto L_n(X_{1:n} \mid \theta) \pi(\mathrm d \theta) $$ where $L_n(X_{1:n} \mid \theta) = \pro...
I'm getting a pretty bad $R^2$, negative in fact, but the graph, where predicted values are plotted over test values, looks very solid. How is this possible? I'm quite new to DS and have never faced issue like this so any feedback would be very helpful. $R^2$ metric result: Graph of lasso regression: Graph of ridge r...
Given historical data on 6 macroeconomic time series, I am trying to build a model for the purposes of forecasting and simulating. A plot of the (standardised) series is below. A natural choice for such a model is a VAR. I fit a VAR in differences, and it produced reasonable forecasts/simulations for some time series ...
I want to fit some samples to the right tail of a Weibull distribution. To fix the notation: the samples are $\{X_i\}_{i=1,\ldots,n}$, all samples are greater than a fixed threshold $L$, the $X_i$'s are distributed according to a Weibull distribution left truncated at $L$: $$ X_i \sim F(x)=1-\mathrm e ^{-\frac{x^\al...
I am approaching to Latent Class Analysis to identify "classes" of patients based on some variables. Question 1: diagnostics of the results. I already gone through the discussion on whether it is better to use BIC, cAIC, etc.: I reach the conclusion that evaluating several metrics, along with entropy and clinical judgm...
The posterior predictive density for replicated data $y_{rep}$ given observed data $y$ is $$ p(y_{rep} \mid y) = \int p(y_{rep} \mid \theta) \cdot p(\theta \mid y) \, \textrm{d}\theta, $$ where the parameter vector $\theta$ is marginalised out from the joint distribution $p(y_{rep}, \theta \mid y)$ (ref). In graphical...
Expectation of Fisher score should equal to zero. The prove can be found in many palces, such as wikipedia. But I tried a categorical distribution that is not parameterizatized minimally, the expected score is not zero. For example: Case 1: Conanical form with natural parameters In this case the parameterization is min...
I have two treatment groups (A and B), where I have a binary outcome of resistance against a particular antibiotic recorded at pre- and post-treatment. I am interesting in determining whether there is a greater risk of developing antibiotic resistance after treatment in group A vs group B. The groups are randomised, so...
Apologies if this is a simple question; my knowledge is limited to a single introductory stats unit. My design has two independent groups: test group vs control group. Both will be presented with content-based thought probes, in which the responses will be classified in three ways: on-task, task-related interference, o...
I have a question regarding item aggregation. I have conducted a study where I measured 4 items. Two of these items are conceptually linked together and seem to measure the same dimension, and the other two are also conceptually linked and I would also say they measure a similar dimension. However, when I check correla...
I am new to time series forecasting and would much appreciate your reply. I have an annual housing starts data between1970-2022 shown, below. I want to forecast the next 10 year housing units. If I use the whole series to model, the prediction interval is quite wide, below. Based on a very similar project is here (ht...
It is quite clear, by expanding the inverse lag polynomial, that a process without unit roots will be weak-stationary. However, I'm not finding anywhere a proof of the other implication: to be weak stationary requires no unit root. My thinking is that even if the inverse lag polynomial does not have a convergent power ...
I have written an R code for a logistic regression, which is as follows: # creating the model model <- glm(df1$fish ~ df1$Temperature, family="binomial", data=df1) options(scipen=999) summary(model) # McFadden’s R2 to test if model fits library("pscl") pscl::pR2(model)["McFadden"] # make predictions predicted <- pred...
I have a data (ge3_ratio) with 86 observations measuring the ratio of phonological errors produced by children. The data was collected from spontaneous speech transcripts from 3 children aged 21 to 65 months. A probably important information: some children lack observations for some age intervals. The first rows of the...
We ran an experiment in which users could optionally watch a video. The video is intended to drive some other metric, $y$. Because the intervention (video) was optional, choosing to watch the video is confounded by omitted variables (most probably being the kind of person to watch instructional videos). Since treatme...
If I have two sets of 2D points, say A and B. Is there a formula for calculating the Pearson correlation coefficient for their union if I know the this coefficient for both A and B?
First of all I apologize as some might see this a stupid question, but I cannot manage to find the answer. I am using brms package in R. I have two models, an interaction and a simple model, that roughly have similar distributions of data by a factor of 3 levels (TrialRep) model1 <- brm(Inter_div_abs~TrialRep + (1|ID/A...
Apologies in advance - I'm new to Bayesian statistical methods and may not get all the terminology correct. I am trying to run some Bayesian analysis on survey data using the rstan package in R but I'm unsure of how to interpret my output. My aim is to generate a probability distribution for each level of data dependin...
I would like to test the significance difference between two groups by multiple numerical non-normal features to determine the p-value. If we want to test this we may use MANOVA because it could handle multiple features, but the features should be normally distributed within the groups. With wilcoxon.test we could test...
I have a variable $X$ which I predict with a nominal categorical variable $Y$ with category labels $\{0,1,\dots,m \}$ using a linear model. I use standard dummy coding which gives me the regression equation $$ X = \beta_0 + \beta_1 \mathbb{I}_{Y=1} + \beta_2 \mathbb{I}_{Y=2} + \dots + \beta_m \mathbb{I}_{Y=m} , $$ wher...
I am trying to design a study which will involve asking people to watch videos and then stop them at points that they think relevant (looking for specific behaviours). The idea is to see if people stop the video at the same time - I’m struggling to think how I can add some statistical analysis to this? I thought a clus...
The data I am dealing with are groups of counts, $n_i, i=1..K$. More than a half of these counts are zeros. The null hypothesis is that all the counts come from the same distribution, e.g., Poisson with parameter $\lambda$ $$P(n|\lambda)=\frac{\lambda^n}{n!}e^{-\lambda},$$ in which case I can perform the estimate of th...
I have a population of 7954 subjects and multiple random samples from it: 1st sample size 2,665 with a standard deviation 1.386 and mean -7.45 2nd sample size 2,399 with std dev 1.53 and mean -7.33 3rd sample size 802 with std dev 3.02 and mean -7.45. I want to calculate a standard deviation for the population. Also...
Is there a standard way to refer to a statistical model that is not saturated? It is for paper writing. For the moment, I am using the term "non-saturated model" but I think there must be better words options for it. EDIT: Here I am considering A saturated model as a model which there are as many estimated parameters a...
TLDR; I want to know the percentage % of explained variance of the dependent variable given a list of D independent variables with crazy different scales -- but I believe that given convexity of regression theoretically we don't need to normalize features. Is this correct? I have a dependent variable ($y$)and I want t...
I'm conducting a study across four counties to determine which of four different methods is most effective in detecting nutria. 60 sites will be randomly selected within a 5-meter buffer of any open water. I'm planning to stratify evenly between lentic and lotic, so 30 lentic sites and 30 lotic sites. Given that nutria...
I have a dataset where a predictor can have 2 states - if it's in state 1, then the value is always the same. If it's in state 2, then the value is continuous and changes. An example to this can be number of cigarettes smoked per day. If the person is a non-smoker, the value is always 0. If the person is a smoker, the ...
I have data with two categorical independent variables and one continuous dependent variable. I want to check for the independence between variables. What type of test will tell me whether they are independent or not? My data looks like this: gender time sleep_hrs male day 5.5 female day 7.40 ma...
Consider least-square LASSO over standardized training data $(\boldsymbol{X},\boldsymbol{y})$. Assume $|\boldsymbol{x}_j\cdot\boldsymbol{y}|>|\boldsymbol{x}_k\cdot\boldsymbol{y}|$. In other words, $\boldsymbol{x}_j$ is a more positively/negatively correlated column with $\boldsymbol{y}$ than $\boldsymbol{x}_k$. Would c...
I'm having trouble understanding how to read/interpret the concurvity function output and exactly what to do about high values. My understanding of concurvity is it's the GAM equivalent to collinearity between 2 variables and "high" concurvity values between variables make it difficult to parse out the effects of one f...
Let $X_1, ..., X_n$ be iid random variables. Define $Z_n = \max(X_1, ..., X_n)$. Can we lower bound $$\mathbb{E}[Z_{n-1}] \geq (1-f(n))\mathbb{E}[Z_n]$$ Using some $f(n)$. I am mainly interested in small $n$.
I have dataframe of relative proportions of cell types, measured at 3 different timepoints in several individuals. I want to write a model that primarily evaluates the effect of time, but also potential influences on the longitudinal development of a few other factors. My approach so far would be to loop over every dep...
I have a sample of size $n$ from a bivariate distribution which have joint pdf with below form $f_X(x)f_Y(y) \left[1+\lambda\left(2F_X(x)-1\right)\left(2F_Y(y)-1\right)\right]$ My goal is to estimate MLE for the parameter $\lambda$ where $-1 < \lambda < +1$ Overall I know how to construct the log-likelihood function to...
I am trying to get better at statistical analysis by following the tidy tuesday screen cast by David Robinson and I had a question on this particular dataset he was analyzing. Essentially, he was trying to understand if there is a statistical trend in probability of award success over time. So, in the screenshot shared...
After having run the following regression in Stata regress y x1 x2 ... xn [weight=w], robust I given the following table: Is there a way to get the confidence interval from the coefficient, robust standard errors, and number of observations?
I have the following lmer model: OFC_R = lmer(LexSemErr ~ ONsize_norm*Repeated_code + Frequency_norm*Repeated_code + Concreteness_norm*Repeated_code + ( 0 + Repeated_code | Word), data = nrm_reppriming_sim) Briefly, one participant read 512 Words that each had a fixed orthographic neighborhood size (ONsize_n...
Suppose I have 3 two dimensional points $(0, 0), (10000000, 0), (-1, 0)$ and $(0, 0)$ has label 1.0. If we were to use 1-NN to predict the label for $(10000000, 0), (-1, 0)$, then the answer for both are $1.0$. This does not make sense since the actual distance (Euclidean distance) from $(10000000, 0)$ to $(0,0)$ is wa...
Consider the problem of estimating a random variable $Y$ using another random variable $X$. The best estimator of $Y$ by a function of $X$ is the conditional expectation $E[Y|X]$. It minimizes the mean-squared error $E[(Y - h(X))^2]$ over all $L^2$-functions $h(X)$ of $X$. However, $E[Y|X]$ seldom has a nice closed exp...
This quick clustering score discussion presents the following single cluster scoring functions: $$ c_i = 1-\sqrt{\frac{\sum_{j}^{N}\left(1-\phi(i,j) \right)^2}{N-1}} $$ and $$ C = 1-\sqrt{\frac{\sum_{i}^{N}\left(1-c_i \right)^2 (N-1)}{2N^2}} $$ where $c_i$ is the score for element $i$ in the cluster, $C$ is the total c...
Our professor has not clarified much on the issue and im a bit confused. What will change in my 10-fold method if i know the distribution of my dependent variable? Wouldn't i split the data into 10 subsets, 9 training and 1 testing, doing that 10 times, regardless of distribution? This is roughly the PDF of my dependen...
I have a classification problem which i have run through both a neural network and an SVM. I am interested in the probabilities of all the different classifications rather than just assigning to correct class. The neural network is using a Softmax output and the output probabilities are never very confident. My NN outp...
I have a classifier that outputs biased predictions, that I want to correct for in a mathematically sound way. I define bias as the difference between the true class distribution and the average predicted probability per class. I cannot add this bias directly to the outputted probabilities, because then the probabiliti...
Very often in the literature authors state something like: "We consider a contextual linear bandit problem where at each round t, the learner receives a context vector $x_t \in R^d$ with norm 1". Questions: Is the norm 1 assumption useful only for proving regret bounds, or are there other reasons for it? What happens i...
I am trying to examine the effects of language (English/Mother Tongue) on functional connectivity between different regions of interest (ROI). Hence, I employed a nested Linear Mixed Effects Model approach to examine the fixed effect of language nested in each ROI. Wondering if this is a crossed-factored model or wheth...
I was reading about Leverage Score Sampling. If I am not wrong then what I know that Leverage Score Sampling help us to select representative sample. But I didn't understand how the whole process is done. I read these lecture notes but could not get the whole picture, like how Matrix Chernoff Bound helps to obtain a su...
In a discrete time and space Markov chain, I know the formula to estimate the transition probabilities $$p_{ij} = \frac{n_{ij}}{\sum_{j \in S} n_{ij}}$$ I'm not sure however how you can find this is derived from the likelihood function $$L(p) = \prod_{i\in S}\prod_{j \in S} {p_{ij}}^{n_{ij}}$$
I have just started reading about Bayesian statistics and have a question regarding the general interpretations of priors. Let’s say I have recorded the reaction times (RT, in ms) every time a single subject pressed the space bar as fast as possible, without paying attention to any stimuli. I would like to know how lo...
Suppose that I collect some dataset $Y$ which is a sample from a multinomial distribution with unknown event probabilities $\theta_{truth}=(p_1,p_2,...,p_k)$ where $\sum{p}=1$. I have two competing models which each use theory to make a prediction about the true event probabilities $\theta_{truth}$: $$ Model 1: \theta...
I am having difficulty fitting a generalized linear mixed-effects model in R. I did a simple study looking at the variables affecting the triggering of camera traps. My response variable is binary (triggered/not triggered), and I have four categorical variables: camera sensitivity setting (low-normal-high), distance (5...
In my model, some potentially confounding continuous variables had to be taken in account as well as an interaction of this variable with the main factor of interest, which is categorical. Initially, I had been doing some modelling in R but I switched to JMP for some extra plots. There the p-values of my main factor of...
I wanted to understand the solution to a question I got incorrect. In particular given two independently sampled iid data of different sizes (m and n), possibly different means ($\mu_1, \mu_2$), and same variances, we want to construct a hypothesis test regarding if the population means are the same. From other SE post...
I am doing exercises and I come across a question that asks me to describe sampling with rotated panel. What does rotated panel sampling mean?
I want to interpret the models (2) Pool variable. It equals 1 if the house has a pool and 0 if not. The relation between the dependent variable and the Pool variable is a log-linear that means ∆y/y = b1*∆X whereby X is a dummy variable D so the change ∆D can only be 1 or -1 if I am not wrong. So if a house has a pool t...
So the sum of gamma, introduced in I-MLE is defined as the following: $$SoG(k,t,s)=\frac{t}{k} \left( \sum^{s}_{i=1} Gamma(1/k,k/i) - \log(s) \right)$$ But what exactly is $s$? It clearly controls the number of sums of Gamma we're performing, which also controls the beta factor in the Gamma function... but what exactly...
I'm new to statistics and maybe I went a little bit other my head for the experiment design of my bachelor thesis: I measured the turn angle of people dodging different objects in virtual reality. The virtual rotation of Group A was amplified but for group B it wasn't. The objects they were dodging had 4 different prop...
I'm writing a thesis on data and variable specification sensitivity pertaining to economic growth. I have panel data with 39 countries ranging from 1981-2012, however, lots of countries had important variables missing for numerous years, I decided to drop some countries, but others still have some missing observations....
I am reading some papers about glucose time series prediction and I have noticed that some of them propose LSTM models that use relative changes between two measures. For example, if $$ glucose(t)=60, glucose(t+1)=65$$ We will send $$\triangle_{t}=5$$ to the next cell. If this cell were the last one, we would calculate...
I've been running some analysis using morphological data. However, when I run a PCA, PC1 explains more than 90% of variance. I'm not sure if this is possible. If not, what should I need to do?
I have measured a variable (soil moisture) for multiple samples over time. Soil moisture increases steeply at several points in time (when it rains) and then decreases steadily until the next rain event. I would like to express in one value per sample how similar my samples are in terms of soil moisture over time. One ...
I'm studying the omitted variables problem. My model is: $E[y|x_1,x_2,...,x_k,q]=\beta_0+\beta_1x_1+...+\beta_k x_k + \gamma q$ From the first equation, I write the population model as $y= \beta_0+\beta_1x_1+...+\beta_k x_k + \gamma q + \nu$ where, $\nu$ is the error, and I assumed $E[\nu |x_1,...,x_k,q]=0$ One way to...
Let $X_1, X_2, \cdots, X_n$ be non-negative continuous iid random variables. The goal is to find the probability: \begin{align*} \Pr(\max_{k+1 \leq i \leq j } X_i < \max_{1 \leq i \leq k }X_i) \end{align*} and I solve it by the following method: \begin{eqnarray} \Pr(\max_{k+1 \leq i \leq j} X_i \leq \max_{1 \leq i \leq...
I'm conducting a meta-analysis, and some of the studies that I have included only report the number of occurrences of the event of interest without an accompanying standard deviation. As such, I am using the formula $\text{SD} = \sqrt{(p(1-p)/n)}$, where $p$ represents the sample proportion and $n$ represents the sampl...
I would like to have the standard deviation for the fixed effects output in R. By default, the lmer function from the lme4 library only gives me the standard error. Is there a way to achieve this?
I want to run a binary logistic regression to understanding (modeling) factors affecting nest-site selection in a bird species.. I think it is better if I transform continuous variables to categorical variables, because for example Nest Height from the ground can have different effects in different ranges (different in...