instruction
stringlengths
9
38.7k
There is a dataset, where each Y depends on separate table : Each table consists of the same set of columns, but the number of rows may vary. Features in tables are both numerical and categorical (both nominal and ordinal). Numerical features may have a heavy-tailed distributions. I need to build a regression model, w...
I have a binary predictor group = c("negative", "positive") and this model syntax: outcome ~ 0 + group + (1|subject) + (1|stimulus). In the summary, I receive point estimates for both group means, which is what I want. Now, I want to have a Cohen's d effect size for how much each of both groups differs from zero. I fou...
I have an experiment where I predict that the two levels of my Cond variable (effect coded as -1 and 1) will have different trends over time on my EDA_cs outcome variable (skin conductance). Specifically, I expect my -1 to be s-shaped (cubic) and my 1 to be u-shaped (quadratic). I am testing this with the following mix...
I have a daily time series dataset, and I'm using Facebook Prophet for daily-level predictions. Frequently, my actual data experiences sudden spikes due to external events. What I want to achieve is to capture the sharp increase in the very short term and then gradually return to a more typical level in the short to me...
I am new to Bayesian Statistics but from my basic knowledge, I feel there may be real practical benefit in using it at work. My role is to find process improvements during fabrication to improve batch yield. An example scenario would be that I have a baseline dataset of 10000 batch yields and a second smaller experimen...
I am trying to calculate the following probability distribution: $Max(X_1, X_2,..., X_n) - \frac{1}{n} \sum _{i=1} ^{n} {X_i}$. $X_i$ are iid random variables whose pmf is $\frac{C_{i-1}}{2^{2i-1}}$, where $C_i$ are Catalan numbers. However, I am also interested in the general problem regardless of the specific distrib...
My goal is to create a regression model with text data where encoded text predicts a value, (news headlines, or article summaries, predicting number of clicks). The y is very left-skewed (few articles having very many clicks and most articles having few clicks). My models so far are not able to predict anything and I'm...
I am having a tough time as a newbie understanding the drop argument in OneHotEncoder. Does it drop the column with the non-numerical values of the categorical variables after it is done? I am looking at the documentation and I don't get how we end up with a 2 x 3 array at the end. >>> enc = OneHotEncoder(handle_unknow...
If $X$ is n-dimensional standard Gaussian, is there an analytic expression for the differential entropy of the $\ell^p$ norm of $X$? For the case $p=2$, the $\ell^2$ norm is exactly the chi distribution and the entropy of the chi distribution is known. For the case $p=1$, the method here can be used to derive an analyt...
I know that not all weakly consistent estimators exhibit MSE-consistency : https://stats.stackexchange.com/a/610835/397467. Anyway, does increasing the sample size leads to a reduction in their mean squared error ? Specifically, I am trying to find a formal mathematical argument to explain why models such as Logistic R...
Currently I'm learning about MCMC techniques. . Exercise A researcher wants to sample $\theta$ from a discrete distribution with density function $$ f(\theta)= \begin{cases}p=1 / 6 & \theta=0 |\\ p=1 / 2 & \theta=1 |\\ p= 1 / 3 & \theta=2\end{cases} $$ He is only able to sample from the discrete distribution $$ g(\thet...
I have been reading Pattern Recognition and Machine Learning by Bishop, and I have a question regarding the prior distribution of an iid Gaussian with known variance. The relationship $\dfrac{n}{\sigma^2} + \dfrac{1}{\sigma^2_0} = \dfrac{1}{\sigma^2_n}$ is derived in the text. The derivation stems from the fact that yo...
I implemented a Variational Autoencoder (VAE) in PyTorch for motion sequence generation using human pose data (joint angles and angular velocities in radians) from the CMU dataset. The VAE architecture consists of an encoder and a decoder, each with two layers, comprised of a Conv1D layer and an ReLu activation for eac...
Consider the family of all continuous distributions with finite $r$-th moment (where $r \geq 1$ is a given integer). We denote this family as, $$\mathscr{P}_r=\left\{f:f \ \text{is a pdf and} \int|x|^rf(x)\,dx<\infty\right\}.$$ Suppose $X_1, X_2, \ldots, X_n$ is a random sample from this family. Find a complete statist...
I used propensity score matching in one of my studies to reduce the effects of confounding. Although some authors have suggested that methods of inference appropriate for independent samples can be used for assessing the statistical significance of treatment effects when using propensity-score matching, others recommen...
I would like to investigate whether social economic status (SES) would be associated with the age of onset of mental illness, after controlling some possible confounders, in the cohort of patients with mental illness. No censoring data were included as all the data were from mental illness cohort (all patients have age...
I'm working on a project that provides an anonymized dataset to a service. Clients of this service will often use our data to make inferences to the population it's drawn from. Our data is known to be biased with respect to certain categorical variables that (for privacy reasons) can't be included in it. The mismatch b...
I am trying to test if there is an effect on number of individuals depending on the proportion of a certain land use type and its management. But I don't find a model with a good fit. There seems to be zero-inflation and I have tried to fit a zero-inflated model, but any way I try, the zero inflation test still tells m...
I have access to a population of around 5 million people. I also have access to multiple social and demographic variables (age, gender, level of education...). I randomly sampled 10,000 people from that population. I randomly divided this sample in 2 equal groups of 5,000 people. I sent a survey to one of those 2 group...
The time series model in pycaret offers a lot of methods, some of which have w/Cond Deseascnalize & Detrending. Why exactly does it mean? Models like ARIMA does not have it. Exponential Smoothing ETS ARIMA Auto ARIMA Passive Aggressive Wi’ Cond. Deseasonalize & Detrending Theta Forecaster Huber Cond, Deseasonalize &...
I have a list of items. Each item has some properties associated with them. For example, let's consider country. Let's say out of 100 entries, 98 are from US and 2 are from UK. When considering the number of countries that the list includes, saying it's 2 is not useful in my case as most of the entries are from single ...
We are submitting a paper documenting new statistical model. We have a matrix Fi,t and a vector Fi, defined like this: Thus, the vector Fi contains row sums of matrix Fi,t. Since the definition of Fi is basically a definition of Fi,t without the recapture at time t, we thought it is nice to use the same letter for bot...
I collected species richness data along permanent transects over the course of 3 months. So observations were made at the exact same location, where each transect was sampled once a day for 12 days over the course of 3 months. I am trying to determine what dependency structure I need when constructing a GAMM. My model ...
I am currently working on the topic of instance segmentation. So far I have found three possibilities for categorising the architectures: one-stage / two-stage architectures proposal based / proposal free architectures detection followed by segmentation / labelling pixels followed by clustering Can anyone tell me the...
I'm trying to interpret results from my logistic regression. I normalized the values between 0 and 100 because I had many variables with different units. My intercept is -0.741 and I'm using that to calculate probability P0 For the variable investment cost, I calculated the unit change as function of the max and min or...
The famous paper [1] compares the power of several normality tests. Regardless of its result, my immediate question is, "How is that even possible?" Well, the definition of power in this case is the probability of rejecting the null hypothesis H_0: the underlying distribution is a singly variated normal distribution ...
In this problem we consider a sensitive dataset $x \in \{−1, 1\}^n$. We consider the bounded setting where neighboring n-dimensional datasets differ in one coordinate. $A$ mechanism is available that supports statistical queries on x. Specifically, for a query $q \in \{−1, 1\}^n$ the mechanism computes the dot product...
It seems to be that the minimum number of observations needed to calculate variance is 2. I can see the logic behind this because by logic, there can not be variance for a single point. But on the other hands, I don't think 2 points are really enough to calculate variance in general. This is because you need to observe...
I am completing exercises in the book Mathematical Statistics: Basic Ideas and Selected Topics regarding proving or disproving that a model is identifiable. The problem I am struggling with considers $X_1, \ldots, X_n$ where $X_i \sim \text{N}(\alpha_i + \mu, \sigma^2)$. I am attempting to prove that the parametrizatio...
I have a group of approximately 130 participants. I am interested in evaluating the amount of food they consume per month. I have two different measures for evaluating them, mass and volume. I have split the participants into three tiers using the 1st and 3rd quartile each month. In the end I have two sets of data. Eac...
I have a subset of a data as below: I would like to compare two groups (1/0) for 6 categories for using a medication Every week they could choose more than one option for each question. The number of responses for each response option during the full study period and test differences between group (1) and group (0). Th...
The elbow method calls for setting the number of nearest neighbors (let's call it $k$) to the minimum number of points for a cluster (let's call it $m$), but what do you do when $m\leftarrow1$? Is the elbow method still usable in this situation, and if so, how do you determine $k$ since setting $k$ equal to one results...
I am currently working on a report about the frequency of hand types in Texas Hold'em and whether or not the frequencies change when there are multiple players involved. For example, is there a change to the frequency of straights when there are five players compared to when there is one player? With each player having...
I'm trying to prove a common result for the Poisson process but I'm stuck. Given $T_i$ are i.i.d. $Exp(\lambda)$ random variables (where $\lambda$ is the rate) that represent the duration of arrival events and $N(t) = \textrm{max} \{ n: \sum_{i=1}^{n}T_i \leq t \}$ is the number of said events within the interval $[0,...
Hi I have a difference in difference framework with multiple pre-periods and post-periods. I get the coefficient of Treatment * Post from the DiD regression. Is this coefficient an annual effect? ( My data is at the level of Individual-Year) If so, why?
I have a linear system with uncorrelated, heteroscedastic noise, $Y \propto \mathcal{N}(Xβ,Σ)$ where $Σ$ is a diagonal matrix with elements $σ_{ii}^2$. The MLE is given by weighted least squares (WLS) with weights $W = Σ^{-1}$, $\hat{β} = (X'WX)^{−1}X′WY$ with estimator variance $(\hat{β})=(X'WX)^{−1}$ Suppose I only h...
Say I want to compare two order statistics (say the 2nd largest value or min value) of two samples. Let's not make any distributional assumptions except that the variance is finite? Is something like the Mann-Whitney U test adaptable here? A permutation test or bootstrap hypothesis test seem like it would be strange gi...
I am running a two-stage regression model, where the first model is a log-linear model he outcome is log(y) = Intercept + 1 * x + Error. I then calculate the residuals for each observation of x. The second-stage regression model is each residual for the ith observation: residual(yi) = Intercept + 1 * x + Error For the ...
I have simulated the moving and clustering of actors through Netlogo. I colour actors with a score higher than 60 as red, lower than 40 as green, and others as blue. Now I need a measurement of the level of clustering of the chart that describes whether the green actors are scattered or clustered, and how well they ar...
I'm analyzing microbiome data un R, and for beta diversity i got aitchison distance, unifrac (weighted and unweighted) and Bray Curtis. Then i usted Adonis test (from vegan) Note: i'm looking for differences in gut microbiota composition from 14 insect species. From Adonis test, p-value Is 0.001 afther 999 permitations...
I understand the intuition that the sum of linear functions is again linear, and that is why a neural network with linear activation functions yields a linear model. But what I'm confused about is that lets say we have two neurons outputting $w_1^{[1]}x+b_1$ and $w_2^{[1]}x+b_1$, with just an identity activation functi...
I recently conducted a survey asking users about their music listening habits at different times of day. Here are the results from 6am in the morning: Taking a weighted average, 32.14% seems quite high. The Median doesn't work well with only having 6 choices. Would it be appropriate to use a Geometric mean for a distr...
Two researchers are tasked to independently collect a same set of data ($N$ observations) from a same set of subjects. For simplicity, let us assume they observe only one variable. After comparing their data, we notice a mismatch in $K$ observations. Obviously, at least $K$ values are wrong, though we don't know which ...
I perform a synthetic calculation and then an inversion, that is, I have actual value in the synthetic calculation and I estimate it in the inverse problem stage. The inverse problem gives me the estimation of the actual value and its standard deviation. However, the estimated value plus the standard deviation is less ...
Consider you have an optimization problem where your are given: Dataset $(\mathbf{x}, \mathbf{y})$ $\mathbf{x}$ is perfectly known $\mathbf{y} = \mathbf{y}_{\text{true}} + \mathbf{n}$ with $n_i \sim \mathcal{N}\left(0,\sigma^2\right) $ Variance $\sigma^2$ is known and noise is IID $\mathbf{y}$ depends nonlinearly on...
I want to define the dimensionality of a group as the number of PC features that can explain 80% of the variance in the group dataset. This intuition seems to work for a single group, however, if I want to compare the dimensionality of two groups using the same idea, how do I mitigate the problem of different numbers o...
First my assumption was that ARMA models take only the autocorrelation of the time series into consideration but not of the error terms (wrong!). But this assumption is wrong! As the within ARMA models the autocorrelation of the implicit error terms (approx trough the residuals) disappear. An ARMA model with autocorrel...
I'm doing a simple regression task using a neural network with two inputs (x1 and x2) and one output (y). I want to add an additional term to my loss function such that when x1=0 we always get y=x2. How would I formulate an additional term to account for this?
I've often looked at count data models over the years. And like a lot of statistical models, they can be used/abused in cookbook style. Identify equidispersion -> do X model (Poisson). Identify overdispersion -> do Y model (some modified Poisson or alternative spec). However, when I read textbooks on count data model...
Is it true that in probability theory the third central moment of a sum of two independent random variables is equal to the sum of the third central moments of the two separate variables?
Suppose $x \sim F(x; s)$ where $s\in\{n, p\}$. Then let $F(x; n) \leq F(x; p) \forall x$. Can this be be a valid PDF? It seems that other than the case where $F(x;n)=F(x;p)$ it is not possible. Letting $\int^\infty_{-\infty} F(x;p)dx = 1 $, then allowing $F(x; n) < F(x; p) \exists x$. Would this not imply: $ \int^\inft...
How would you find the probability of the following: $$\frac{c+\sum_{i=1}^na_iZ_i - \sum_{i=1}^ma'_iW_i}{\sqrt{\sum_{i=1}^nZ_i^2}}>\frac{d+\sum_{i=2}^{n+1}b_iZ_i - \sum_{i=1}^{m}b'_iW_i-b'_{m+1}Z_1}{\sqrt{\sum_{i=2}^{n+1}Z_i^2}}$$ where $Z_i \sim N(0,\sigma^2)$ for $1 \leq i \leq n+1$, $W_i \sim N(0,\sigma'^2)$. I tr...
Sorry if my question is a little silly. I did an experiment about the effect of a drug, so I designed an experiment with two groups: the control group(without any intervention) and the experimental group (which subjects received the drug). Each group has aprox. the same number of samples. The subjects in the experiment...
I have no math background and am in way over my head trying to figure out the correct notation for my model: a multilevel random-slopes gamma regression with log link and AR(1) autocorrelated residuals. There is one predictor $x$ measured several times per individual, separated into within- and between-person component...
I have data of individuals giving scores with millions of observations on thousands of products. The individual scores are ordered at the product level, representing a sequence starting from 1 to the maximum number of scores that product received. By now I aggregate products by the first n scores they receive, creating...
In my current research, I am working with a comprehensive dataset that captures human mobility patterns across different locations. My specific focus is on quantifying the similarity between these distributions, using a feature called "median dwell time," which represents the median duration individuals spend in variou...
In reading about quasibinomial regression: The quasi-binomial distribution, while similar to the binomial distribution, has an extra parameter (limited to ||≤min{/,(1−)/} ) that attempts to describe additional variance in the data that cannot be explained by a Binomial distribution alone. What is quasi-binomial dist...
I have a dataset of many variables of varying data types (binary, categorical, ordinal, continuous), and I want to find the correlations between them. I encoded the binary as (0,1) and one-hot encoded the categorical variables. I thought that I could simply use a Kendall's tau correlation matrix because of the differen...
When I view a histogram of my weights it is very much centred at 0, with the overwhelming majority being very small. I want to ensure I do not have a vanishing gradient problem. I must preface this by saying that my target data is normalised to [0,1] & my input data is standardised. With ReLU I understand that weights...
I differentiated cdf to find pdf and then integrated it, but the result is not 1. What’s wrong with my calculation? CDF $$F(x)=\begin{cases} 0&x<1\\ \dfrac{x^2-2x+2}{2}&1\le x<2\\ 1&x\ge2 \end{cases}$$ PDF $$f(x)=\begin{cases}0&x<1\\ x-1&1\le x<2\\0&x\ge 2\end{cases}$$ However, \begin{align*} \int_{-\infty}^{+\infty}f(...
The experiment goes like, there are two different machines, Machine_A and Machine_B and a Technician. The machines have the same purpose which is for measuring a continuous quantity (be it weight, temperature, or anything) and the Technician is supposed to be like the one with the correct measurements. The researcher w...
Background. I am using multiple imputation using the "mice" package in R (https://cran.r-project.org/web/packages/mice/mice.pdf) to handle missing data in a large public dataset I am analyzing. I have been following this tutorial, which has been incredibly helpful: https://library.virginia.edu/data/articles/getting-sta...
Let's say I'm trying to cluster observations based on five features, including: n_emps: Number of employees n_cust: Number of customers If I were to declare cust_per_emp by dividing n_cust by n_emps to account for the average number of customers per employee, would it make sense to keep all five features plus the new...
I have always taken $\text{“}R^2\text{”}$ to mean the proportion of a sum of squares explained by a model. The context in which this idea is first encountered is when one explains part of the total corrected sum of squares $\sum_i (y_i-\overline y)^2$ by fitting a straight line $\widehat y = \widehat \alpha + \widehat...
I have been beating my head against this wall: There is this optimization problem for SVM (photo taken from Andrew Ng's lecture notes) What I did not get is how, by using a quadratic solver for example or even just as a phenomenon, the "b" value gets set initially. We are optimizing in respect to both w and b, so the ...
I'm trying to use non-parametric bootstrapping to compare mean values in a 2 (between) by 4 (within) experimental design. I cannot use mixed ANOVA because the sample values are not normally distributed. I basically need to get a probability value of obtaining the measured means under the null hypothesis to test for two...
I understand an estimator is a "rule" (e.g., a function, say $g$) that produces an estimate ($\hat\theta$) of an estimand (say, a population parameter, $\theta$). My question: is it technically correct to say "bias of the estimate" and "bias of the standard error of the estimate", or should we instead be saying "bias o...
As the question says, what is the distribution of the estimate of residual variance in a standard gaussian linear regression? I'm confused because I know in theory the observed $y$ subtract the predicted $y$ should be normal, so the sum of these squared should be chi squared. In practice though, say we want to calcul...
Suppose we are using an Ordinary Least Squares (OLS) estimator of $\alpha_{0}$ and $\alpha_{1}$ for the simple linear regression below: $$ H_{i} = \alpha_{0} + \alpha_{1}X_{i} + \epsilon_{i} $$ How does one show that the goodness-of-fit measure, $R^{2}$ will equal to the square of the correlation coefficient of $H_{i}$...
I am relatively new to statistics and I am conducting some statistical analyses on a dataset. My dataset has two categorical, independent variables A and B. A has 7 potential values and B has 18 potential values. I also have a dependent variable, C. I want to see how C is affected when the values of A and B are changed...
Every definition of consistency I see mentions something convergence in probability-like in its explanation. From Wikipedia's definition of consistent estimators: having the property that as the number of data points used increases indefinitely, the resulting sequence of estimates converges in probability to $θ_0$. T...
I have two drugs. Drug A and Drug B... I did a test where I gave one group Drug A and another group Drug B. For the group I have Drug A, I saw a 20% cure rate. For the group I gave Drug B, I saw a 17% cure rate... However, there were only 1000 people in the group I have Drug A and there were 300000 people in the group...
Here is an example I thought of recently. Suppose in the year 2000, 1 dollar could get you 10 apples. In 2005, 1 dollar could get you 8 apples. In 2010, 1 dollar could get you 7 apples. In 2015, 1 dollar could get you 8 apples. In 2020, 1 dollar could get you 5 apples. If we put a regression through this data, you will...
Say we have a well setup A\B test that puts half of users in one arm, half in another. Do we describe the sample space as $\Omega_1$ for arm1 and $\Omega_2$ for arm2? Or do we instead just say the outcomes of the experiment are over a single sample space, $\Omega$? I'm trying to formalize my test as a series of element...
What is each entry in an outcome of a sample space called? For example, say our outcome is ${HHT}$, describing two heads and one tail. What is each head ($H$) and tail ($T$) member of the outcome called?
I have a problem with the LSTM forecast model; it predicts the current value instead of the next value. I have checked the data alignment, and it is correct. Try with: different scallers and unscale the data different input window use the difference in Target Value (target.diff()) But with the same problem, I also ch...
I'm considering some projects in the future which require modeling literacy outcomes as composites (such as word reading scores), which will naturally never have negative values (it's impossible to read negative words on a page), and is capped by the maximum score one can attain (for example somebody reading $50/50$ wo...
What is the distribution of $Z^2-Z'^2$ where $Z \sim N(0,\sigma^2)$, $Z'\sim N(0,\sigma'^2)$? I was thinking maybe you could write $(Z-Z')(Z+Z')$ so then you get a product of two normals but then I'm not too sure how to write it as a single distribution.
I want to use ML to verify if Cuban cigars are overpriced. I want to use this website https://www.cigaraficionado.com/ratings/search?q=&brand= to get cigar data. The website provides a blind testing score for every cigar and key cigar characteristics e.g. length, type, price, origin. My current thinking is that I shoul...
In longitudinal models (ex: regression), for the same person, I have never seen the time between two measurements being used as a variable. For example, if person1 has the first measurement on day 1 and the next measurement on day 5 .... but person2 has the first measurement on day1 and the next measurement on day 43 ....
while I seem to understand that there is a general matrix-based formula that allows us to solve for multivariate regressors, when looking at the non-matrix solution for a bi-variate $\beta$ I realised I wasn't quite able to understand the mechanics which allows for the partialling-out of one variable or the other. The ...
Information added: this question is not duplicate, neither my question nor the question in the link had been solved at all, I added more info to see if you can see the problem I was trying to understand how logrank works. For that purpose I used a toy dataset with only a few rows (30 rows). I calculated by hand (with G...
I have a dataset with a class imbalance in favour of the positive class (85% occurence) I'm getting a fantastically calibrated probabilities profile but balanced accuracy is 0.65 and minority recall is only 0.35 (!). Minority precision is 0.7 or so though. I'm not really sure how to interpret this. My stakeholders are ...
I found that there has been extensive discussion on the invalidity of R-squared for nonlinear models according to its original definition based on the following mathematical analysis,. The variance in the dependent variable: $$\sum{((Y_i-\bar{Y}))^2} = \sum{((Y_i-\hat{Y_i})+(\hat{Y_i}-\bar{Y}))^2} \\= \sum{(Y_i-\hat{Y_...
Say we have a well setup A\B test that puts half of users in one arm, half in another. We are testing clicks on a website. I'm trying to understand how to speak about the impressions as draws from a hypothesis test that assumes the impressions are from a single Binomial random variable, while we measure parameters for ...
I have a longitudinal RCT data, aiming to compare the superiority of one group with high exercising to the other group with low exercising to see the improving of pain (pain is outcome). Data is collected at baseline, 3 months and 6 months. So now I am in doubt about the modeling. I use linear mixed model, but: which o...
I would appreciate a little bit of advice on reporting. I've run a set of multinomial regression models, done my model testing, all that good stuff. Now I am waffling on how I want to report the results. My audience will not follow along with odds ratios, so I am using the sigmoid function to report in probabilities. E...
I am trying to derive two maximum likelihood estimators which I have seen in a statistics book, but I am unable to derive them and would really like some help. It goes like this: Consider the simple AR(1) model: $$X_t=\rho X_{t-1}+\varepsilon_t$$ We assume that $\varepsilon_t$ is i.d.d. normally distributed. Now with $...
I'm taking a regression analysis course and we were studying simple linear regression. I've understood how slope $$ \hat\beta_1 follows \space N(0,\sigma^2 / S_{xx}) $$ and is normally disributed. And $$ \hat\sigma^2 follows \space \sigma^2 * \chi(n-2) / (n-2) $$ the estimated sigma^2 follows a chi square distribution....
0 I am using gtsummary to create a table that merges univariate and multivariate regression results. Here's the code I'm using: r2 <- tbl_regression(step.model, exponentiate = TRUE) %>% modify_header(label = "**Variable**") %>% bold_labels() r1 <- dmtb11_v1 %>% tbl_uvregression( metho...
A game is played with $n$ dice, and an additional parameter $r<=6$. The game has one player who must throw all $n$ dice on each round and add the score to the total. The game works as follows: The player starts with a score of zero. On each round, the $n$ dice are thrown and the sum of the dice is added to the player'...
I am trying to graph the accuracy, error and precision scores over epoch for a neural network and am using cross validation. However, my training and validation scores are practically on top of one another (see image below for an example). There is a little variation where the blue is peaking out from behind the green,...
Suppose we have a DAG in the figure. I want to find the formula for $P(Y \mid do(X), S)$. What I think is that: Since $W$ is the parent of $X$ then we should have $$ P(Y \mid do(X), S) = \sum_{W} P(Y \mid do(X), W, S) P(W \mid S). $$ I think this is something like backdoor criteria (although I cannot find a formula...
I attended the course on multiple imputations, where it was stated (to my understanding) that when imputing the missing data on some predictors we should use all variables that will be fitted in the model (except outcome). I am using the linked datasets in my model. dataset 1 is the person level dataset of demographic...
I have been trying to perform Forecasting of a univariate Time Series Data with "daily" recorded observations and exhibiting an "annual" seasonality. The image below depicts the mentioned series: While I have achieved success using Statistical Methods, I wish to compare the same with ML/DL Techniques. Following sugges...
I am trying to perform sensitivity analysis on a causal inference (observational study) problem in a dataset that has a binary outcome and binary treatment. I've applied matching and g-computation with the guidance of vignettes in MatchIt(). I've heard that sensitivity analysis is an important step of the procedure to ...
https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html I was refering this notebook but default size is 64*64 I want to change architecture to 256 or 512 Can anyone help me with training Please provide me with code image_size = 64 # Number of channels in the training images. For color images this is 3 nc = 3...
I have a variable that changes over time. Let's call this variable "the error". I use a histogram to graph how many of intervals of error has occurred. For example Here you can see that a particular error of 0.1 has occurred almost 1500 times and another of [0.1,0.2] has occurred a little less (like 1400 times) etc. I...
I have a question of type: Suppose I toss a coin for m times, and I get a head every nth trial, from the previous one. So let's say every 3 trial. This would be: $\text{TTHTTHTTHTTH}\dots$. If the probability of a coin getting heads is $p$, how can I maximize $p$ to get the results mentioned above? I am quite confused ...
I have two independent variables, distance and light intensity (continuous variables) that I want to understand their relationship on a human response (response or no response). Here, light intensity represents the stimulus and distance represents how far people are from it. Initially, I carried out a t-test of indepen...