instruction
stringlengths
9
38.7k
Wondering if someone can help clarify my intuition on this. Say you have a continuous covariate and a binary grouping variable and you introduce an interaction term between the two in a basic regression model (continuous outcome). Say the interaction term from the model output is not statistically significant, but sugg...
I have a set of vectors $x_i \in\mathbb{R}^m$ and a similarity function f that quantifies how similar $x_i,x_j$ are. Unfortunately, calculating f takes a lot of time. I want to use some neural architecture A s.t.: $A(x_i)\in\mathbb{R}^n$ where $n<<m$ Euclidian Distance between $A(x_i),A(x_j)$ will output similar resul...
I would like some help proving this expression of partial correlation in terms of student's t : r(yx.efd.....p)² = t²/[t²+n-k-1] Can you please direct me to a source explaining how to go about this? I just don't know how. I'm not a spammer or anything. This question was previously deleted, can I understand why? Many th...
I am currently faced with the question. Do I include the variable XY reflectively, formatively or as a scale value in the model? Theoretically, there is a lot to be said for a formative measurement model, since it is primarily knowledge that is being asked about. Now, the scale was determined by the authors using a fac...
In the Survival vignette entitled "Spline terms in a Cox model" https://cran.r-project.org/web/packages/survival/vignettes/splines.pdf on page 3 there is this graph: The plot is showing the effect of Age which was fitted as a spline term in a Cox model. In this plot, the centering was set at age = 50, so the y axis is...
In my stats class, we are talking about the 2 proportion $Z$-test, which compares two sample proportions. The test statistic is given as: $$ Z = \frac{\hat{p_1}-\hat{p_2}}{\sqrt{\hat{p_c}(1-\hat{p_c})\left(\frac{1}{n_1}+\frac{1}{n_2}\right)}} $$ My question is, is there a good way to visualize this operation? I can un...
Let us say, we are tasked with setting (average/list) prices that are likely to convert for heterogeneous products (e.g. used cars of all shape and sizes - made up example!). Let us also say that we only use one feature: miles per gallon for target encoding with respect to the target prices achieved sales in the last ...
Why do we need normality test if the sample size is large enough and hence, the distribution of the sample mean is approximately normal based on central limit theorem?
I would like to determine a partial correlation from fixed effects in my linear mixed models. If i would run a model for example $Aij = \beta_0 + \beta_1X + \beta_2Y + \beta_2Z + ui$ + ϵij Can I calculate a partial correlation coefficient for the $\beta_1$ to $A$ using the formula $r= \beta_1 *(var(\beta_1) / \text{sd...
How can I obtain the Variance-Covariance matrix of estimated coefficients, $\hat{\beta}$, which are a result of some GLM (solved for example using IRLS. Is there a reference you can direct me to? In R the function is vcov however, it does not detail the computation. Bonus points, if there is an easy way to obtain it us...
I am using R and have based my analysis on the book by Hyndman, R.J., & Athanasopoulos, G. (2021) Forecasting: principles and practice, 3rd edition, OTexts using the fpp3 package (https://otexts.com/fpp3/) The aim is to estimate number of averted cases after the implementation of an intervention. I have fitted an Arima...
I know about the bias variance tradeoff such that with higher variance we have less bias and vice versa. But what is the relationship of this tradeoff? Is it just an exact inverse proportionality i.e $bias\propto 1/variance$? Second part of my question is what factors cause high variance in our model? I know that multi...
Here is a simple example in R using the iris dataset: summary(lm(Sepal.Length ~ Species, data=iris)) Output is: Call: lm(formula = Sepal.Length ~ Species, data = iris) Residuals: Min 1Q Median 3Q Max -1.6880 -0.3285 -0.0060 0.3120 1.3120 Coefficients: Estimate Std. Error t va...
I am currently doing a nested cross-validation for lasso regression to determine the best lambda value. I am using the mlr3 package with the documentation from https://mlr3book.mlr-org.com/optimization.html#sec-nested-resampling In the example, the hyperparameters selected and tested on the outer fold were: iteration ...
I want to get a deepened understanding of random effects models and how they compare to fixed effects models. While there are some great answers already given by the community the following question remains unclear to me: Broadly speaking one could say that before analyzing values across different units of analysis, ea...
I am trying to understand a model, and I feel a bit stuck and I think I am missing something easy and fundamental. The model in question is rather strange and of the form $$ f(x_1,x_2,...,x_{n-1},x_n) = C_0 (1+x_1C_1) (1+x_2 C_2)... (1+x_{n-1}C_{n-1})(1+x_2C_n) $$ the variables ($x_i$) are mainly categoricals (i.e. one...
I am running linear mixed models analyses for the second time. My categorical variable random1 for group is a dummy variable (1-0), and the output has this error: b Parameter is set to zero because it is redundant. How can I interpret my results? Do I need to fix my data/coding to get reliable results? Why do I enc...
this question is similar to another on this platform, but that one adresses the general question of rooting the variance, while this question is about rooting d.f. - furthermore, that question has an elaborate answer which is too complex for me to interpret.. So, generally to get the std.dev., the square root of the va...
As a start- I appreciate any advice you can offer me with this question, and want to thank you for your assistance in advance. I have A-level maths knowledge, although did not like statistics. Statistics are not in my daily activities and this is the first time I have attempted to conduct statistical analysis in over 4...
I am working on a binomial mixed model. I want to analyse the use of a certain construction by students. My response is CONSTRUCTION (two levels: THAT/NO_THAT). My predictors are both categorical (type of INSTRUCTION with five levels (A, B, C, D, E) and L2 with three levels (Italian, Spanish, French). I am using lme4 a...
I'm trying to understand the differences between RNNs and State Space Models (SSMs). I know that SSMs can take on different definitions depending on who you ask, but here I define it as in Learning Latent Dynamics for Planning from Pixels. Although this paper is about a new method, they do compare the graphical models ...
I was wondering how I would report this? My ANOVA is significant but when I look at the model and the different predictors, there is no significance?
I'm currently trying to decide what test to run on SPSS for my data. I am comparing the effects of 3 different interventions on trauma scores. I have both pre and post-scores.I have created a difference score variable and will use this to run a one-way ANOVA. I'm trying to run normality tests to see if I instead need t...
The max entropy method is a way of deriving a probability distribution given only the information you know about how the data is distributed and nothing more. For example the normal distribution can be derived by constraining the mean and variance to be fixed. This is a very intuitive and principled way of choosing ho...
I'm attempting to implement an adaptive kernel Kalman filter following this paper https://arxiv.org/abs/2203.08300, but I'm struggling to find a method of evaluating the feature mapping for a polynomial kernel $K(x,y)=(x^{T}y+c)^{d}$ with the input (state) dimension is larger than 2. For the scenarios I inted to use th...
I know that input data is not of much use, but I still want to understand how are we going to split the data (in the decision tree) in this case (because all the features should end-up giving the same amount of information gain) Any thoughts on this?
For any distribution, we can substract two random variables and find the distribution of the difference. But what about the reverse? Can the below statement be true in general or under any condition for the distribution? For any probability distribution function, there exists another distribution such that the differen...
I have a problem where I want to predict "when is the next action happening" based on the time. Example problem: Imagine you have a dataset of transactions per user, your goal is to predict when is the user going to do another transaction. Minimal example data: transaction_id,user_id,last_transaction,next_transaction 0...
I made a lmer with an interaction between odour and concentration and random effect of date. I'm getting very high df in the emmeans output below. It's actually higher than the number of observations in my df (954). Why? Should I be concerned? Also, can I specify "side = '>'" when I do the dunnett trt.vs.ctrl instead ...
I have a binary dependent variable and a continuous independent variable. When I apply logistic regression to build the prediction model, I use p-value to know whether the independent variable is a significant predictor for the independent variable. I would like to repeat the same study using two other ML techniques: c...
My team is conducting a pre/post-intervention comparison of health outcomes in treatment and control groups, and the question came up whether it's a good idea condition/match on a deceased flag for subjects after the post study period. Instinctively, I know contaminating your model with future information introduces bi...
I am working with a dataset that has several variables querying time spent using media each day. Each variable queries a different type of media use, with the same answer options. An example question is, "how much time did you spend today talking on your phone?" The answer options are: a) < 30 Min b) 30 Min - 1 Hr c) 1...
In stochastic convex optimization, if $F(w) = E[l(w^Tx,y)]$, when l is a convex, L-Lipschitz loss function, it can be optimized using SGD such that $E[F(\bar{w}_T)] = \frac{1}{T} E[F(w_t)] \leq \min F(w) + \frac{RL}{\sqrt{T}}$ Assuming that $\vert|w\vert| \leq R$ when the step size is chosen to be $\eta = \frac{R}{L\s...
I am working on a survival analysis in R using the survival package (and trying to switch it to a Bayesian analysis but that may be a different question). Either way, I'd eventually like to incorporate time-varying covariates, so I'm trying to set the data up as a counting process. But, I'm getting a little lost in "ti...
For a dataset with mean = 67 and the standard deviation = 6, how could I find the p-value associated with the true population mean being 79 OR greater in R?
I wanted to know if one would require to check for the violation of ANOVA Assumptions before running an ANOVA model on a Big Dataset (size of the big dataset is 57 million rows)? Thanks!
Lets suppose I have three random variables: $X$, $Y$, and $Z$. I can use the Spearman Rank Correlation to measure the degree of monotonic relation between any two of them. However what if I want to compare the monotonic relation between $X$ and $Y$ to that of $X$ and $Z$ (i.e. answer the question: do $X$ and $Y$ have a...
I am running a Monte Carlo simulation that results in an heavy-tailed distribution. The image below shows the distribution of 1,200 runs of the Monte Carlo simulation, where each run consists of integrating over $M$ = 12,000 randomly drawn paths of $ \mathcal{X}_m = \left\{X_{n,m},s_{n,m}\right\}_{n=1}^N$. The quantit...
How to compare the effect of receiving treatment on a dependent variable measured using a Likert scale (0-7), using such data: # Group Rating at baseline Rating at endline 1 Treatment 2 5 2 Treatment 3 3 3 Control 4 7 4 ...
I have this problem to solve There are ten people in a class. Ari and Jamaal are twins in this class. At random, two people will be chosen as the class representatives. What are the odds that Ari and Jamaal will both be chosen? I can guess the solution For the first pick, there is a 2 out of 10 probability. For the s...
I’m doing some matching followed by difference-in-difference regression to look at the impact of a certain disease on people's income. The matching is done, and I’m preparing to go into the next stage, setting up a difference in difference regression and achieving double robustness by including the same covariates I us...
So I need to compare three linear mixed effects models using the anova function in R. My advisor oversaw me build the actual models themselves so I am fairly sure the syntax for the models themselves is correct but I get a weird result. Here is my data set for references structure(list(X = 1:6, sub = c("59917f16e339120...
Consider a well-defined function $\psi(x,\theta)$. Assume that it is a smooth function, differentiable, has a finite expectation and a finite second moment. $E\dfrac{\partial \psi(X,\theta)}{\partial \theta} \neq 0$ and is finite as well. The text book then provides the following hint: $E \sup \biggl({\dfrac{1}{n}\sum_...
I've just started practicum work for a SaaS company, and trying to build a customer attrition (binary classification) model for enterprise SaaS product with a target variable indicating whether or not a customer churned after their annual renewal cycle by encoding 1/0 based on their historical renewal status. At a high...
i have two layer with different layer sizes (hidden states) how can i perform encoder decoder type of attention on these layers if the layer sizes are different? because i will do dot product, how? Consider I have two layers: lstm1 = LSTM(20, return_sequences=True, name='lstm') lstm2 = LSTM(40, return_sequences=True, n...
I want to include both parent's education variables as control variables in my estimation about the effects of maternal bargaining power to child's educational attainments. They are stated as categorical variables ranging 0 for "not receiving educ" and 4 for "tertiary-level educ". Many previous papers in my topic have ...
I use variables, independent as well as dependent, which are inherently not normaly distributed. Exept a few "extremist", nobody score very above the mean on these scale, which are validated on peer reviews journals and widely used (e.g. rape myths scale). I ran an experiment with two experimental condition, measure of...
I'm working on a project in R where I'm looking at California's census tract-level demographic data in an explanatory logistic regression model. I have 6 demographic variables of interest: percent below 150% poverty line, percent minority, percent unemployed, percent disabled, percent with no high school diploma, and ...
A study followed 1000 patients for a 5-year period, but some patients may have been lost to follow-up or relocated during the study. The study's results indicate that: Kaplan-Meier survival rate at 1 year: 0.80 Kaplan-Meier survival rate at 2 year: 0.60 Kaplan-Meier survival rate at 5 year: 0.50 Questions: Is it val...
In the life table, two values are related to death. One is the death rate, by definition, $$ m_x = \frac{d_x}{n_x}$$ Another one is the probability of dying: $$ q_x = \frac{d_x}{l_x}$$ The numerator of these two formulas are the same, but the denominators are different. I cannot understand the difference between $l_x$ ...
I'm planning out a project that involves lattices in the order theory sense of "lattice". I am assuming the number of vertices is known ahead of time. Unfortunately I have only found resources related to lattices in a crystal or (undirected) graph embedding sense. As such it would not be difficult to sample uniformly f...
I have recently started learning about conformal prediction. I am a programmer without a strong mathematical background, but with a strong intuitive, applied background in statistics. I am trying to understand the intuition underlying conformal prediction and it is difficult to find good sources on this. Even the class...
As a graduate student, I have always used tools which calculate p-value for me and I kind of understand what it means. If p-value is 0.05, there is only 5% of chance that something happens naturally. To me, probability only makes sense when there is whole population or something that goes to "denominator". For example,...
I have data where we have longitudinal data for several users, so we have a case of repeated measures. The plan is to apply some classification or regression model. While there are other models suited to this like MLMs and GEEs, I'm interested in using predictive ML methods like the SVM, but within-subject correlations...
Assume a set of variables $x_1,...,x_p$ and their variable importance indices given by two different predictive models. Regardless of the importance metric itself (as long as we use the same metric for both models), I want to look at the ranking of their importance: which variable is the most important for model A, sec...
Assume two paired binary vectors, $v^A,v^B$. We can easily construct a contingency table looking like: $v^A_i=1$ $v^A_i=0$ Totals $v^B_i=1$ $a$ $b$ $a+b$ $v^B_i=0$ $c$ $d$ $c+d$ Totals $a+c$ $b+d$ $a+b+c+d=p$ Usually we infer using the $\chi^2$ statistic $$\frac{(\text{observed-expected})^2}{\text{expe...
I built a logistic regression, including the followed variables. And I tried to compare effects of temp among group and habitat using emtrends() in emmeans R package. I have 3 questions about the followed results. First, it feels like that there was type I error in the results. How can I figure out there is type I erro...
What is not right with a model that produces this kind of residual plot? Does it have to be discarded? My data is egg production (counts, but cumulative) over a period of 55 days for 7 treatments+control with 10 replicates each There are repeat measurements of the same individuals done over several days, and this is ac...
I have time series data for 50k customers.I want to forecast at a customer level. But the problem is it is not possible to train a ARIMA/ARIMAX model on each customer. Can I train a general time series model on the population which has an effect term for each customer? Or is it somehow computationally possible to have ...
In the section 15.5 of the book 'Machine Learning: A Probabilistic Perspective' by Kevin P. Murphy, it discusses the Gaussian Process Latent Variable Model. The log-likelihood objective function is given By $$l = -\frac{D}{2}\ln|K| - \frac{1}{2}\text{tr}(K^{-1}YY^{T})\tag 1$$ Where $K = ZZ^T + \beta^{-1}I$ and the gra...
n = 164 where Group 1 = 58, Group 2 =50, Group 3 = 38 and Group 4 = 18. The expected frequencies are 25% (41). Would it be appropriate to calculate an Odds Ratio if I wanted to compare Group 1 v Group 4? (58 x 41)/(41 x 18) = 3.22 Would this suggest it is 3.22 times more likely to belong to Group 1 versus Group 4?
I use factor analysis on a set of 15 survey questions (likert scales). Using the predict command (in stata) I make 5 factors. Subsequently, I want to use cluster analysis to see if there are "groups" of people with similar scores on the factors. I find it hard to know which distance measure to use (e.g. singlelinkage, ...
If I have an experimental group and a control group in a RCT; and I am trying to estimate the intervention effect on the dependent variables of the participants under control of several covariates using a multiple regression model (instructions, not by choice), should I include all cases from both treatment and control...
I am stuck on the first part of problem 8.2 of the book "A Probabilistic Theory of Pattern Recognition" by Luc Devroye: Show that for any $s > 0$, and any random variable $X$ with $\mathbb{E}(X) = 0$, $\mathbb{E}(X^2) = \sigma^2, X \leq c$, $$ \mathbb{E}(e^{sX}) \leq e^{f(\sigma^2/c^2)}, $$ where $$ f(u) = \log \left(...
In my research I am trying to estimate how the introduction of an electricity interconnector between two different markets (A and B) has affected the electricity price in market A. I would preferably differentiate the price effect between the export- and import hours, that should yield negative and positive coefficient...
I'm looking for a multivariable time series architecture that accepts multiple independent variables and produces multiple dependent variables. The context is sales forecasting given item, discount percentage and units sold. So if there were 100 items, a single time-step (row) would have 300 elements: [(item_token_1, i...
I have conducted a Bayesian Logistic regression, and I would like to compare 2 models : one model with one continuous predictor (M1) and one model without predictor (M0). The outcome is a binary variable. I have used LOO estimated of brms package. I find following results : Model comparisons: elpd...
This question is about a magic square generator, "relaxed" because it's only about one vector (row) in the square independent of all other rows; the individual elements are continuous and not integral. Constraints are $$0 \le i < n, i \in \mathbb{I}, n \in \mathbb{I} $$ $$0 \le v_i \le u_i, v_i \in \mathbb{R}, u_i \i...
I am looking at factors that are associated to changes in student's grades over time. My dataset consists of 45 students with Time 1 and Time 2 grades across 7 different subjects as well as characteristics about these students. As you can see in the below sample dataset each student will have 7 different scores. I want...
Yesterday, I asked how to conduct a Bayesian logistic regression in another post. I have been advised to use the brms R package. I have conducted this analysis, but being a beginner in statistics and coding, I need to know if my analysis is right. I have a data set with one binary outcome ("Object"). Participants had t...
I have read an answer there but still cannot capture the ideas behind it. In Sutton's book, section Value Iteration, it is said that In fact, the policy evaluation step of policy iteration can be truncated in several ways without losing the convergence guarantees of policy iteration. One important special case is when...
If I know that a disease has a 50% prevalence in a population, how many individuals do I need to screen for enrolment in order to get six individuals who are positive for this disease with 80%, 90% and 95% power?
I'm trying to solve this supply chain problem where I have to determine safety stock calculation for the components/raw materials that we procure... First I analysed the demand or consumption pattern of components and classified them into smooth, Intermittent, erratic and lumpy based on coefficient of variation and ave...
Consider a time series $\{Y\}$ and the forecast $\hat{Y}_{t+1}$ for the true value $Y_{t+1}$. Now consider the time series $\{y\}$, where $y_t \equiv log(Y_t)$, and the forecast $\hat{y}_{t+1}$ for the true value $y_{t+1}$. Are the functions $L_1(Y_{t+1}, \hat{Y}_{t+1}) = (logY_{t+1} -log\hat{Y}_{t+1})^2$ and $L_2(y_{t...
I have a group of covariates and individually they are balanced between treatment group and control group. It's well established that even if the covariates from the treatment group and control group are individually statistically balanced, they might be jointly imbalanced. (i.e. if I calculate $$T_n = Z_1^2+Z_2^2+...+...
I am currently interested in a specific supervised learning sub-problem. We have access to Data X and targets y as in traditional statistical / supervised learning. However both X and y are very noisy. Generaly speaking, X seems to be mostly characterized by its correlation matrice. We also have access to (slightly lag...
I have performed a meta-analysis using five micro-array datasets. After performing meta analysis I visualized the heterogeneity using funnel plot and forest plot (using two up-regulated and two down-regulated genes). From the plots it can be concluded that for 3 genes (two top up and one top down), dataset 2 and 5 are ...
When does a bivariate VAR(2) model equal to a combination of two separate univariate AR(2 ) models?
As I understand it, in the specific context of linear regression, the R output "residual standard error" is an estimate of $\sigma$, the standard deviation of the distribution of the residuals. You can compute $\sigma^2$ by the MSE, which in general is the mean of the squared errors, but in regression the denominator i...
I am analysing a dataset of tumor volumes over time of a tumor that occurs in children. It is hypothesized that the tumors shrink over time and shrink faster the younger you are. The question is how much the tumors decrease on average over time during different ages. I therefore thought I would need some regression and...
I wonder if you can help. # create the baseline (on which the for example a model is fitted form which one can sample and derive the uncertainity of the cycle) x <- " Groups 5Y(average) 2016 2017 2018 2019 2020 1 26 21 23 26 28 31 2 21 20 21 22 22 22 3 26 28 28 27 26 24 4 17 19...
I have very basic knowledge in statistical science and appreciate your patience. My problem is if you have a bag with seven differently coloured balls, you are allowed to blindly pick 3 balls every minute, and you do this for 3 minutes (like three times). What can I use to make accurate, as possible, predictions on wha...
I have fitted a generalized additive model with an interaction term using the gam function from the mgcv package in R. I would like to perform the default Type II analysis used by the Anova() function from the car package to check which variable is significantly associated with the outcome. It is my understanding that...
Suppose $x\sim \text{Normal}(0,\Sigma)$ with diagonal $\Sigma$. Is there a closed form solution or a good approximation to the following quantity where $y=x/\|x\|$: $$f(C)=E[yy'Cyy']$$ Target is to understand the growth rate of $g(k)=\operatorname{Tr}(\underbrace{f\circ f \circ \cdots \circ f}_{k} \circ I)$ in terms of...
I had a student point out this image in Learning Statistics with Jamovi that is also in Learning Statistics with R (Page 294 in the latter). I was going to send her a reply when I noticed something in the image: Here it seems the author simulated some sample means and increased the sample size until reaching normality...
I have a regression model that I am using for explanatory purposes. I have a set of binary covariates which are specific comorbid diseases. I also have a variable which is the sum of comorbid diseases (categorical). I would like to examine the effects of both on an outcome. I ran the 2 models separately and the results...
Suppose a hierarchical linear model with "random intercepts" $\mu_i$ fit to some raw (unscaled) data: $$y_i \sim N(\mu_0 + \mu_i, \sigma) \\ \mu_i \sim N(0,\sigma)$$ If I rescale $y_i$ by subtracting the sample mean of $y$ from $y_i$, I know that $\mu_0 = 0$. Is there any reason I shouldn't drop $\mu_0$ from the model...
The theorem to prove is that if $X_n$ converges weakly to $X$, and $P(X \in D_g) = 0$ where $D_g$ is the set of discontinuity of $g$, then $g(X_n)$ converges weakly to $g(X)$. In Durrett, this is proved by using the a.s. representation, getting $Y_n$ that equals to $X_n$ in distribution and $Y_n \to Y$ almost surely. ...
I calculated the difference in 2 proportions using the prop.test() using some exemplary data I found in internet. > (ppt <- prop.test(x = c(11, 8), n = c(16, 21),correct = FALSE)) 2-sample test for equality of proportions without continuity correction data: c(11, 8) out of c(16, 21) X-squared = 3.4159, df = 1, p...
In the Metropolis-Hastings algorithm, depending on the current state $x$, I have a distribution $\rho_x$ and I want to use a sample from $\rho_x$ as the proposal in the next iteration. (I guess technically this means to start the Metropolis-Hastings algorithm afresh with a new proposal kernel and for only one single it...
Does the unit of measurement change how we calculate sample size? For example, if we were to run an A/B test on ads with our target metric being click-through-rate, and we are doing a sample size calculation: We would maybe use some kind of proportions z-test. Does it matter if we are calculating a sample size for ad i...
Let $X_1, \ldots, X_n$ be a random sample from $\mathrm{U}(0, \theta)$, where $\theta \in[1, \infty)=\Theta$, say. Here I tried to find complete-sufficient statistics for $\theta$ as my main target is to get a UMVUE of $\theta$. I discover that $T=X_{(n)}$ is not complete for $\theta$ by taking a counter-example $g(t)=...
I collected data from 10 patients regarding the amount of sugar they consume in a day and want to see whether this amount significantly differs from the average amount of sugar consumed by the general population per day. This value consumed by the general population is a single average value published by a national ins...
I‘m trying to find 95% confidence interval for $\sigma$ from a given sample. The sample is: $$ n=6 \\40000, 200663, 142690, 48560, 40000, 242628 $$ (we know that we’re dealing with normal distribution). I have already found confidence interval for $\mu$, which is $[25275.446, 212904.887]$. For $\sigma,$ I’m using the f...
A retail company has traditional brick-and-mortar stores of varying sizes and assortments and a webshop with a considerably larger assortment. I am interested in a method for measuring how the introduction of more brands to the assortment cannibalises the sales from other brands within the same category. Most of these ...
Suppose I know the effect of running on strength of muscle 1 and 2 and their $p$-values. These values were calculated from the same sample. Now I want to know the effect of running on the strength of muscle 1 (weight 1) and 2 (weight 2) combined. The effect $E$ can be easily calculated: $$E_\text{comb} = \frac{1·E_1 +2...
I am trying to learn coding and want to create a simple game. The idea is that there are 20 different animals, and you have 5 rooms, each round 5 out of the 20 animals hide in the room, where behind the door of each room there is one unknown animal. The player who guess all the animals wins. Is there a statistical mode...
can you help find the maximum (analytically) of the following posterior pdf? $p(\theta|x) = \frac{\alpha}{\sqrt{2\pi}}e^{-\frac{1}{2}(\theta-x)^2} + \frac{1-\alpha}{\sqrt{2\pi}}e^{-\frac{1}{2}(\theta+x)^2}$ In particular, I am interested in values $\alpha=\frac{1}{2}$ and $\alpha=\frac{3}{4}$. If I draw $p(\theta|x)$ i...
I know how to use e.g. the Chi-Square test to check whether data are uniformly distributed. I was wondering whether the approach changes if the data comes from multiple participants, i.e., there is a grouping variable. Completely arbitrary example: Say we want to check whether different pizza types (which I treat as mu...
The additive chi-squared kernel for histograms is defined as $$K(x,y)= \sum_{i=1}^n \frac{2x_i y_i}{x_i + y_i}$$ Is this kernel positive definite on histograms? And if so, is there a known expression for its feature map? It does not have to be the canonical feature map mapping to the RKHS associated with $K$, just any ...