instruction
stringlengths
9
38.7k
Are both terms equivalent? They seem very similar to me. Or does one imply the other?
I've conducted a regression analysis using an event study methodology to explore the Cumulative Abnormal Returns (CAR) linked to stock repurchases over one and two years. Interestingly, while year 1 showed statistical significance, year 2 did not. Now, I'm investigating the factors influencing CAR in both periods, usin...
I have a time series data from a wearable device. I have two time series as arrays df1.VALUE1 and df2.VALUE1. I would like to to measure similarity of these arrays. These arrays have different sampling rates and different array lengths. For both arrays measurements happens in different intervals, usually around 15-30 ...
I am working on a project to automatically evaluate Raman spectra from a production process. It already works for some compounds with the chemometrics software Ramanmetrix (desktop version 0.5.0). This are a few entries of the metadata table: file date device standard type batch time Glycerol Produ...
I have been unable to find references to understand how count data can be modeled where each count observation has an unknown upper bound lying in a particular range. Let's consider the following example so that I can make my problem statement clear: In a study, a statistician is trying to model number of cigarettes ea...
I'm estimating the simple model communication_share ~ grid_size * n_procs. From the theoretical background I would expect a negative effect of grid size and a positive effect of number of processors. Estimating my model gives me the following coefficients. Predictor B SE t p Intercept -5.24327 0.36280 -14.45 <0...
Introduction. In a test, I would like to use both the Fisher's moment coefficient of skewness (Joanes, 1998) $g_{\text{Fisher}} = \frac{m_3}{{m_2}^{3/2}} = \frac{\frac{1}{n}\sum_i (x_i - \overline{x})^{3}}{\left(\frac{1}{n}\sum_i (x_i - \overline{x})^{2} \right)^{3/2}}$ and the Bowley’s coefficient of skewness (Ekström...
I have data from 4 populations : A (n=16), B (n=16), C (n=14) and D (n=16). Data from A and B are not normally distributed. Data from C and D are normally distributed. All data passed the Levene's test for equality of variance. Kruskal-Wallis test does not show any differences between group. The independent Mann-Whitne...
I am working with data consisting of concentrations of different metabolites taken from different subjects at different time points. I want to find out the relationship between Metabolite A specifically and Metabolite B, Metabolite C, Metabolite D and so on, to see if there are any metabolites that can be used to predi...
Question: Customers arrive at a shop according to a Poisson process with rate $\lambda > 0$ per hour, with probability $p$ being male and $1-p$ being female. During the first hour $n$ people arrived ($n \ge 1$) Calculate $\mathrm{E} (Z|A)$, where $Z$ is the arrival time of the first male customer and $A$ is the event t...
I am conducting a study aiming to determine whether repetitive sedentary time over 7 consecutive days is associated with hypoglycemic events during the same period. Here are my variables: Independent Variable: Sedentary time (measured over 7 days using accelerometry) Dependent Variable: Hypoglycemic events, daily avera...
I am trying to analyse my data but I am unsure if repeated measures ancova is the way to go. I have a variable named "A" measured in three different conditions "1", "2" and "3" (the sample size between groups is unequal). I also have a continues covariate measured just once in the first moment. My r code until now is: ...
I want to learn statistics and probability for machine learning and data science, and I'm don't know what textbook I should use for self-study. Now my choice is between The Elements of Statistical Learning - Trevor Hastie or Fundamentals of Probability: A First Course and Probability for Statistics and Machine Lear...
I'm new to stats and I'm not sure how to interpret the output of my glm model. I have two fixed factors, task which has two levels (task A and task B), and condition which has four levels (conditions a, b, c, and d). Both factors are sum-coded (because I don't have a clear baseline/reference level). > contrasts(data$co...
Let's say I am promised that a coin is biased to have probability of heads either $p_1$ and $p_2$. How many times should I toss it to ensure that I know which coin I got, assuming I can be wrong in my conclusion with probability $\varepsilon$? According to this video, if $p_1 = \frac{1}{d}$ and $p_2 = \frac{2}{d}$ for ...
UPDATE----------------- I have data where one ID can serve as a comparator several times. This is done by creating a variable to group the treated in variable GROUP. Assume variable GROUP, as an example, containing the number of visits to a physician until a therapy is initiated. Thus, ID 4 initiated the therapy after ...
I am working on a GLMM and want to know: if you add a quadratic term to one variable (x1^2) do you also then need to include a quadratic term in any of its interactions (e.g. x1:x2)? My formula: quadratic.model(glmm) <- y ~ x1 + + I(x1^2) + x2 + x1:x2 + I(x1^2):x2 OR how would I know if I should only apply it to the ...
I'm trying to implement equation 3 from this article research paper, for ease here's a screenshot of the equation: Here's my code for it taper_model = nls(d ~ (Is*((D^2)*(1 + (((b2 + (b3/D^3))*((1 - (h/H)^b1) - (1 - (1.37/H)^b1)))/(1 - (1 - (1.3/H))^b1))))) + (Ib*(((D^2) - ((((D^2) - (F^2))*(((1 - (1.37/H))^...
I'm trying to implement a logistic regression model with random effects and interactions. For some reason, when I remove an interaction between a parameter and a random effect parameter (Player and Shot.after.PC), the variance and random effect values decrease to 0. glmer(GOAL~ (1|Player) + match_seconds_bin * Score.Di...
I asked this question earlier this week but I hadn't really done my research yet or inquired into my error. So my data is heteroscedastic which has necessitated computation of robust standard errors to account for the violation. This is what my model looks like (as implemented in R) TD_PE_analysis1_v2 <- lmer(PE ~ lear...
I'm analyzing the product field failure data where each product can have one or more failures (Failure A, Failure B, Failure C, Failure D etc.) My goal is to understand the correlation between failure A and failure B. The challenge is the sample of the failure data I have is biased i.e. for example if 10000 products ar...
I am carrying out a multivariate multi-level meta-analysis, and I have a question regarding including moderator variables in the context of publication bias. Doucouliagos and Stanley (2009) recommend modelling 1/SE as an independent variable in an ordinary least squares regression to test for evidence of publication bi...
I'm using interrupted time series analysis to estimate the impact of an intervention in the same group. However, my target variable is a satisfaction index that goes from -1 to 1. How can I model a dependent variable that is bounded between -1 and 1? The distribution of the dependent variable looks like this:
With two groups I can either perform ANOVA or T-test. Additionally I can have one-sided test, if I want to make sure I get the same conclusion from both tests and for t-test I choose alpha=0.05, I need to choose an alpha of 0.1 for the ANOVA. So that means the critical areas are different ? I'm confused because it seem...
What do you do when bootstrapping and the sample for one iteration is "bad" in some way that makes your statistic uncomputable. For example suppose your statistic was the best fit linear slope for a data set of points $(x_i,y_i)$, but your boot strap sample picked points all at the same $x$ coordinate (or even just pic...
Given a multivariate Gaussian distribution $\mathcal{N}(\mu, \Sigma)$ where $\mu$ is a real vector and $\Sigma$ an associated covariance matrix, I am looking for a good notion of width. There seem to be two options. Trace-based widths: The trace of the covariance matrix is the sum of its eigenvalues. The square root ...
I am working on determining if there is an association between a medication (yes/no) and a health outcome (yes/no). However, the lines between what is a confounding variable to include in the model, and what is a known risk factor that should dictate who is included or excluded from the study cohort, are becoming blurr...
I have a model m which takes as input a starting array of n_input elements which are actually traces of mining processes and outputs an array of n_pred predictions along with their probabilities . This works iteratively, and so the model would use these predictions one after the other and append it to the input to use ...
Given that the Kruskal-Wallis $H$-test has been computed, the epsilon-squared estimate of effect size can be calculated as $$E_R^2=\frac{H}{(n^2 - 1)/(n+1)},$$ the number of the compared groups, the significance level, and the number of observations are known, how to compute the statistical power of this nonparametric ...
I investigating how vision (amongst other outcomes) changes over time, assessed at time 0, week 12 and week 24 in an observational cohort, and wanted to obtain the mean change values at each time point, with p-values comparing the change from baseline. There's no missing data at baseline. I am thinking of fitting some ...
I feel like this question is mostly about how to translate vague documentation into math than a statistics question per se, but please bear with me. I am reading the Canadian Institute for Health Information 's (CIHI) Cardiac Care Quality Indicators: General Methodology Notes 2020. On page 8 they have the formula $$\te...
In the popular textbook Mathematics for Machine Learning, creating a SVM requires solving: $\text{min}_{w,b} \dfrac{1}{2}\|w\|^2$ subject to $y_n (w^T x_n + b) \geq 1$, for all $n = 1, \ldots, N$ Ok, then let $(x_n, y_n) = ((1, 0), +1), ((0, -1), -1)$ This is an extremely simple dataset to classify. The classifier is:...
When calculating the $R^2$ value for the coefficient of determination of a linear regression model, it is well known (Wikipedia) that $SS_{Total} = SS_{Explained} + SS_{Residual}$ (1) i.e., $\sum_{i=1}^n (y_i - \bar{y})^2 = \sum_{i=1}^n (\hat{y_i} - \bar{y})^2 + \sum_{i=1}^n (y_i - \hat{y_i})^2$ and $R^2 = 1 - \frac{SS...
As we go through life, we see fewer and fewer things for the first time. As time goes on, the events we encounter more often resemble events we've come across before. Picture a world where we somehow know the Zipf-like probability distribution of all events. As in, if the slice labelled "sun rising" in this distribut...
I have this SPSS output and I'm wondering how I report variance for the model. Additionally, how much of the variance was explained by exercise both directly and indirectly (through both mediators) in happiness? Thank you in advance! Y : Happiness X : Exercise M1 : Relatedness M2 : Competence OUTCOME VARIABLE: Re...
When I study the textbook Statistical Inference by Casella and Berger, I have often seen expressions in the form of P(an equation) = 1. However, some other textbooks or lecture notes will instead say "The equation". For example, in the definition of Jensen's inequality: But you may find other books saying g(X) = a+ bX ...
Suppose that we have a discrete random variable $D$ with the support $\mathcal{S}_0=\left\{ d_1,\ldots,d_{20}\right\}$. In addition, consider a subset of the support like $\mathcal{S}_1=\left\{d_1,\ldots,d_{10}\right\} \subset \mathcal{S}_0$. Lastly, we have two continuous random variables $X$ and $Y$. Here, I have two...
I am reading From RankNet to LambdaRank to LambdaMART: An Overview. Section 4.1 describes LabdaRank. The last paragraph on page 8 and first paragraph of page 9 describe how the score ($s_i$) of each document/URL($u_i$) changed. The example assumes that $U_i$ is more relevant than $U_j$. According to me, this should res...
Can someone explain to me the procedure of computing the M step of the EM algorithm for a distribution that belongs to a regular exponential family? If I had a set of steps to follow I think I would understand it better.
Is it possible to compare two p-values? Suppose for a test with significance level 0.05, I get p = 0.06, and for another test with similar data, I get p = 0.20. What can I say if I want to make comments about these two values other than hypothesis acceptance or rejection?
I have the following data structure: 100 individuals (forecasters) predicted the likelihood of the outcomes of 50 events (binary outcomes, 1 or 0). For each event, each forecaster made two different predictions for the same outcome. The two predictions differ in how the forecasters were asked to compute the likelihood ...
I have a 258*14 dataset, I want to compare the latent factor structure of two sub-groups from this dataset (group1= 146, group2= 112). I started by performing an EFA (using ML and Promax rotation) on the complete dataset, I got a three-factorial solution that is interpretable and has good internal consistency(>0.9). CF...
The data I have is longitudinal with two survey rounds. So I have a two-year panel. In the empirical set up I have employed individual fixed effects. Is it wrong to employ district-by-survey fixed effects as well in the model? My research aims to find the labour market implications on a household member upon the death ...
In statistics/analytics, let's say we have a time series of data points, i.e., pairs of timestamps and values: t: 0 y: 42 t: 1 y: 32 t: 2 y: 29 t: 7 y: 0 As for terminology, I would probably refer to these items as samples (or, well, data points). But when referring to aggregated data, such as this: t_start: 0 t_en...
Suppose we have seven colors, each associated with a theoretical probability to choose one of them. The probabilities are as follows: red ______ 0.304761904761905 blue _____ 0.304761904761905 yellow ___ 0.304761904761905 green ____ 0.021428571428571 purple ___ 0.021428571428571 cyan _____ 0.021428571428571 magent...
I'm trying to model a subset of the MALD dataset (language related) using Gaussian Distribution. MALD: https://link.springer.com/article/10.3758/s13428-018-1056-1 One of the variables I'm working with is 'Number of Phones' (NumPhones in MALD) in a given word or pseudoword (Item in MALD) and I'm trying to explore two th...
For example, the equal weight mixture of $p,q$ is $0.5p+0.5q$ Let $\Delta$ denote the convex hull. CASE1: The equal-weight mixture of the infinite set $\Delta(p,q)$ should be also $0.5p+0.5q$ CASE2: The equal-weight mixture of the infinite set $\Delta(p,q,r)$ should intuitively be $1/3p+1/3q+1/3r$. However, on the same...
I have a dataset with one independent variable and a corresponding label. For example, let's assume we have the amount of hours studied for a test as our x variable and the grade of the test afterwards with 0 = "Bad", 1 = "Medium" and 2 = "Good" as the y variable. Made up example data and code in Python: x = [0, 2, 3,...
For $i = 1, \ldots, m$ and $j = 1, \ldots , n$ we have observations $x_{ij}$. We can assume that $$ x_{ij} = y_{i} + z_{ij}, \qquad y_{i} \sim \mathcal{N}(\mu_{y},\sigma_{y}^{2}), \quad z_{ij} \sim \mathcal{N}(0,\sigma_{z}^{2}). $$ If necessary, we can also assume that $y_{i}$ and $z_{ij}$ are independent (but if this ...
Given the $X{\sim}\mathsf{LogNorm}(\mu,\sigma)$ (or any other well-defined non-symmetric distribution), how one would sample two values, such as the first value $X_1$ is sampled from the $X$ and the $X_2$ is sampled from some sort of a mixed/composition distribution which 1) decreases when moving from $X_1$ (so $X_1$ i...
I am new to ML and I am learning the different algorithms one can use to perform regression. Keep in mind that I have a strong mathematical background, but I am new in the ML field. So I understand the math behind Support Vector Regression and behind Linear Regression. Now I just want to understand when is it best to u...
I am using a proportional hazards Cox model to predict the survival probability of some mechanical components. I am using a combined L1-L2 penalization, and I want to optimize the (integrated) Brier score, mostly because I would like to obtain the best probabilities, not so much the raking or ordering, which would impl...
I am developing sampling procedures for different kinds of discrete objects (rankings, sets, etc.). In most cases I know the theoretical distribution of the objects I'm sampling. My idea is thus to validate my samplers by using some statistical tests. The most obvious idea would be to use a chi-square test as I'm deali...
I am wondering if attention weights in BERT language model layers ( which ,in essence, are softmax probability distribution) can be approximated with beta distribution? With approximated beta distribution, I hoped to extract the meaning of alpha and beta, like how strongly the model pays attention to some tokens. Is it...
I am reading Taleb "Fooled By Randomness", and the author says that a 15% return with 10% volatility translates to 93% success in a year and 50.02% success in any given second. Could someone help me understand this calculation?
I am looking over a paper that derives the g-formula. The setting is the following: two treatments $A_0, A_1$ and a sole covariate $Z$ The assumptions are: Counterfactual consistency: $E[Y|A_0=a_0,A_1=a_1]=E[Y^{a_0,a_1}|A_0=a_0,A_1=a_1]$ Sequential conditional exchangeability: $E[Y^{a_0,a_1}|A_0,A_1,Z]=E[Y^{a_0,a_1}|...
how can i test for differences in pretest and posttest of anxiety and aggressive behavior in regards to the experimental group only? noting that i have already conducted a MANOVA and found statistical significant differences between experimental and control groups on the posttest results of both anxiety and aggressive ...
I get why sufficient statistics are named "sufficient", but what about "complete" statistics? I have this definition from F.J. Samaniego, Stochastic Modelling and Statistical Mathematics, 2014: a sufficient statistic $T$ is complete if for all function $g$ such that $\mathbb{E}(g(T)) = 0$, we have $g(t) = 0$ for all $t...
I have a paradigm where participants complete a reaction time task with three different stimulus 'Conditions'. I generate two contrasts for my mixed model. I produced the plots below to assess the normality of random effects. The random effect that is assessed here is (Condition|participant). Can someone explain what ...
Learning to do Linear Discriminant Analysis with sklearn, and a bit confused about the scalings_ attribute of the fitted model. The LDA classifier can be written as $$\delta_k(x)=x^{T}\Sigma^{-1} \mu_k + C_k,$$ with $C_k$ a constant not dependent on $x$. The documentation says the scalings are the linear combinations o...
I'm working with data of trips per tour, with tours as various trips that a person makes consecutively. I'm trying to model this with count models. My dependent variable is Number of trips per tour, and the independent variables are characteristics of the person who is making de tour (Age, Sex, etc.), or characteristic...
Thank you for such a great website for statistics learners, I am currently studying a factorial ANCOVA and have two questions: do we need to test homogeneity of regression slopes for an interaction effect? I feel that the answer is yes, but a bit doubting. What I mean is let's assume I have two independent variables, ...
I'm working with a dataset (my_dataset) that comprises six groups of individuals (Team_ID) with a dependent variable Score representing the group's performance score (ranging between 0 and 1). The dataset includes various individual-level characteristics such as demographic information, education, employment status, an...
I am trying to predict ambulance demand for the next hour, for a city area in the USA, based on previous demand, weather, large people gatherings, and similar spatio-temporal factors - using Machine Learning. I modelled the problem by binning time into 1-hour bins, as those short time horizon predictions should provide...
I am fitting a GAMM using mgcv. I have two variables, one a categorical 2-level variable difference, the other a continuous variable Learning_stage. I would like by participant random effects for difference, specificly random slopes and intercepts. A stackoverflow link had an answer saying that factor variables with bs...
Is it correct to measure the correlation coefficient between a continuous variable and a discrete variable? I visualized it and there is definitely no linear relationship the way I see it that is why I decided that it was not possible to calculate the correlation coefficient for it. These are the two variables I am wor...
I want to see if a treatment brings patients closer to controls using multiple dependent variables. Can I do kmeans and see if the controls are separate from the patients before treatment, but cluster together after treatment? Could I report this, or is the fact that the observations are not independent mean I can't us...
In the context of Statistical Process Control (SPC), control charts are used to monitor a process over time and detect shifts in the mean or variation. The traditional Shewhart $\bar{X}$ charts makes use of (rational) group means to monitor the process mean over time. However, one of the assumptions is that there is no...
While it's evident that fully connected layers, even with skip connections, form DAGs, the shared weights in convolutional layers introduce complexity. How does the unique structure of convolutional layers affect their representation as DAGs?
Let $n$ individuals in a statistical population be identified by $p.id \in \{1, 2, ..., n\}$ where the order is randomised. Assume, for simplicity, that all individuals are included in the sampling frame and could, in principal, be sampled. Also for simplicity, assume there is no complex survey design (no clustering or...
I collected stress data (cortisol reactivity) on 4 timepoints. I also collected psychological measures at 1 timepoint. I would like to know if the psychological measure (one measurement time point) is related to stress reactivity. I tried to calculate correlation coefficients between psychological measure and Cortisol ...
Considering a dataset where models do not converge to model random effects (e.g. boundary (singular) fit: see help('isSingular') in R), how confident can we be on the remaining coefficients? To give an example, consider the following code and results (example taken from here): library("afex") # examples data set with b...
In princomp of the R stats package, I noticed that the "scale" of the output varies based on whether the raw data or the covariance matrix is supplied. The scalings should be equivalent to the standard deviation of the variable, but I noticed that if the data itself is supplied, the population standard deviation (denom...
I've got a completely randomized block design with 4 treatments and 3 replications (blocks). I figured that a mixed model with repeated measures as random terms should be appropriate to analyse this design. We have measured each plot (4 treatments x 3 replications = 12 plots), using means of 3 animals per plot, 4 times...
Suppose we have independent random variables $X_i$, and we assert a parametric model of $X_i \sim f(\theta_i)$ that (given a sample of data {$x_i$} from one variable) has both an MLE function $\hat{\theta_i}(x_i)$ and a confidence interval formula for the MLE like $P(u(x_i) < \hat{\theta_i} < v(x_i)) = \gamma$. Without...
for an experiment, I was asked to provide a minimum required number of participants using an a-priori power analysis. Thing is, I'm now really confused on how this is possible or even if it makes sense. What I have: 2 Independent Variables with 8 levels each = 64 conditions Within-Subjects Design Every Condition is on...
I have two variables which represent attitudes towards slightly different sorts of people, though measured with the same scale. I also have a superordinate variable which is a certain psychological trait and which I'd like to correlate with the other two variables. The aim of my study is to verify empirically a certain...
I am working on a dataset for linear regression in R. After building the model (with the lm()function), I want to test my model on a new data point using the predict() function with a certain confidence interval. Is there a mechanism to verify whether predicting at this new data point is valid or not?
There is a test consisting of 6 questions and additional sub-Qs. The test was translated into another language and the questions were adapted, but the reliability of the test was never assessed. The test has an existing rubric and scoring, but only questions 2(a) and 2(c) were self-scored in the rubric as those items w...
Let's start with the Davis dataset from car package and fit a simple regression model data(Davis) mod.davis <- lm(weight ~ repwt, data = Davis) summary(mod.davis) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 5.3363 3.0369 1.757 0.0806 . repwt 0.9278 0.0453 20....
I'm looking into methods for estimating the parameters of a Kalman Filter, in particular the covariance matrices. I have seen it suggested a couple times (for example here) that the measurement covariance $\mathbf{R}$ can be approximated by computing the variance of measurement variables from a batch of sensor data. Ho...
Given exponential random variable X, the MLE for the scale parameter is $\hat{\beta_x} = \bar{x}$, and the confidence interval for that estimate is: $$\frac{2n\bar{x}}{\chi^2_{\frac{\alpha}{2},2n}} < \hat{\beta_x} < \frac{2n\bar{x}}{\chi^2_{1-\frac{\alpha}{2},2n}}$$ Given samples from two independent exponential variab...
A monopoly has just lost an anti-trust case with the government, and will soon be broken into two smaller, separate companies. The former owners, bitter about this outcome, withhold the organisation's team rosters, making it difficult for government officials to break apart the company along team lines. The officials d...
I came across the following test for statistical significance between two betas (predictors) from a multiple regression model. Note that $R^2$ is the model coefficient of determination, $r$ is the correlation between predictor 1 and predictor 2, and $df$ is the model residual degrees of freedom: Calculate determinant: ...
Hi I'm perplexed because I assume that a distribution with higher variance should have higher entropy scores, however this does not appear to be the case? Here is an example. # Set seed for reproducibility set.seed(0) # High Variance Probe: Uniform distribution high_variance_probe <- runif(1000, min = 0, max = 1) # L...
I'm wondering if we could use gls for unbalanced longitudinal data (in the sense that every group has different number of measurements and the measurement timepoints are also different). When I try to use corr=corSymm(form= ~ age|id) to specify the unstructured covariance in gls(),i.e.: gls(ht ~ baseage + age_normed, d...
I have two datasets of daily cash_inflows & network consumption (load) for past 4 years. Network load consumption is the single source of income. There will be some lag between load consumption & the corresponding cash_inflow. i.e. cash_inflow today will be from the load consumption during last month or quarter as cus...
My dependent variable is binary and am therefore using a logit regression but since the diagnostic tests to run for logit are different can I not just regress the variables with OLS and run the standard tests to check if is BLUE.
Hi I'm sorry if my question is a bit basic. But I need help with understanding classification with dimensionality reduction. Say I have a training matrix, X containing n $\times$ m. And m is a very large number. I apply PCA and truncate X to some k and I call this truncated, X as X$_{reduced}$ which reduces the number ...
How can I test the equality of coefficients from multiple regression models? I want to compare multiple measurement methods to see if they capture the dynamic processes of the same construct in similar ways; the hypothesis I intend to test is that the regression coefficients across models are equal because all measurem...
How to forecast revenue based on previous revenue and advertisement budget? This is how the data looks like, see full data on google sheet or even better on Colab notebook. EDIT: With my limited knowledge in Excel I know to forecast based on a single parameter (here: previous revenue), I want to forecast based on tw...
I am running a logistic mixed model in lme4. The model is as follows logme <- glmer(Correct ~ PE_Condition.ct*sumspq + (1|Pt_ID), family = binomial, data = test_CorrectPred.ct, control=glmerControl(optimizer="bobyqa")) I have one continuous predictor which is a questionnaire score (sumspq). I also have a cat...
I would like to know which model could be the best for the problem i have: I have data at baseline, at 3 months Follow-up, and data until 2 years of follow up. I have classified individuals as if they had an event or not after 3 months and before 2 years of follow-up. (0= no event, 1= event 1, 2 = event 2) I have some ...
I have a model to test 4 hypothesis (all data was collected on a 5-point likert scale through surveys): Ability (IV) has a positive relationship with PO fit (M) PO fit (M) has a negative relationship with uncertainty (DV). Ability (IV) has an inverse relationship with uncertainty (DV) PO fit (M) mediates relationsh...
Let$(X,Y)$ be an RV of the continous type with PDF $f(x,y)$.Let $Z=X+Y$,then the Convolution of probability distributions told us the PDF of $Z$ is $f_{Z}(z)=\int_{-\infty}^{\infty}f(x,z-x)dx$. If we suppose that $$f(x,y)= \left\{\begin{matrix} p(x,y)& (y\ge0) \wedge (x\le y)\\ 0& \text{otherwise}\\ \end{matrix}...
I am currently trying to build intuition for two-factor ANOVA by doing some simulation in Python, and some things are hard for me to parse. I have an ANOVA with 4 levels of one factor and 3 levels of the other one, which leaves us with 6 degrees of freedom for calculating the Mean Squared Distance of Interaction Effect...
In a survey, a complex sample was collected, and the sample was designed to provide estimates at national level. In other words, individuals from one state were more likely to be sampled due to stratification and clustering, leading to intentional oversampling of certain groups for better representation. The final data...
I'm curious about interpreting the coefficients of dummy variables within a Cox Proportional Hazards (PH) model. Consider a scenario where I have a sample comprising both male and female patients, and I aim to include a dummy variable to represent females. In linear models, interpreting such dummy variables is straight...
I have been reading about bootstrapping, and sampling distributions, and find it odd that people use these techniques to describe uncertainty. As I understand it, the sampling distribution shows uncertainty in the statistic measured on a sample by resampling the sample with replacement. So if you bootstrap your sample,...
The way I have seen kernel ridge regression introduced is as follows. Given data $(X,Y)$ you want to fit a function $f$ from a RKHS $\mathcal{H}$ to minimise some empirical loss $\sum_i L(f(x_i), y_i)$ plus a regularisation term $\lambda ||f||^2$, where $|| \cdot || $ is the norm associated with the RKHS. It then follo...