instruction
stringlengths
9
38.7k
All of the literature on synthetic control groups examines situations where 1 or more units receive a treatment and are compared to non-treated units. I am wondering if there is any statistical or mathematical reason why these techniques cant be applied to a situation where both treated and "control" units receive some...
I have three raster layers, two coarse resolution and one fine resolution. My goal is to extract GWR's coefficients (intercept and slope) and apply them to my fine resolution raster. I can do this easily when I perform simple linear regression. For example: library(terra) library(sp) ntl = rast("path/ntl.tif") # coars...
So, I'm running an EFA for a bifactor model. I've created models with different numbers of factors (between 2 and 13). After running an ANOVA, it's clear from the chi-square differences that the model must have at least 6 factors. It seems like a 10-factor model is a good fit (below RMSEA cutoff)... But I really like t...
I have a longitudinal dataset with continuous variables for 6 different time points nested within each ID. I prepared a longitudinal Poisson model with ID as a random effect for the intercepts, which in itself is working fine. In preparing the figures for the report, I prepared a figure with the predicted values for ea...
I'm creating a linear model for an ANOVA to look for main effects and interactions. When I flip around the order of the interaction term, I get different statistical outputs (see below). fat <- lm(percentpre~geno*transplant, data=subset(fat3w, phase=="avg" & transp.g=="0.8")) anova(fat) Response: percentpre ...
In a computational statistics book, I found an optimization method to find local minimum of a function. Let's assume that we have a differentiable function $f: \mathbb{R}^2 \longrightarrow \mathbb{R}$. We want to find a local minimum $f(\theta)$ of the function. Starting with initialization $\theta^{*}_i$, instead of u...
A little bit about myself: I don't have absolutely any background in statistics. (I only learnt it till grade 11th and after that my job is in such a field where I do not have to encounter statistics. However, since I have taken on added responsibilites, I have to perform data analysis for a project which requires grea...
Let's assume I want to compare two approaches to servicing some electric device. I have some performance indicator and I measure it over time, repeatedly. There are 10 measurements + baseline (before any procedure), but I want to compare the methods only at time t5, t8 and t10. That's what I can plan. Option 1 I can te...
I am using scikit learn's Bayesian ridge regression model and am training my model on log10(y), exponentiating (10 ** y_i) my predictions back to their original value, then calculating my error metrics to assess my model's performance. The error metrics I use are R^2 and MAE. I chose to do this because (1) I have a log...
For example if we have the encoder architecture as follows: (number of channels@ h_size x w_size) 1@28x28 | 32@14x14 | 64@7x7 | 128@4x4 | 256@2x2 | 512@1x1 Should the decoder architecture be such that we get the following: 512@1x1 | 256@2x2 | 128@4x4 | 64@7x7 | 32@14x14 | 1@28x28 Or, is it okay if it is like the follow...
My goal is to increase the F1 score of Class 1 by 1-2%. I achieved this by changing the threshold from 0.5 to X using the precision recall curve when the dataset is imbalanced. I did this after I have done with the parameter tuning (ie First, parameter tuning. Then, threshold tuning) However, my senior told me that I s...
Consider a population of individuals of varying values. Suppose that 3 individuals are drawn at random and with replacement from this population. Let X, Y , and Z be the values of the individuals drawn respectively. Consider the two derived variables $U = 2X+3Y$ and $V = 3X+2Y −3Z$. Obtain the correlation coefficient b...
Suppose there is a university that has data on different students. The university is trying to build a statistical model that will help them understand which "types of students" (e.g. males, low income, etc.) are at higher risk of dropping out of the university - based on the results of this model, the university would...
I am trying to do K-means clustering on my data which has time series length of 3700 and for (latitude,longitude) points of around 6000 in length. However, timeseries clustering using tslearn package even with joblib capabilities is painstaking slow. I m trying to cluster using dynamic time wrapping method. Can anyone ...
This is the emmeans output of my lmer() model. I want to report this in a written format. I have two groups, where each did a pre and posttest, as well as undergoing two different training methods. $emmeans Gruppe Session emmean SE df lower.CL upper.CL EF Pretest 2.29 0.204 23.0 1.86 2.71 IF ...
I want to compare the daily average revenue of a promotion period (7 days) of a business with the daily average of the rest of the year. So, sample 1 has 7 data points, whereas sample 2 has 300 data points (300 days). Sample 1 is a small sample and sample 2 is a right-skewed distribution because of seasonality. My goa...
I am reading "Methods of information geometry by Shun-ichi Amari" and I got the following doubt Let $X$ be a finite set and $P(X)=\{p:X\to\mathbb{R}/p(x)>0 \forall x\in X,\int p(x)dx=1\}$ which in turn is a subset of all all $\mathbb{R}$ valued function on $X$ denoted by $\mathbb{R}^X=\{A/A:X\to\mathbb{R}\}$ I have dou...
My NN (a few linear layers with ReLUs + batch normalization, no activation in the last layer) learns to approximate vector-valued labels $y_z$ from data $z\sim\rho_z$ in a supervised way, i.e. net$(z)=y'_z\approx y_z$. I was wondering if there exists any literature that investigates the distribution of the error in eac...
Assuming that $\epsilon \sim N(0, \sigma^2)$ I want to prove that the maximum likelihood estimator is equal to the least squares estimator. Now, I think I'm very close to making the proof, I just need some guidance. MLE approach: $y_i = \beta_0 + \beta X_i + \epsilon$ is the linear regression model, and we can get th...
I'm trying to find out a model that adequately describes effects of gender and length on food choice. For gender; 0=Male and 1=Female, length; 0=Subadult 1=Adult, Choice; F=Fish I=Invertebrates and O=Others. data3 <- data.frame( gender = c(0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1, 1, ...
Consider this problem in Montgomery's book: Two types of plastic are suitable for use by an electronics component manufacturer. The breaking strength of this plastic is important. It is known that $\sigma_1=\sigma_2=1$ psi. From a random sample of size $n_1=10$ and $n_2=12$, we obtain $\bar x_1=162.5$ and $\bar x_2=1...
For context, my company have outsourced a lifetime prediction to a big firm. The goal is to predict lifetimes of a categorical variable. The data includes customers from 2012 to 2022. I have the survival times. If the customer is still with us, they get censored in 2022 (today). There is only 1 categorical covariate wi...
I'm trying to use scipy.stats.beta.ppf(q, a, b), where q is referred to as quantile. I understand how beta works and its details, but I'm not able to make sense of q here (It is also called as lower tail probability). I mean, why lower tail probability here in this function ? What benefit does lower tail probability gi...
I'm trying to build a statistical model which could capture the dynamic influence of different factors over years, for example, customers who buy a specific brand over different years, and I'm trying to see how the impact of their income level and education level could change over years. We don't have specifically the ...
The root-mean-squared error(RMSE) values should be close to zero. Although the optimal value of RMSE is known as 0, we can say that it is low when RMSE =10 for the data set with high average (let’s say 300-1000 in average). However, in a data set with a low average (such as 5, 7 etc), the value 2 may be low. How can an...
I read an article published in 2020 which claimed that the South Korean population had declined "for the first time", the number of deaths (~300,000) outpacing births (~275,000). However, this would seem to be mathematically impossible because the birth rate has been below 2 in South Korea for decades (see chart below ...
I am trying to run a two-way ANCOVA on data from a multi-crossed design, looking at the effect of 4 treatments on the decay rates of 2 DNA target concentrations in moving water over time. Mesocosms were sampled at 8 time points after DNA additions. Is it even correct to run a two-way ANCOVA on this kind of data with "t...
Assume I have the following dataset: Race Id Athlete Id Athlete weight Athlete height Winner 1 1 50 180 0 1. 2 48 177 1 1. 3 52 182 0 2. 2 48 178 1 2. 1 48 178 0 2. 5 50 165 0 2. 7 52 188 0 We consider two races; the first race being ran by 3 athletes, while second by 4 athletes. Then, there is ...
I have heard that Kruskal-Wallis test with two groups is equivalent to the Wilcoxon rank sum test, but I can't figure out how to prove it. Could someone please help me prove that under the condition $k=2$ test statistics are equal?
Could you give me the demonstration with all algebraic steps of the relationship $$F=(R^2/(p-1))/((1-R^2)/(n-p))?$$
Hello stackexchange community! I am new to mixed-effects modelling (MEM) or mixed-models. In order to gain a better understanding of MEM, I decided to replicate two examples in R (lme4 package) from the textbook "Experimental Design and Analysis" by Dr. Howard J. Seltman. In the textbook, the author used SPSS to solve ...
I have modelled count data through the use of some covariates, using as link family the Poisson distribution. Then, I've predicted expected counts for an external dataset not used to train the model, but where the values of the covariates were available. In such a dataset I have also the observed counts. For this reaso...
I currently have a dataset and am trying to find the best multiple-linear regression model that answers my research question. The given dataset has 6 independent variables which I am going to be using for my predictors. However, I am having a little bit of trouble on whether or not my approach would be correct: I plan ...
If $X$ is a random variable from the uniform distribution on the interval $(\theta, 2\theta)$, how would one construct a 90% confidence interval for the method of moments estimator of $\theta$? The answer should be in the form: $$ \frac{\bar{x}}{a±\frac{b}{\sqrt{c*n}}} $$ Where $a,b,c$ are constants and $n$ is the numb...
I am asked to calculate the AUC-ROC for a classifier on a test set. Then I must take bootstrap samples of this test set and calculate their AUC-ROC. Lets say that I will perform $n$ bootstrap samples. Therefore I will compute $n$ AUC-ROC. What I can't get is the interpretation of the confidence interval. I am thinking ...
I want to train an anomaly detection model for intrusion and fraud detection. I have several features I know are correlated with sketchy behavior. However, those features are "directional" and anomalies should only be considered relevant if the feature value is high. For example, if velocity of transactions was a featu...
I have two variables, which is Tomato farmgate price and retail price. When I use VECM, both variables are endogenous. However, there can still be a response variable (ex. when you put the variable first in eviews VAR, it will be counted as the response). My concern is why is ECT significant in both cases where I use t...
Suppose I want to get a model, such as a neural network, to correctly classify pictures of cats and dogs and I know that the test set contains around $1\%$ of cats and $99\%$ of dogs. My intuition is that if I have very few training data, it would be better to use a training dataset that is highly unbalanced. This is b...
Sex DiabetesNOTPresent DiabetesYESPresent Female 50 55 Male 124 70 So I have this chi-squared test that I performed. My result was statistically significant. The data relates to heart failure in patients at a certain hospital. How would I interpret this? Please correct me if I'm wrong but... My finding i...
I am trying to derive the probability distribution of $Z=Z_1^2 + Z_2^2$. I am doing this in the following way, $$ \begin{align}p(Z=x) = &\int_0^x p(Z_1^2 = p)\times p(Z_2^2 = x-p) dp\\ \Leftrightarrow ~ &\int_0^x p(Z_1 = \pm\sqrt{p})\times p(Z_2 = \pm\sqrt{x-p})dp \\ \Leftrightarrow &\int_0^x [2p(Z_1 = \pm\sqrt{p})]\ti...
my regression is relatively simple. I have a dependent variable, age (A), and its values for 8 types of employees (T) for 6 years (Y). I run it in R and get some meaningful results, which show how A depends on T, controlling for the year. I can also see some changes over time. My problem is that I do not quite know how...
I have a very large dataset D (>100 million samples) with attribute/feature set F (<100 features). I need to create a sample set S such that the mean error between the feature averages of S (Fs) and some given array of target feature values (Ft) is minimized. We do not have any other information about the target data (...
What's the difference? Exogenous vs. Endogenous identifiers.
Say I have an exponential distribution with parameter lambda λ. Is there a way to generate 100-500 pre-computed values that when summed, have the same variance and mean as the exponential (and the same distribution). How can I: generate these values? prove that they fit an exponential distribution? One possible solut...
In Murphy(2007), equation (10) Why did the author ignore the term containing $s^2$.( Here, $s^2$ denotes the variance of the of the observed data). From the looks of it , it doesn't seem like the term is actually constant yet the author has dropped the term. Any help is appreciated
I have read some of the existing non-linear correlation analyses such are Maximal Information Coefficient (MIC) and Distance Correlation, both of them don't tell us about how the correlation is shaped (such as sinusoidal or polynomial). Is there any approach to know the shape of non-linear association between two varia...
I have a sample dataset of semi-finals of a swimming competition and there are multiple categories in which swimmers can participate. I want to do a hypothesis test (two-sample) on this to check if the result time differs in different categories. But in the sample there are some swimmers who participated in more than o...
I am trying to learn LSTM that is applied to sequential data. I am referring to following study material available here: https://its-ml.de/index.php/plattscaling/ Its given that: sequence_length = 50 batch_size = 200 epochs = 100 nb_features = 25 Can somebody please let me know what does Batch size and epoch signifies ...
I'm doing some exploratory data analysis in Genstat, and tried running correlations relating a number of variables to my variable of interest (VOI). First, I just ran a subset of the variables, and got one set of results. Then I ran all the variables at once, to produce a heatmap correlation plot for visualisation. I n...
Let's assume I want to use linear model for repeated observations. There may be gaps at some intermittent times or visits. When there is a gap in the mid of the study follow up, for example: ID T0 T1 T2 T3 1 OK OK -- OK 2 OK OK OK OK 3 OK -- -- -- 4 -- -- OK OK then how the ...
When using LightGBM in classification problems it is possible to use monotonic constraints. In binary classification problems the interpretation is straightforward: "The probability of class (say) A must be a monotonic function of feature X". But how does LightGBM implement monotonic constraints in a multiclass classif...
I am trying to understand if my reasoning is correct about these two methods. Faced with a situation where it is impossible to get both methods to fail to reject the null hypothesis, which should I trust or choose? For example, you have a vector of means from a sample. After production of another large sample, you want...
I am looking for the proper statistical terminology to express the fact that one estimation task maybe intrinsically harder to solve than another task. Intuitively, I would characterize this property by the discriminative performance that can be achieved by an optimal classifier trained on infinitely many training data...
From this example, I'm trying to fit a model with three different odds ratio by combining centers(1,2,4,7),(3,5,6) and 8. Would it be possible to fit the model with three different odds ratio?
My setting is, I want to simulate a data set in two conditions, e.g. control and disease. I want them to share mostly the same correlations except some should be different to simulate a "signal" between the two conditions. So I'm trying to simulate two correlation matrices (i.e. they have to be positive semidefinite, s...
I'm studying the Statistical Rethinking 2ed book and trying to write the codes to Stan (I'm using pystan). And stuck on how to write the model below in stan. This problem is described in the book page $172$ and $173$ - RCode $6.16$ Generating the data: # number of plants N = 100 # Initial simulation of heights h0 = np...
Consider the following unrestricted linear ECM: $$\Delta y_t=\mu+\beta_1 y_{t-1}+ \beta_2 x_{t-1} + \gamma \Delta x_t +\epsilon_t.$$ Now, suppose we have the estimated coefficients ($\widehat{\mu}, \widehat{\beta}_1, \widehat{\beta}_2, \widehat{\gamma}$) and their variances. The long-run coefficient for $x_t$ is define...
I have a number of individual F1 score samples and right now I am measuring the average F1 score across this group. However, I would also like to present a confidence interval on it. Its a continuous value between 0 and 1 but which formula should i use? I know each F1 score has its own confidence interval based on Wils...
This is a follow-up question to Test three-way correlation. I'm working on gaze data in triadic interaction. A sample of the data looks like this: df # A tibble: 9,860 × 3 Duration aoi_dur Gaze_alt <dbl> <int> <int> 1 1703 1039 0 2 1703 498 0 3 2010 310 0 4 ...
Suppose I have a probability density function $\pi(x_1, \ldots, x_n)$, which is the density of a vector-valued random variable $X$ in $\mathbb{R}^n$. Assume that $\pi$ is strongly log-concave, i.e., the function $E(x_1, \ldots, x_n) = - \log \pi(x_1, \ldots, x_n)$ is strongly convex. This implies that $\pi$ possesses a...
Let $(Y_i, X_i)_{1\leq i \leq n}$ be i.i.d. such that $Y_i = (Y_i^A, Y_i^B)' \in \mathbb{R}^2$ and $X_i = (X_i^A, X_i^B)' \in \mathbb{R}^2$. Suppose that $$ Y_i^A = X_i^A \beta_A + \epsilon_i^A, $$ $$ Y_i^B = X_i^B \beta_B + \epsilon_i^B $$ where $\epsilon_i = (\epsilon_i^A, \epsilon_i^B)'$ are i.i.d. with distribution...
I'm wondering if there's a clean way to quantitatively find the "baseline" of a data set, or more specifically, a threshold below which the majority of samples are clustered. For the example below, I have horizontal lines plotted for the outliers (upper inner fence), 99th percentile, and 99.9th percentile (red, purple,...
I am trying to understand what variance is, I already know the "official" definition "Variance is the average squared deviations from the mean" But I am trying to give it a visual entity. I get to this conclusion through this logic. Given this formula that represent variance : If an Xi is way far from the mean, then i...
I'm trying to model the risk of diabetic retinopathy as a function of time between screening appointments. The outcome is interval-censored because we only know that the event occurred between the previous screening $T_{1}$ and the next one $T_{2}$ . Each appointment is accompanied by a number of covariates (that can v...
This question is question 12 from Problems 10.3 from Rohatgi's An Introduction to Probability and Statistics. Of 25 income tax returns audited in a small town, 10 were from low and middle income families and 15 from high-income families. Two of the low-income families and four fo [sic] the high-income families were fo...
$\newcommand{\ol}[1]{\overline{#1}}\newcommand{\szdp}[1]{\!\left(#1\right)} \newcommand{\szdb}[1]{\!\left[#1\right]}$I am studying Design and Analysis of Experiments, 2nd Ed., by Dean, Voss, and Draguljic. In the context of a one-way ANOVA, Exercise 3.8 reads as follows: Problem Statement: For the model in the previous...
I am currently trying to run a linear regression model to identify the effect of several explanatory variables X on a response variable Y. My advisor asks me to scale the continuous explanatory & control variables by standardization or normalization. He anticipates that it will improve the regression results (no detail...
I am sorry if this question is confusing, but I am stats newbie!! I am trying to simulate a composite variable which takes values ranging from 0 to 40. The composite variable is made of the sum of 8 questions which could take values between 0 and 5. I am aware that I cannot use rnorm, since it will also give me negativ...
I am currently studying statistics and I have come across these terms about missing data mechanisms; MCAR, MAR and MNAR. I have a dataset with exactly one missing value and I can only think of that this missing value is MCAR. My thought is that is the following: It can't be MAR as we can not determine any pattern of mi...
Given a sample $X_1,...,X_N$. If $X_i \overset{idd}{\sim} F$ which will be the distribution of sample $Y_1, ..., Y_N$ where $Y_i=F(X_i)$ and why?
I am trying to solve the matrix completion problem with proximal gradient method: $$\min_{||X||_* \leq \theta} \frac{1}{2}\sum_{(i, j) \in \Omega} (X_{ij} - M_{ij})^2$$ or in terms of the projection operator: $$\min_{||X||_* \leq \theta} \frac{1}{2} ||P_\Omega(X) - P_\Omega(M)||_F^2$$ Now, I know how to solve $$\min_{\...
I'm trying to run a logistic LASSO regression using the HDM package in R (hdm::rlassologit), but because my dataset is very large with almost a billion observations, any attempt to build it into a matrix to feed into the function crashes the R session. I can successfully use glmnet to run a logistic LASSO with observat...
In my study, I want to investigate the influence of job skills on psychology. Job skill, as an exogenous latent variable, is composed of 3 categorical variables (V1, V2 and V3 here). Psychology, as an endogenous latent variable, is composed of 4 categorical variables (V4, V5 and V6 here). V1-V3 are nominal variables (1...
How can I calculate the probabilities of a negative binomial distribution given that I have the mean and variance (and also the set of random variables used) already available to me? I am looking to generate plots using these two parameters. Any python code or guidance on the approach would be hugely helpful.
I'm getting the warning In cor.smooth(R) : Matrix was not positive definite, smoothing was done, but what is it in this case? Can I get away with that? code: library(psych) ## note: Q11 and Q15 have reversed scales (thus, -1) psych::alpha(PBQuest, keys = c(1, 1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, 1, 1,...
I am exploring using GP to approximate the value functions in some dynamic programming problems. Since all my data points are generated by myself, I can always train the GP with a larger dataset. However, I found that after reaching a certain threshold, adding more data points is not helpful for me to reduce the RMSE o...
Based on the causal diagram below, where: Y1 is the outcome in the post-intervention period, Y0 is the pre-intervention outcome, X is a Yes/No healthcare intervention, and Z1 & Z2 represent various confounder variables (diagnoses, geography, etc.). Shouldn't Y0 be excluded from the counterfactual model estimating the...
I have a dataset describing age of wine in 3 classes of quality. > ages class age 1 class1 <10 2 class1 <10 3 class1 <10 4 class1 <10 5 class1 <10 6 class1 <10 7 class1 <10 8 class1 <10 9 class1 mid 10 class1 mid 11 class1 mid 12 class1 mid 13 class1 mid 14 class1 mid 15 class1 >60 16 class1 >60 17 class1 ...
I am comparing the predictive power of two regression models. RMSE gain is $13\%$ using a full model compared to reduced one on the test set. I do not want to compromise on model complexity hence wondering if $13\%$ is significant enough to use full model. Correction: RMSE for full model is $.13$ whereas for reduced on...
I am reading Elements of Statistical Learning, specifically section 5.2.2, an example on the South African Heart Disease dataset. The idea is to model the logit of the conditional probability of the output as linear in the basis representation. Specifically, we have $$\text{logit}(P(Y|X))=\theta_0+\sum_{i=1}^p h_i(X_i)...
I have been trying to figure out the difference between validation and test set used in the machine learning studies. In almost all places, I found that I have to split the dataset into three parts (ie. 50/20/20) ratio to obtain the training, validation, and test sets, respectively. However, I have a question that whet...
CUPED (Controlled-experiment Using Pre-Existing Data) is a variance reduction technique created by Microsoft in 2013 and widely used in technology companies. let Y is the target metrics and X is pretreatment covariate, T is treat variable(to simplify the discussion, we assume that there are only two treatment group, T ...
I am forecasting using VECM and I plan to do it on train and test split data. My data is 132 monthly observations. My VECM is lag 3 with unrestricted constant. All diagnostic test are passed. I plan to do test and train on my data with 70% 30% split. However, when I use this model on my train data, there is no cointegr...
I have the following random variables $X$ ann $Y$ following respectively $N(0,b)$ and $N(0,c)$ $Z=\dfrac{(X+a)}{Y}$ with $a$ a real number. What's the expectation of Z, i.e $E(Z)$ ? UPDATE : sorry for this missing element : in my case,$X$ and $Y$ are 2 joint Gaussian distributed with a correlation coefficient $\rho$.
I am wondering how padding affect transposed convolution, especially that a higher value for the padding makes the output smaller. In the formula the term is -2 * padding. So probably it is a substraction left and right, but how could I imagine it?
Given this Bayes net, how do I show that R and F are independent? Every "proof" I have attempted seems to involve the assumption that P(F) and P(R) are already independent.
I am trying to find a way to do a mediation analysis between a within-subjects IV and a DV. I have found the Baron and Kenny approach and path analysis, but I am guessing both apply for a between-subjects design. I have also found a paper discussing a within-subject mediation analysis using R, but I was wondering wheth...
Imagine, we have speed data of car and we would like to detect, if car speeds up or down more than it should. Do I want to just overfit my model, so the outlier (higher or lower speed) would lead me to higher residual easing the process of outlier detection? Edit: To clarify, training data have no outliers.
I am trying to make a stratified cox reg analysis in R studio, where I want to see the differences in exposure to MT divided by gender. I used the following code: coxph(formula = Surv(START_AGE, TIME, STATUS) ~ MT + strata(SEX), data = sample1) In the output, I only get HR for MT, but I want to see the effect of M...
I have a excel sheet with 100 independent variables and 1 dependent variable Now I would like to run stepwise regression using SPSS with it considering pairwise interaction between them to. As it may be difficult to create all interaction columns manually How to run a stepwise regression with interaction it considering...
According to page 33 of Targeted Learning: Causal Inference for Observational and Experimental Data written by Mark J. van der Laan, when the distribution of exogenous variable $U$ is such that, for each $s$, $A_s$ is independent of $L_d$, given $Pa(A_s)$, then the g-formula is given as $$P(L_d=l_d)=\prod_{r=1}^RP(L_r=...
Let's say I want to perform a logistic regression (binomial) as : X ~ P1 + P2 + P3 + P4 + P5 where X is binary variable (0 or 1) and P1, P2, P3, P4, P5 are proportion of cell type ( e.g. P1 = proportion of T-cells ; P2 = proportion of B-Cells, etc..). The sum of P1, P2, P3, P4 and P5 is 1 for each observation. Can I p...
I was looking for a way to convert the p-values returned by a hypothesis test. In the general scenario, we consider p < 0.05 to reject the null hypothesis and more than 0.05 to fail to reject it. But when it comes to communicating with the end user, it is very important to "somehow" translate such values into the range...
I am computing multiple comparisons of the mean of an unbalanced design using estimated marginal means. I would like to see the significance level of the differences between treatments for each genotype, for a confidence level of 95%, 99% and 99.9%. However, when I compute the following code: lm_height <- lm(heigh...
I have downloaded the grid world project form this link. I have executed the project multiple times using: python gridworld.py -k 20 -a q -r -0.2 -s 90 I have noticed that the reward of the terminal states are changing with time : The grid world at time t --> The grid world at some later time --> First of all, I am...
Looking at IMDb scores (dependent) and movie genres (independent), and coding genres to binary dummy variables (action yes=1, no action=0, drama yes=1, no drama=0, etc.). Dramas are highly popular movies with more movies than others listing drama as a genre. Drama p-value is significant with linear regression and ANOVA...
How can i do the parameter's estimation with nakagami distribution with fisher scoring ? i've problem with derive the log likelihood for the variabel of m.(i attach the picture with screenshot file)
I am calculating the absolute deviation from the mean of a strictly positive set $\{x_1, x_2, \ldots, x_n\}$ like: $$\left| x_i - \bar X\right|$$ My analysis makes it appropriate to work in logs because I care about (relative) percentage changes, like: $$\left| \ln(x_i) - \ln(\bar X)\right |.$$ The idea is to understan...
I know that a random variable $S_t$ with known statistics $E(S_t)$ and $V(S_t)$ comes from the truncation (sub-sampling) on the interval $[0, +\infty]$ of a random $normal$ variable $S$ with PDF $N_S$ of statistics $E(S)$ and $V(S)$. I don't know $E(S)$ and $V(S)$ and I want to retrieve them. I also know that the value...
I have the gender composition for thousands of boards (there is no sampling involved. The data set contains all boards). Boards are consisted of different number of male and female directors. So, to fix things, boards are clusters, and within each cluster there are two groups of male and female directors. What I want t...