instruction
stringlengths
9
38.7k
In R, I wrote the following lines of code - I need to "translate it" into a mathematical expression : random_effect <- plm(dvexptot ~ age + sex + educyr + inctot + hinotcov + workev + himcare, data = df_clean, model = "random", effect = "individual", index = c("id", "year")) In th...
For example, $\mathbb{P}(X = 1)$ rather than $P(X=1)$ And for example:
Say, we have a continuous random variable $X$ with pdf $f(x)$ and corresponding CDF $F(x)$. We are interested to get the pdf of $Y = \lfloor X + 1/2 \rfloor$. Is there any specific rule to obtain pdf of such random variable for more general case, e.g., $Y = \lfloor X + 1/n \rfloor$ or $Y = \lfloor X - 1/n \rfloor$. Any...
The problem I have is that I have several groups (say 3 to make discussion concrete) with observations from a true but known distribution $p^*_1, p^*_2, p^*_3$ (or 3 populations). I can compute some metric from the data form the groups, usually some sort of expectation (mean) [e.g. average loss, cost, accuracy, error, ...
Consider that we have a game that results in an ordinal leaderboard. Now, play $N$ rounds of that game, with different number of players. I want to know if a nominal attribute of the players has an effect on their ranks. Let's have a minimal example. We play just $N=5$ rounds of that game. Let our nominal attribute be ...
I have two groups (experimental and control) and a measure (an estimate of confidence) measured at baseline and at post-intervention. I have ran a multiple regression and found that the intervention condition (experimental or control) has a significant effect on baseline to post-intervention confidence. Based on some o...
Let's say I randomly sample pairs of numbers, $(A, B)$, each within a range of 0 to 10. In every pair, $B \ge A$. If I were to graph these points, they would fill only the half of the square that lies above the bottom-left to top-right diagonal. If these points are uniformly distributed in the space and I test the corr...
So I have a set of 1s and 0s. They are listed in a column on excel. They are listed in a specific order. I do not wish to change their order. So they appear as (1, 0, 1, 0, 0, 1 and so on... 0). Here is my question: is there anyway to use excel or even another computer program to import this specific set of data into i...
There are many different Pearson Chi-Square tests. The test statistics are always a sum of scaled and squared deviations. Some are written as a single sum, and some are written as a double sum (the elements of a double sum are usually displayed in a contingency table). I understand the derivation of the null distributi...
Given: $X \sim \mathcal{N}(\mu, \sigma^2)$ $Y|X=x \sim \mathcal{N}(0, (\theta x)^2)$ $Z = X + Y$ I want to be able to make hypothesis tests or confidence intervals for $\mu$ using $Z$ and known $\theta$ and $\sigma^2$. For example, I draw $z = 950$, and I have $\sigma^2 = 10000$ and $\theta = 0.10$. How would I esti...
In the era of the modern internet, many students, myself and my cohort all included, are exposed to answers to homework nearly as quickly as we are assigned it. Obviously this can be very detrimental. Through a peer I do homework with I was presented this solution which neither of us understands. The question is thus: ...
I have 3 questions about "Prioritized Experience Buffer" as described in the paper. what's the point of the importance sampling (IS)? I'll explain - I understand that: a. when we prioritize some samples, we change the distribution. b. by doing that, we change the excepted value and therefore the final solution the ag...
An epidemiology study used mixed-level modelling to investigate the effect of individual and household-level exposures on malaria infection (Bannister-Tyrrell M. et al. Importance of household-level risk factors in explaining micro-epidemiology of asymptomatic malaria infections in Ratanakiri Province, Cambodia. Sci Re...
On internet, I was reading about the point estimators. I am attaching the screenshot of the relevant portion. Suppose we have a sample $X_1,\;X_2,\;...,\;X_n$, then the point estimator is a function T:$X_1\times X_2\times ...\times X_n\to\mathbb R$ which is used to estimate the parametric function $g(\theta)$. In Exam...
I am approaching to regularization methods and I understood they are useful for simplifying complex models with a lot of variables. Now I have a doubt... In case I have a small dataset, with few variables (p), but also few observations (n), so that the number of p compared to n is still high (for example p=10 and n=30,...
I attended a "Lunch Seminar" hosted by the Engineering Faculty in my school where they showed how Time Series Models are being used in different Electrical Engineering projects. Some of the models that were being discussed were familiar to me - for example, ARIMA and ETS. One of the presenters kept mentioning that "ARI...
m trying to build Machine Learning Model for the classification of precious stones (like diamonds, sapphire, ruby) based on digital images. So with time the it was performed 150,000 gemstone certifications and the characteristics of each stone are recorded in a structured manner including its digital photo-image. I can...
I have implemented a Forwards-Backwards algorithm for discrete latents HMM given the observed distribution matrix $B$. Now if the observed distribution matrix is a Gaussian instead of finite probabilities from Categorical distribution, how do I modify the Forwards-Backwards to infer the latents? I know that $$ P(\math...
I am looking to run an ANCOVA with continuous outcome variable, looking at the effect of a categorical variable (race/ethnicity) and controlling for a binary covariate (treatment condition, values 0 or 1). So: Can ANCOVA be used with a binary (0, 1) covariate? It seems no based on what I'm reading, but I wanted to aff...
Within Statistics, I have seen the following applications of simulation: Bayesian Sampling: When the Posterior Distribution can not be analytically integrated, we use MCMC algorithms (e.g. Metropolis-Hastings) to "simulate" points from the Posterior Distribution Model Misspecification: Suppose I create a statistical m...
I am new to the world of Bayesian data analysis and I am trying to calculate the posterior probability with a given condition. I know how to calculate the posterior probability, but I am not sure how to do this when having a given condition. Suppose we have two globes: Earth and Mars. The Earth globe is 30% covered wit...
Given the infinity norm for image $x$ and its perturbed image $x\prime$ as in $R_{\infty}\left( x',x \right) =\lVert x-x' \rVert _{\infty}$, the adverserial attack: $$ attack: x^* \gets arg\max _{x^*:R\left( x,x' \right) \le \epsilon}\mathscr{L}\left(x\prime,y \right) $$ Then we will make a first-order assumption for t...
We have a between subjects design, testing for the impact of aesthetics on occupant satisfaction. Intervention is carpets vs no carpets. The people participating in each leg (intervention vs control) are two separate groups. However, due to constraints on the number of people we can accommodate on a given day, the stud...
Suppose there is an experimental design where the test participant is randomly assigned to 1 of 3 conditions (1 control, 1 treatment, 1 placebo). Each participant then completes 6 different measures of depression (so 6 dependent variables), e.g., 1) BDI, 2) CES-D, 3) EQ-5D, 4) HAM-D, 5) MADRS, & 6) SPSI-RTM. The analys...
I have a machine component whose life time is distributed as exponential with parameter $\lambda$ I switch on $n$ such components at time 0, then observe their performances during time $t$ and $t+z$ and see which one are still running during that time. I note binary variable for each such components with a random varia...
I estimate the following equation using OLS: $y_{t} = a + b*x_{t} + u_t$. I performed ADF tests for both y and x series and found that H0 (the existence of unit root) can not be rejected. I also performed ADF test for residuals $\hat{u}_t$ and got the same result. $R^2 > 0.9$ and t-stat for $\hat{b}$ is sufficiently gr...
Typical treatments of do-calculus and causal inference use discrete random variables. For example, the first rule of do-calculus in Pearl states: I'm curious about how the do-calculus and causal inference formulas would change if all variables were continuous random variables. Of course, (3.31) as written would always...
Say I have n random variables, {X0...Xn}, n>9. I also have another set of random variables constructed from the first set, where each of these are the sum of 9 random variables in the original set, i.e. {X0+X1...+X9, X0+X1...+X10, ...}. I can find a linear combination of random variables from the second set which sati...
Suppose there is a coin where the probability of success if 0.63. Let's say that I flip this coin 100 times and record the results (e.g. Mean, Standard Deviation and 95% Confidence Interval based on the Wald Interval). Below, I wrote some R code to generate some data for these coin tosses: # ACTUAL DATA (from a binomia...
For an iid sample of $n$ realizations of random variable $X$ with $\mathbb{E}\left[X\right] = \mu > 0$, let $\bar{X}_n$ denote its sample mean. Is there a distribution for $X$ such that $\mathbb{E}\left[\frac{1}{\bar{X}_n}\right] < \frac{1}{\mathbb{E}\left[\bar{X}_n\right]}$? Jensen's inequality shows that if the suppo...
Suppose I am trying to model women entering the field of computer science and would like to make a prediction about when the proportion of women in studying computer science in college will reach $.5$. I have data spanning back several years about the number of women and men entering college for each particular year, a...
$\textbf{This is a self-study problem that I am interested in knowing the correct answer.}$ $\textbf{However I do not trust my computations and I need help.}$ $Y$ is Uniform(0, 2); $Z$ is Uniform(1, 3); $C$ is $\min(Y,Z)$ and $D$ is $\max(Y,Z).$ Correlation between $C$ and $D?$ I start with the cdf of the min that $$P(...
In section 2.4 of the book Essential Statistical Inference by Boos and Stefanski, the authors discuss the idea conditional likelihoods and illustrate their usefulness by describing how they can be used to fix the Neyman-Scott problem. In a general setting, given a parameter $\theta^T = (\gamma^T, \eta^T)^T$, where $\ga...
I have a multi-class classification model that predicts probabilities of 4 classes with the following percent of True Positives per class 0.74, 0.86, 0.87, 0.91. I have predictions for 3 test cases: 1. (0.6, 0.1, 0.1, 0.2) 2. (0.01, 0.09, 0.5, 0.4) 3. (0.55, 0.25, 0.1, 0.1) Questions: Would it be correct to say th...
I have a question regarding equalities and conditioning probabilities. I was reading through this proof for conditional independence, which can be found here. In the proof, they first state that $p(A|B)=\frac{p(A\cap B)}{P(B)}$, which comes from the definition of conditional probability. This I understand. But, they th...
This is clearly not a novel question, however, I can't seem to find a answer in these forums but perhaps I haven't looked in the right places... I am interested to know what to do practically with data where some subjects have experienced the event of interest before observation time starts. I can only think to either ...
In an underdetermined linear regression where the parameters to estimate outnumber the observations, why is it the case the residual sum of squares, defined as: $$ RSS = \sum_{i=1}^n (y_i-\widehat{y}_i)^2 $$ equal zero?
When it comes to Bayesian Inference, we are interested in estimating the Posterior Distribution of some model parameter(s) based on the data we observe and some Prior Probability Distribution. After defining the form of the Posterior Distribution, we are usually interested in one of two things: MAP Estimator (https://...
Assume there are two possible categories, coded as $0$ and $1$. Define positive predictive value (PPV) to be the probability that an observation really is in category $1$ when it is predicted as being in category $1$. This is distinct from sensitivity or recall, which is the probability of predicting an observation to ...
I have a multi-class classification model that predicts the following probabilities for 4 classes in 3 test cases: 1. (0.6, 0.1, 0.1, 0.2) 2. (0.01, 0.09, 0.5, 0.4) 3. (0.55, 0.25, 0.1, 0.1) How to calculate 95% confidence interval for prediction of each class in every test case? Thanks!
In our lecture, our professor was telling us that "almost any question you might have can be answered using Bayesian Statistics". Our prof gave the following example: Suppose you have to take a math course next year with some professor, and you would like to know how nice or mean this professor is. You ask 5 students w...
A joint bivariate function (PDF) with variables $A,B$ is given in the function: $f_{A,B}(a,b) = Cab(a+b), \quad 0<a<1, \quad 0<b<1.$ where $C$ is just a constant. Assume that $Q=\min(A,B)$ and $R = \max(A,B).$ Compute Corr($Q,R),$ ie the correlation. From $f(a,b)= \int_0^1\int_0^1 Cab (a+b) dxdy = 1,$ $C = 18/5.$ so t...
Data is found by running data(PimaIndiansDiabetes) from the mlbench package. PimaIndiansDiabetes <- PimaIndiansDiabetes %>% na.omit() logmod4 <- glm(diabetes ~ pregnant + glucose + mass + pedigree, family="binomial", data=PimaIndiansDiabetes) # Extracting 1st & 3rd quantiles from PIMA dataset. BMI_1Q <- quantil...
Normally when training a VAE, we have an encoder and a decoder. The encoder maps the input to a series of values that represent the mean and variance of a distribution (the size of this output tensor is 2 * latent_size). After that, we sample from this (using the reparametrization trick) and the decoder uses these valu...
We know that point estimator is defined over a sample and is said to be unbiased if its expectation value is same as that of some parametric function $g(\theta)$ where $\theta$ is a parameter for the probability density function for the population which is unknown. Suppose we have a sample of size $n$, i.e., $\underlin...
I have read these two papers related to the neural network miscalibration problem: "On Calibration of Modern Neural Networks" and "Multivariate Confidence Calibration for Object Detection". In the second paper, the authors propose to use various estimations for the probability of neural network predictions instead its ...
I want to check if counts of bird territories in different cells are Poisson distributed. Due to the very small p-value produced by the below code, I have concluded they are not Poisson distributed. Is this conclusion correct? Are the expected values and degrees of freedom in the chi-squared test correct? (p.s. I know ...
Consider four events $A,B,C,D$. Assume that $$ \Pr(A \cap B \cap C)=\Pr(A\cap B \cap D) $$ Is it true that $$ \Pr(A \cap B \cap C^c)=\Pr(A\cap B \cap D^c) $$ where $C^c$ and $D^c$ are the complements of $C$ and $D$, respectively?
I am testing if there is a significant difference between microbes in different soil treatments and soil depth. I want to show the results in a table using post-hoc tests. If the interaction is significant, then a post-hoc test between treatments is inappropriate right? So I should just do a post-hoc test if the intera...
I am trying to undersand how to approach the development of a surrogate model to investigate the associated uncertainty when predicting late arrival times. I.e there is an, to me, agnostic and relatively complex model that makes predictions of arrival times. I am going to try to evaluate the associated uncertainty of t...
I would like to predict the probability of success (completion) of a task from a single point with some 95%CI. Every year I get monthly %task completion. If in May I have 70% completion I'm sure that the task will finish till Dec. Same, if in Nov I have 30% completion I won't expect completion till Dec. Since I get mon...
ML Models when deployed in the production environment, model degradation can arise where their output will change if the relationship between the incoming serving data and the predicted target drift apart. Please can someone briefly elaborate what strategies,framework and applications tools can be implement to automati...
When a predictor variable of one model needs to be adjusted for other measures before it is interpretable, is it better to fit a model for that predictor and then feed the residuals of that model into the outcome model? Or is it better to add the predictor-related measures into the outcome model? As an example, say I a...
I have dataset which looks like below - Categories Sample 1 Sample 2 .... Sample 9 Reference Proportion A 89 91 85 0.89 B 0 1 3 0.01 C 2 1 1 0.02 ... 6 8 7 0.06 I 1 2 1 0.005 I want to test relative composition of the categories with respect to the "reference proportion". I am thinking of combining...
this is a newbie question, so be tolerant. I have a dataset of people who bought products, and those products are under a "text" classification. I have Music, Games, Books, and so on as categories. What I like to do is to reclassify the product in a way where "Book" may be "Book -> war -> with alien", afaik this is som...
I am trying to understand the difference between a linear model with a categorical level variable and a linear mixed effects model wherein the slopes are held constant. In a mixed effects model, both the slopes and intercepts may vary across the fixed effect. However, we can also hold the slopes constant across levels ...
I have the following percentage data from multiple samples, and a corresponding reference percentage. Which test should I perform to test whether the percentage from the samples is different from the reference value. The data - Sample1 Sample2 ... Sample9 Reference 0.9 0.85 ... 0.91 0.88 Also for all the in...
This situation often arises when I'm running tests on healthcare data for my job. Taken individually, the hypothesis test $p$-values seem to show no statistically significant relationship between $X_1$, $X_2$, . . . , $X_k$ and $Y$. However, taken as a family of tests there is a clear relationship between $X_1$, $X_2$,...
I am currently doing data analysis for a study where I have 3 groups of very different sizes. First one is $n=22$, second $n=66$ and 3rd $n=167$. I have 2 dependent variables which are 2 different sleep scores. I have 7 independent variables. I am running multiple regressions for each group with all the IVs. Two of the...
For example, considering the Breast Cancer Wisconsin (Diagnostic) Data Set, and computing features correlations (after label-encoding the only categorical feature: diagnosis). corr = data.corr() # correlation between first 5 features corr.iloc[:, : 5].head() diagnosis radius_mean texture_mean peri...
We have developed a logistic regression model for predicting the attendance at an event for registrants. We can use this model to predict the probability of attendance at future events for new registrants (a new sample). One of the things of interest is predicting the total attendance at the event which we can do by su...
In a regression model with multiple predictors, the word "control" is used to refer to the inclusion of other variables than the one relevant to a specific question (e.g., the effect of alcohol consumption on ability to focus, while controlling for fatigue). Partial regression coefficients are defined as the isolated a...
I am leading with the following probability problem: "The percentage of fails in a subject is 60%. If we know that in a sample of 20 pupils at least 8 of them have failed the exam, which is the probability of having less than 15?" I have taken the probability of 0.6 and, given X="number of fails", thought of computing ...
I have a small dataset with 800 observations. In this dataset there are some variables (i.e. age, annual income) composed of several different entries. Due to that, I would like to create groups for a regression problem. After that, I will perform a multilinear regression and also a random forest regression The questio...
Given $X \sim Uni(0,1)$, and $Z = \mathbb{I} \{a < x < 1\}$, $Y = \mathbb{I} \{0 < x < b\}$ for the parameters $0 < a < b < 1$. And we know that $Y$ and $Z$ are dependent. So basically what I can understand from this, is that $Z = 1$ if $a < x < 1$, otherwise $Z = 0$. And the same for $Y$, as $Y = 1$ if $0 < x < b$, ot...
I have an analysis problem I'm trying to solve, but I think I have too limited of a stats vocabulary to describe it, so I'm struggling to find papers to read. I was hoping to explain it here and get some guidance on where I should be investigating (though more specific advice is more than welcome). Here it is: Let's sa...
Does the Von Mises distribution have a conjugate prior for its precision/variance? Update: The concentration parameter $\kappa$ (Kappa) seems to control the variance of the Von Mises distribution. If $\kappa = 0$, the distribution is uniform, and for $\kappa > 0$ the distribution becomes more concentrated around its me...
Since Bonferroni is intended as a (conservative) adjustment to reduce Type 1 error, I'm unclear why it would be required by the reviewer to adjust alpha in the power calculation (using G*power). While making such an adjustment would increase the sample size, this is not a solution to the Type 1 error potential. Can som...
I'm using the R fixest package to fit a negative binomial regression model with three fixed effect variables. The function I am using is fenebin(). I want to draw a plot with my predicted values and a confidence interval similarly to this post: https://fromthebottomoftheheap.net/2018/12/10/confidence-intervals-for-glms...
I want to obtain the pearson correlation of "experienced disfluency" and "narrative engagement" from the attached unstandardized coefficients for my meta-analysis. The paper is from Walter, N., Bilandzic, H., Schwarz, N., & Brooks, J. J. (2021). Metacognitive approach to narrative persuasion: The desirable and undesir...
I am doing time series forecasting with neural network (feedforward for now, but I will test also RNNs) and my problem is that, even though the network learned general patterns, it doesn't forecast well sudden peaks in the data. Example: Blue is real data and orange is forecasted. Data was standard scaled and RMSE was...
I'm trying to estimate a MIMIC model in lavaan. When I estimate it without intercepts, standard errors can be computed, but when I try it with intercepts, the standard errors cannot be computed. It shows this error message: 1: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, : lavaan WARNING: ...
Given a vector $Y$ for $N$ subjects and a matrix $X$ of $d$ variables for each of our $N$ subjects, we can compute matrix $M$, a $N$x$N$ random effects matrix for how similar each of our $N$ subjects are to each other, across our $d$ variables in $X$. For instance, via a correlation. I can then run a mixed effects mode...
I came across this interesting r/statistics post here: As of the time of writing (Feb 2023) the post is 5 years old, but it is disturbing and makes me thing twice about blindly using sklearn. The top voted comment points to an interesting email thread which led to the deprecation of a sklearn bootstrap method which as...
I am trying to simulate data to benchmark a multi-dimensional data method (referred to as a multi-omics approach) with a specific correlation structure and multiple confounding variables. For the first aspect I used a well-known algorithm to transform my data distributions called NORTA (Normal to Anything). Intuitively...
I am having trouble choosing the right statistical test for my data analysis. Every patient undergoes a stress condition and other five normal conditions. For each patient and for each condition I measure the blood flow velocity. The measures are thus repeated. Which statistic test should be used to compare the differe...
Question: Consider a regression model $Y=m(X)+\epsilon$ for which $\epsilon$ is neither independent of $x$ nor identically distributed. How would we go about generating prediction intervals in such a scenario? I’m specifically asking in a non-time series context, though if the method is equally applicable there – then ...
I have five independent variables and one dependent variable. If I apply the univariate analysis between each independent variable and dependent variable before running the multiple regression, do I need to adjust the p-values? In the medical field, we prefer to evaluate the relationship between each explanatory variab...
Suppose I fit a Survival Cox-PH Regression Model in R and get the following results: Call: coxph(formula = Surv(time, status) ~ age + sex + ph.ecog, data = lung) coef exp(coef) se(coef) z p age 0.011067 1.011128 0.009267 1.194 0.232416 sex -0.552612 0.575445 0.167739 -3.294 0.00...
Suppose that I have a linear model of $p$ parameters ($f(p,x)$) that I want to fit to my dataset using least squares. According to Wolberg (2006), the prediction error in $\hat{y}$ can be calculated from the covariance matrix of the fit, $C$, using: $$ \sigma_{f}^{2} = \sum_{j=0}^{j=n} \sum_{k=0}^{k=n} \frac{\partial{f...
Imagine someone who knows Bayesian statistics but has never heard of null hypothesis significance testing. How would one best explain NHST by using Bayesian analogies? Searching through the archives I found a nice answer to a related question, which led me to the idea to describe NHST as something like a posterior pred...
Let $X$ and $Y$ be continuous random variables and $Z = f(X,Y)$ for some function $f$. Additionally, let $g(\cdot)$ be a different function of $X$ and $Y$. Is the following true? $$ E_Z[g(X,Y)] = E_{XY}[g(X,Y)] $$ or equivalently, if $\mathcal X, \mathcal Y,$ and $\mathcal Z$ are the ranges of $X,Y,$ and $Z$ respective...
I am puzzled by the following statement in my lecture notes AIC penalty smaller than BIC; increased chance of overfitting BIC penalty bigger than AIC; increased chance of underfitting Is there a typo?
I have the results of an exam for 21 students. The exam has 144 correct/incorrect questions with three equal Sections (48). I want to confirm if the difference in the correct/incorrect answers for each Section is different than the overall correct/incorrect. For example, Student A had an overall mark of 70% (101/144): ...
I am currently working with regression analysis in combination with language analysis on online reviews. I would like to give you a short description of my task and what I want to achieve with it, in order to maybe find a proper solution. I wanted to find possible correlations with the helpfulness score given by the us...
Problem: Currently, I have 15 classification models(multi-class + binary). Training and Maintaining 15 models take a huge time and cost. Also, I need to inference 15 models for every input. So I thought I could build one multi-label classification problem instead of having 15 models. Am I right about the approach or ca...
Def. Exponential Class of Densities The density function $f\left ( \mathbf{x};\mathbf{\Theta} \right )$ is a member of the exponential class of density functions iff $$f\left ( \mathbf{x};\mathbf{\Theta} \right )=\begin{cases} \exp\left [ \sum_{i=1}^{k}c_{i}(\mathbf{\Theta})g_{i}(\mathbf{x})+d(\mathbf{\Theta})+z(\math...
Let's say I have a set of points (possibly noisy) in an N-dimensional space that represent an arbitrary number of curved segments, each segment having an arbitrary type of curve. See the 2D sample below, borrowed from this question: To a human being, this curve obviously consists of 3 distinct segments: a sine wave, a...
I learned the two concepts separately and I try to find out how these concepts relate to each other. To illustrate the question introduce three models. The models establish a relation between age (AGE) and income (INC). LNINC is the logged version of INC. The goal is to find out whether we should include INC or LNINC i...
I am conducting a study in which I analyse the time to opt out after the free trial is ending. I have individuals who sign up for a free membership-trial period. At some point the period is ending and the hazard rate increases one month before that period, I can tell from the data. It is low before that. Therefore, I h...
** Edited to reflect on some first comments ** I am trying to estimate a state space model which does a kind of disaggregation. In particular, I am interested in estimating high-frequency unobserved states from low frequency observations. For example, disaggregate annual observable to quarterly equivalents, or quarterl...
I have 80 independent sets of genes with 6000 genes in each. Gene expression values are ranked and scaled from 0 to 1. So, a set looks like this: Gene1 1 Gene2 0.98 Gene3 0.85 ... Gene5998 0.002 Gene5999 0.0015 Gene6000 0.00001 Each set has 6000 of the same genes, but of course, the expression values are different in e...
i want to calculate the exponential moving average with the following formula EMAt = valt * α + EMAt - 1 * (1 - α) but i don't have all the data, i only have some data with a big gap in time. while there are timestamps. for example timestamps=[43439, 43628, 43753, 43974, 44136] for data=[5, 4, 4, 5, 5] i used default v...
I am currently learning about how to estimate the predictive accuracy of (bayesian) models. See here: https://bebi103b.github.io/lessons/18/model_comparison.html#id4 I need help regarding the last step of the derivation. How do we get the sum of integrals from the integral of sums?
Within a scatterplot of two continuous variables. I am looking for a statistical method to determine if a 3rd variable that has a limited number of categories/groups (3-8) is able to produce visually well-defined segments within the original scatter plot. The following scatterplot would be a example of a good segmentat...
I'm working on the implementation of a "new version" of an existing instrument in the posture analysis. I know that if I want to compare the measures between the old one and the new one I can use Bland-Altman plot, but what I'm trying to do is assess the reliability of this instrument by comparing the measures collecte...
I am using Cox proportional-hazards model to study which of my activity variants make people bored of the website all together. My data consists of few hundred rows. Each row contains the following rows user_id, survival_time, censoring_stats, times_used_variant_A, times_used_variant_B, times_used_variant_C. The way I ...
Let $x_0 \sim N(\mu_{x_0},\Sigma_{x_0})$, where $\mu_{x_0} \in \mathbb R^n$ and $\Sigma_{x_0} \in \mathbb R^{n \times n}$. Then, let $$ y_0 = Cx_0 + v_0 $$ where $C \in \mathbb R^{n \times n}, v_0 \sim N(0,\Sigma_{v_0})$, and $\Sigma_{v_0} \in \mathbb R^{n \times n}$. Suppose that $x_0$ and $v_0$ are independent, such ...
I have a binary response variable (presence/absence) and four independent variables (min.temp, max.temp, precipitation and elevation. My scatter matrix is showing collinearity between 3 of the variables with cor.efficients of 0.73, 0.74, 0.84. ELevation however doesn't seem correlated with the rest. I therefore thought...
I have a formula to calculate each team's win probability based on their win rates and home court advantage. So lets say I use it to determine that team A has 45% chance to win and team B has 55% chance to win the game before it starts. I have another model which calculates the mid-game win probability of two equal (.5...