instruction
stringlengths
9
38.7k
I am reading this paper and trying to understand the math behind figure 5: I am new to probability theory, but I believe that the y-axis represents the log of the pdf (probability density function) calculated for durations of each of the sleep stages. As sleep occurs in stages, awake stage can occur and last for, say,...
I have two separate filter-based feature ranking methods, i.e., Relief and mrMR. The ranking was (1st to 200th) have been acquired from both of these methods. Is it make sense if I combine these two results by averaging (arithmetically or geometrically) to got a set of ranking that represent the both methods?
The function auto.arima from the forecast package, automatically fits the best ARIMA model given a time series, by evaluating on a metric like AIC, AICc or BIC. I am looking for a similar function which does the same, but fits a VAR (Vector Auto Regression) model to a bunch of time series variables. Is there any such f...
I'm working on a project where I need an image classification system, so I've decided to learn Tensorflow, and, after a week of study i've the following model: model = Sequential([ layers.Rescaling(1./255, input_shape=(250, 250, 3)), layers.Conv2D(16, 3, padding='same', activation='relu'), layers.MaxPooling2D(), ...
I've built an XGBoost classifier with following code: X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.30, random_state=42) xgbc = XGBClassifier() xgbc.fit(X_train, y_train) y_pred = xgbc.predict(X_test) rep = metrics.classification_report(y_test, y_pred) print(rep) And I get the scores...
For inverse probability weighting (IPW) in R the use of survey::svyglm is well established. I want to compare the results of 10K+ (!) models with and without the use of IPW-weights (i.e. sampling weights aka 'pweights' in Stata). From Lumley (2010) we learn, that the HC0 standard errors "are almost identical to the des...
TL;DR: Does Callaway & Sant'Anna (2021) work for binary outcomes? If not, what should I do to estimate a time heterogenic policy effect on a binary variable? Full question: I am trying to estimate the effect of a policy on a binary outcome. Given my data, the effect is likely to be heterogenous across time, i.e., the e...
Let $\mathcal{X}$ be a finite set (it has, let's say, ten elements), and $p$ a probability on $\mathcal{X}$. Let $n$ be an integer, that we assume to be small (let's say, $n=10$). Given an $n$-tuple $\mathbf{x} := (x_1,\cdots, x_n)$ of elements of $X$, let us denote, for all $x$, $o_x(\mathbf{x})$ the cardinal of the s...
I have a model where I expect the relationship of my independent variable of interest and the dependent variable to decrease over time (year in my case). Now I have three approaches to measure such a heterogenous relationship. Simple regression of the form with an interaction of x and t y = x + x*t + t, where t is ca...
I am trying to study how rent changes has evolved over distance to the city center between the pre- and post-COVID time periods. So I devote particular focus on comparing the relative rental and house price developments in city centers vs. suburban areas. Here is my regression equation: i indexes postcodes, c indexes ...
I would like to compare several ways of computing standard errors for some quantities using simulations, but I don't know what metric should I use for that. I know that for confidence intervals I can calculate coverage and check if it is at the nominal level and see if some method does not underestimate or overestimate...
I am trying to fit a GAM model that the response variable is count var (species richness) and the predictor variable is elevation. In my dataset there are some zero values for richness in some elevation. This is my model: mod2 <- gam(Richness ~ s(Elevation, bs="cr"), family=poisson(), data=Palvar.env, method = "REML", ...
Can I use the Kruskal-Wallis test for data that has two columns of ordinal data (scales)? The first column has respondents' subjective evaluations of the product's price (dependent variable) on a scale 1=cheap to 5=expensive, and the other is the respondents' economic situation evaluated on a scale excellent to bad(ind...
I'm doing a Monte Carlo error propagation, so for $10^5$ iterations I: generate a curve $y(x)$ choosing the parameters using a multivariate gaussian distribution. generate a random point $x_k$ using a gaussian distribution centered in $1.32$ with a std of $0.5$ Here showed for $100$ iterations: Then I calculate the ...
There is a survey, which asks following question: do you know personally someone, who has condition X? The result of the survey is percentage of people, who know someone I want to use this survey to estimate percentage of people in the population, who have condition X. How do I do this?
I have found a lot of discussions about GLM that are suitable for Poisson regression, or even Poisson PCA However, I believe most of these cases don't take into account the case that the independent variables are also Poisson. I am wondering if there is a name for such problems so that I can google. Can someone provide...
Background In BPF Performance Tools by Brendan Gregg, there is a section describing a series of 18 experiments measuring the overhead of tracing with eBPF on Linux. In the description of the measurement methodology, the author mentions that the results table features only the measurement of the fastest run for each of ...
quite a simple question really. I am performing an exploratory analysis of 8 outcome measures, in 4 populations, with six blood tests. Therefore in this stage there are 8x4x6 comparisons performed! Now each of the populations are different and exclusive. Each of the outcome measures has different populations owing to N...
I have a particle size distribution which I believe is log normal. I need to calculate the number distribution which is apparantly the standard deviation of the log of the distribution. Pretty simple except my data is in discrete bins and the bins are not uniform width. I have seen that Sheppard's corrections could ...
I have a data set containing measurements from cells that have had 200 different perturbations applied to them. Each perturbation has been applied in duplicate. Because there are so many perturbations, not all could be carried out at once, so there is not just a single pair of control (unperturbed) samples, but several...
Given the following network with input $x=H\times W \times C$ where $H$ is the width, $W$ is the width and $C$ is the number of channels (as $x$ is originally output of a convolutional layer). For $C$ channels, the dimension of average pooling would be $1 \times 1 \times C$. Thne after passing it to the fully content...
**Does anybody have experience running mediation analyses with both lavaan and MeMoBootR, and can explain why the results of each (indirect effects) might not converge with the same outcome and predictors?Lavaan returns a significant indirect effect (B = 0.000313, CI [0.00, 0.00], p = .0417) and the MeMoBootR package r...
Predictor variable has the correlation value of -0.98 to the binary response (with classes 1 and 2). However, logistic regression coefficient come out to be insignificant. The residual deviance of the model is also significantly low. What can be the reason behind this? How is it possible to have a model with significan...
I am wondering if the converse to this theorem is true, where the setting is that we're testing $H_0 \colon \theta = \theta_0$, $H_1 \colon \theta = \theta_1$ with $p_0$ and $p_1$ the respective density. That is, if $\phi_1$ is a test such that it agrees with $\phi$(a likelihood ratio test that is the most powerful) ...
The following graph displays five pairs of stratified odds ratios (not from the same study) with 95% confidence intervals. For this plot, assume the confidence intervals indicate whether the stratum-specific odds are significantly different, with one estimate in the serving as the null value for the other stratum. Bas...
Suppose that I have two structural equations: $$ X = \alpha_1W + \epsilon_1$$ $$ Y = \beta_1X + \beta_2W + \beta_3XW + \epsilon_2$$ In other words, $W \sim N(0,1)$ is a confounder and effect modifier. If want to recover $\beta_1$ using the FWL theorem, by the standard definition, I would perhaps compute $$\frac{X^TMY}{...
Suppose we have a $p$-variate random vector that has a multivariate Normal distribution, $\boldsymbol{X}\sim MVN(\boldsymbol{\mu},\Sigma)$. My hypothesis is that the mean vector contains only zeros, $\boldsymbol{\mu}=\boldsymbol{0}$. I think I can test that using Hotelling's $T^2$. Now, I do not really believe my model...
I have the following exercise to do: Let X be a normally distributed variable with mean μ and variance σ^2, i.e. X∼N(μ,σ^2). Define a new random variable to be Z=X^2−X. Compute the Expected Value of Z I was thinking I could just do E(Z)=E(X^2)-E(X) and end up with σ^2 - μ, but this feels "too easy".. Any help is super ...
How do we adjust for the confounder of a confounder in order to compute unbiased estimates of the treatment effect of $A$ on $D$? See the causal graph (DAG) below: What do we call the confounder $C$ (of a confounder $B$) - does we give such variables/confounders any special name?
From what I've been reading, if there is no underlying difference between the 2 probabilities distributions we would have perfect entropy. I'm putting an example below. Can anybody explain why the cross entropy of two exactly equal probability distributions is not 0 here? ### example of calculating cross entropy for id...
I am quite new to hypothesis testing, and I am currently trying to familiarize myself with the G-test for independence. In my research, I came up with a question for which I could not fit an answer online. In brief: is it possible to compute the probability of making a type-2 error with this test? Setup: For the G-tes...
I'm working with a small data set and with 4 algorithms. The optimization process showed to be Very important as long as it improves a lot their performances. So, I'm using 10x5 nested-cv to estimate my algorithms performance, in this case errors since I'm using regressors. My doubt is, in order to see if some algorith...
I am not well-versed in statistics, so please bear with me. I will try to explain things to the best of my knowledge. I have some hardware that produces a signal, this signal has an offset and I want to subtract this baseline from my signal. This is the procedure I use to determine the baseline: I take many noise sampl...
I'm trying to model a propensity problem to a product, which is highly unbalanced (99.9% against 0.1%). Here is the details of my dataset: The target is a flag which indicates if the client bought the product in the future interval of 20 days; If the client buys the product, he receives a flag 1, and 0 otherwise; The ...
From the book "Understanding Machine Learning: From Theory to Algorithms", The Realizability Assumption is defined as follows: There exists $h^{\star}\in \mathcal{H}$ s.t. $L_{(D,f)}(h^{\star})=0$. Note that this assumption implies that with probability 1 over random samples, $S$, where the instances of $S$ are are sa...
I am interested in assessing the association between the two doses of a dietary supplement on an event of interest. The primary exposure is 'two doses of the supplement', and the comparator is 'no exposure to this supplement'. I am planning on performing time-to-event analysis comparing the two exposure groups. My ques...
I need to make a model by selecting the best set of rules (it's a model to predict the toxicity of chemical compounds). Each rule predicts a different amount of compounds, with a relative precision: PPV = True Positives / (True Positives + False Positives) One way of selecting the best set of rules could be to order t...
The Nelson rules for control charts describe patterns, which are "special" and need our attention. One of these rules is the "alternation rule". According to Nelson it is "unusual" to obtain a series of 14 alternating points -- direction does not matter. I tried to simulate the probability of such an event using a norm...
I have a question regarding the question here. In @Thomas Bilach answer, he gives the following example, which I have edited a bit more to add my own hypothetical examples: $$ \begin{array}{ccc} item & day & D_{it} & D_{it}^{-3} & D_{it}^{-2} & D_{it}^{-1} & D_{it}^{0} & D_{it}^{+1} & D_{it}^{+2} & D_{it}^{+3} \\ \h...
I have started learning the math behind the AdaGrad optimizer, and two questions emerged that I cannot find any answers on the Internet: It is said that in AdaGrad "parameters associated with low-frequency features tend to have larger learning rates than parameters associated with high-frequency features". But how can...
Is it possible for one list X all positive to have a higher arithmetic mean than that of list Y (all positive) but the 80 percentile of X not exceed 70 percentile of Y? What's an example?
Suppose a random sample of $n$ variables from $N(\mu,1)$, $n$ odd. The sample median is $M=X_{(n+1)/2}$, the order statistic of the middle of the distribution. How to prove that sample median is not a sufficient statistic of $\mu$? Do we need the probability density function of M? I would like any help. Note 1: I'm stu...
I'm studying Econometrics from Stock and Watson, and when mentioning the F-statistic in the Multiple Regression (Chapter 7), there is this formula: How can I estimate $\hat{\rho}_{t_{1},t_{2}}?$ Can I use the correlation coefficient between the two variables? I suppose there is a standard formula used for the statisti...
For an experiment where I simulated n=10000 games of chess with random moves I obtained the following results: White won = 1674 Black won = 1721 Draw = 6605 Now I am interested in testing whether white has an unfair first-move advantage or not. Ofcourse in classic chess the answer is yes, but for random moves it seems ...
The target distribution is of the form: $ p(x) = x^{-6}.e^{\frac{-2.475}{x}}$ with a support in the interval $[0.0, 2.0]$. This gives a plot like Now, to choose a proposal kernel, I think a lognormal may suffice. To determine what the values of the hyperparameters for the lognormal is that could be a best fit to the t...
In "The book of why", Dr Pearl concludes that a BBG drug cannot exist after phrasing the sure-thing principle in 'a more correct way' (pg 214). He does this by first "insisting" that the businessman's decision has no effect on the election, thus making the sure thing principle valid. To make the sure-thing principle v...
Assume the simple, well-known scenario: Data = $(x_j, y_j)_{j=1}^{n}$, and that, as usual, the $n$ data points are drawn iid. The $x$'s may be considered non-random, but the $y$'s are observations from a random $Y$. \begin{align*} \text{Posterior:} \quad f_{\Theta|\text{Data}}(\theta | \text{dat}) &= ...
I have a multilevel model with two factors (factor A - 2 levels; factor B - 3 levels) and continuous covariate, all of which interact. There is a random effect of participant and random slopes on the factors. Using lme4 in R The model looks like this: lmer(DV ~ covariate*FactorA*FactorB + (1 + FactorA + FactorB | parti...
Working on a two-part project. First, we're estimating the total size of a very large population. Each member of the population has a standardized random 15-digit identifier, and we have guessed using a brute force method until discovering enough extant identifiers (20,000) to estimate the population size, with a confi...
I understand how later neural language models (such as those used in the Word2Vec papers) framed the language modelling problem in a self-supervised way by learning to predict the next word (or any context word) in a sequence of words. However, when reading Bengio et al's original Neural LM paper (a neural probabilisti...
Assume we have N data points like data = [(x1, y1, z1), (x2, y2, z2),....., (x_N, y_N, z_N)]. I am looking for unsupervised ranking algorithms. The thumb of rules for higher ranking are, higher x and y, but lower z. But high x, high y and low z may have competitive contribution for ranking. For example, D = [(10, 500...
Firstly, I am new to all of this. I am currently trying to predict the chance of different students finishing top of their class. Students will be separated into different groups depending on the class they are in (class id), and obviously only one student can finish top of each class (top of class=1, not top of class=...
I would like to calculate adjusted means from a glm model with family = binomial. This is my script: data$Phenotype<- as.factor(data$Phenotype) data$Batch<- as.factor(data$Batch) data$Tray<- as.factor(data$Tray) data$Genotype<- as.factor(data$Genotype) model = glm((Phenotype)~ Batch + Tray + Genotype, data=data, family...
I have a question about Python coding of a simple MCMC exercise. I wanted to visualize the transition matrix obtained from MCMC simulation. However, according to the following code, every entry is zero except one which has value 1. It means that the markov chain only visited a single state throughout the entire simulat...
I'm implementing HMM myself and I'm stuck with this concept. Let T be the total time steps. $\pi$ be the initial probabilities. A be the transition matrix. B be emission matrix. $\alpha_{t,i}$ represents the probability of being in state i during time t considering all the previous observations. $$ log(\alpha_{0,i}) = ...
I am trying to acquire some intuition about testing multivariate hypotheses where the test statistic involves inverse covariance matrix. As an example, suppose we have a $p$-variate random vector that has a multivariate normal distribution, $\boldsymbol{X}\sim MVN(\boldsymbol{\mu},\Sigma)$, and we have a sample of size...
My limited understanding of modelling has been that in most cases hierarchical models give wider CI-s, meaning that they give more conservative results. However, to my surprise, when playing with different data and models, I sometimes see the opposite: the width of fixed-level intercept is narrower compared to a non-hi...
I would like to know if there is a general scheme to do model selection based on the posterior samples from a set of ABC (Approximate Bayesian Computation) runs for a given set of models. Particularly I was confused by this question and answer which indicates that counting the accepted samples from resimulations from t...
I'd like to preface this question by stating that I am a novice. I may use some terminology incorrectly and would appreciate correction if I do so. Currently I am running reliability tests to validate the reliability of product prior to shipment. Units are tested for an predetermined amount of time whilst being put und...
I am going to do an experiment with planting seeds involving 2 factorial treatments. There are 4 families of seeds: F1, F2, F3, F4 and 3 foliar seed treatments: T1, T2, T3. There will be 160 seeds for each treatment combination. I will then plant these seeds in 4 separate boxes, with each box containing 40 seeds. The t...
I want to compare the median of body temperature (passem$temp) across two groups (whether the patient died or not, died30in.numeric). I ran Mann Whitney Wilcoxon first in R using this command wilcox.test(passem$temp, died30in.numeric) and got these results: > wilcox.test(passem$temp, died30in.numeric) Wilcoxon ran...
This question is related to a calculation on page 20 of Kernel Smoothing by Wand and Jones. i) Let $f:\mathbb{R}\to \mathbb{R}$ be a density for a real-valued random variable, and assume that $f''$ exists, is continuous and square integrable, i.e. $\int_{\mathbb{R}} f''(x)^2\ dx < \infty$. ii) Let the sequence of bandw...
I am trying to calculate RR for case where I have N x N x N table. First N is City (20 cities) second N is Age group (5 groups) and third one is Industry (4 industries). All values are categorical. How to reach an answer of the following form: In Stuttgart there is significant number of old people working at Mercedes...
Im trying to approximate the p. Value using bootstrap in R by boot function But in the result is repeated i.e the values of t0 ….tn are the same so the p value is zero !!!!! I don’t understand why this happened
I have a cross-sectional dataset with the data example below, where the variable (id) refers to each individual in the df and rows represent the different number of Reddit posts written by each username, which vary across individuals. My goal is to use OLS regression to predict average sentiment, based on individual-le...
I am stuck trying to solve the following exercise.. Let $X: \Omega\to [a,b] \subset \mathbb R$ be a uniformly distributed random variable. Compute the n-th moment of $X$, i.e. compute $\mathbb E[X^n]$ for any $n > −1.$ (note that you should also include negative fractional moments! The fact that n can be smaller than 0...
So let's say I have a dataset with 1000 samples, 20 cols. Regression problem. I use train-test split, say 80-20% I create a Model, lets say Random Forest. I use gridsearchCV to find the best model that gives me highest R^2 for the same. Now, imagine this is a kaggle competition, that gives us a result or a score on a d...
I am training a neural network in TensorFlow and I would like to use firstly an exponential decay optimizer scheduler (https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/schedules/ExponentialDecay) and then also a cosine decay (https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/schedules/CosineD...
I've got a rather hard question concerning my regression. My data has the following properties. Dependent variable is count data and is overdispersed and consist of repeated measurements within multiple groups Two independent variables that are categorical data (5 point likert-scale) My goal was to quantify how well ...
I am a PhD in biological sciences with some background in graduate-level probability. I am interested in questions like what does it mean for an event to have probability $x$ at a philosophical level. I have read some of Russell's writings on the philosophy of mathematics and I am maybe looking for something in that fl...
I have Covid-19 Case fatality rate and Number of cases for 37 states as dependent variables and HD Index of the 37 States as the independent variable. That is a single predictor and multiple responses. I want to use Fixed Effect Model (panel data) to show the effect of Human Development Index (HDIs) on Case fatality ...
I have a set of around 23k rows of data. It is a set of animal movement lengths (dist), going from 0 to several thousand, with the majority being around 50 to 100. The data doesn't have a normal distribution. It is considerably skewed to the left right (skeweness = 2.6348, kurtosis = 10.6348). As I understand it, a gam...
I understand we should always scale/normalize the variables in ANN models (correct me if I am wrong), but still, I was wondering if certain activation functions, like sigmoid, can be used when the output neuron of a neural network is a continous, not scaled/normalized variable? And if not, would it change if the variab...
I want to find out if one behavioral intervention had also an effect on another behavior (let´s say smoking). Currently, I am testing the moderation with a two-part model in MPlus, where smoking is the dependent outcome variable. Previous analyses suggested a square-root transformation of the terribly skewed data. In m...
Don't want to write a big paragraph and for the beginning, what I would like to say is I started doing a machine vision project and I flattened my 256x256 photos into a vectors of 65,536 features. First of all, I want to point out that I'm a total beginner when it comes to machine vision. I trained a few ML models, usi...
As I mentioned in the question title, I want to generate specific uniformly distributed samples. I need them to model a real world scenario. For my real data, I estimated a function, which approximates the auto-correlation function by a e-function. I also modeled a distribution model for my real data. I can generate sa...
I fit a cox regression using the coxph function of the survival package. Now I wanted to do the same on a multiple imputed data set (which I already have, generated in another software). I found some ways to do this by using a single dataset with aggregated values. However, in my understanding, I should not use aggrega...
I understand what the margins=True option in pd.crosstab does, but I don't understand why it would influence the outcome of the chi2_contingency. Here an example: #data_crosstab: srm no yes All version <V4 132 105 237 V4 29 24 53 All 161 129 290 chi2_contingency(data_cr...
Consider the parameter $\theta$, which is a deterministic unknown in the frequentist paradigm. Given a random variable $X \sim p_X(x ; \theta)$, consider the estimator $\Theta(X)$ of $\theta$, and the error defined as $$e = \Theta(X) - \theta$$ The bias of $\Theta$ is defined as $$\text{Bias}(\Theta) = E[e] = E[\Theta(...
I am currently working on a project regarding the external validation of a logistic regression model for binary classification. I would like to create a calibration plot and compute the calibration-in-the-large (intercept) and calibration slope, like the following figure. I noted that most online tutorials involved usi...
I have time series data which is measured in each 5 second. I am trying to forecast the data. But, ACF and PACF results are seems to different than other plot that I have seen. I am using statsmodels as a library like below. from statsmodels.graphics.tsaplots import plot_pacf plot_pacf(ts, lags = 40, method = "ols"); ...
EDIT: edited the question slightly to keep the diagram intact but make it clear that we have an observed value and a hidden unmeasurable variable. Here is the story. There are patients who have a certain disease D. We suspect that the disease might be aggraviated/caused by a certain condition C (our hypothesis: C cause...
If $\hat{\theta}_n$ is an estimator for the parameter $\theta$, then the two sufficient conditions to ensure consistency of $\hat{\theta}_n$ are: Bias($\hat{\theta}_n)\to 0$ and Var$(\hat{\theta}_n)\to 0$, then we will have $\lim_{n\to\infty}Pr(|\hat{\theta}_n-\theta|>\varepsilon)=0, \forall\varepsilon>0$. Suppose $X_1...
I want to use pcls to constrain beta coefficient on a linear term in my gam. Specifically, I have a model: gam(y ~ s(x1, ...) + x2, data=dat), and I want to make sure that x2's coefficient lies between -1 and 1. How can I do it?
When handling probabilities close to 1, it is often more helpful to use the complement (i.e. 1-P). For instance, we say "there is a 1 in 1,000,000 chance of an event occurring", instead of "999,999 in 1,000,000 chance of nothing happening" or even 99.9999% chance. Doing so also allows one to make comparisons on a log-s...
I'm a pure math student teaching myself the basics of quantitative finance, and I'm having a hard time understanding some of the approximations/nonrigorous claims that are common in applied statistics. Here's a representative example from Stephen Blyth's An Introduction to Quantitative Finance. One of the first exercis...
I don't want to explain my real data, but I will make up an example that is equivalent. Let's say people are judging the quality of paintings and can say "like" or "dislike". Paintings can have five colours in them: red, yellow, blue, green and/or orange. The paintings can be any size. Count Approach Let's say I catego...
My experiment had 3 tubs, each containing the same substrate. I grew maggots in the substrate of each tub. Once mature, 3 samples of these maggots were harvested from each tub giving me 9 subjects. The rest of the maggots were left in the tub and developed into flies which laid eggs. these eggs then hatched into magg...
I am familiar with methods to determine the Autoregressive and Move Average orders of ARIMAX type models in a univariate time-series context, usually formulated as regression with ARMA errors. I am particularly partial to the Box-Jenkins method of identifying an appropriate ARMA order as I find it typically leads to mo...
I'm doing a retrospective comparison of two treatments (A and B) for eye disease. Both procedures have the same most common side effect (dependent variable) but their indications differ slightly resulting in different average age of the patients treated (75 in treatment A and 69 in treatment B). As you would expect, ol...
I am using stata 12 as well ase stata 14.2 Here I am trying to run the multivariate probit model for my data set. But the command is not being read by stata. At the same time I am not being able to install the mvprobit package of stata. I have checked number of youtube tutorials for this but haven't been able to run th...
As I understand it, the subdistribution hazard model gives hazard ratios which tell you the direction of the effect of a covariate on the event occurrence, as defined in the paper below. If the SD hazard ratio for age is 1.2 for event type 1, an increase of a year means the probability of event type 1 (at any particula...
I'm trying to derive vectorized backpropagation from mostly first principles, but I'm having trouble marrying how this paper explains backpropagation with the derivative of a loss function with respect to a matrix. As the paper states (and I believe I understand), you can view a neural network as a composition of funct...
I'd like to be able to measure how "different" two distributions of ordinal (but not interval) variables $X$ and $Y$ are. Given three random variables $X$, $Y$, $Z$ I'd also like to be able to say whether $X$ is "more different" from $Y$ than $Z$ is from $Y$, etc. Essentially, I'd like to find a distance function (in t...
Let's say we conduct an A/A test for testing app. We will randomly divide users into two groups, with a 50% probability of each user getting into one or the other of the groups, but both groups will get the exact same app. The onboarding conversion rate for these groups turned out to be different, lets say because of s...
I have the following question. It's about transient and recurrent states in Markov Chains. I know when a state is one or the other, but there is one thing I can't figure out or understand. We have learned that the sum of the First Return Probabilites (FRP) must be = 1 for a state to be recurrent, otherwise it is transi...
I am working with a filed experiment, where we tested the effect of a molecule at three dosages on the maize grain yield. the experiment was conducted for 2 consecutive years and in 2 different soils. I want to test with an ANOVA the effect of the dosage on the yield, considering both the year and the soil as random fa...
How to derive the variance formula in Mann kendall test in the below link. https://vsp.pnnl.gov/help/vsample/design_trend_mann_kendall.htm The idea for this test looks kind of random if I want to design test for testing trend of a time series how do I ensure that it is non biased and correct. in general if I have an id...
I want to run a binary logistic regression to understanding (modeling) factors affecting nest-site selection in a bird species. I have Presence/Absence data and 13 predictors. The sample size is small. 32 Presence points and 64 Absence points. I want to run a stepwise binary logistic regression in R manually. I have 2 ...
The time series $\{X_t\}$ is said to be weak stationary if for all $n > ≥ 1$ for any $t_1, . . . ,t_n ∈ T$ and for all $τ$ such that $t_1+\tau, \dots ,t_n + τ ∈ T$ all the joint moments of order 1 and 2 of $X_{t_1} , . . . , X_{t_n}$ exist, are all finite and equal to the corresponding joint moments of $X_{t_1+\tau} ...