instruction
stringlengths
9
38.7k
I am trying to run a multilevel regression for my study: I have two random effects; participants (97) and items (which are the 20 words used in the study) Each participant had to spell the same words. My outcome variable is spelling accuracy and has 2 levels- 1 for correct, and 0 for incorrect. My predictor variables a...
Normally we divide our dataset into 3 sets: train set, validation set, test set. We use train set to find optimal parameters (weights and biases of NN) and validation set to find optimal NN architecture (e.g. # of hidden layers, # of neurons in each hidden layer...). Here is my question: after we find optimal archit...
Suppose that I would like to support the following hypothesis: h = The average weight of people in New York is 70kg. If I take h to be the null hypothesis then I can only reject it (I assume that failing to reject h will not support h). So, how can I formulate a hypothesis test for supporting h?
Is it right that with positive autocorrelation in the errors, the model underestimates the SE? Hence, using generalized differencing (such as Cochrane-Orcutt), the transformed model has a higher value of SE? And if so, what happens to a model with negative autocorrelation? I can't quite explain how these happen.
I have two random variables X and Y which came from different inverse gaussian (IG) distributions: $$ X \sim IG(\mu_1,\lambda_1)$$ $$ Y \sim IG(\mu_2,\lambda_2)$$ I need to find a probability of X>Y. It seems, that i need to find a pdf and cdf for variable Z=X-Y $$ p(X-Y|\mu_1,\mu_2,\lambda_1,\lambda_2)$$ Is it possi...
I'm learning about time-series analysis and have two series on which I'm performing an Augmented Dickey-Fuller test in order to check for stationarity. I'm trying to understand why I get very different behavior/results for two related datasets. The main thing that confuses me is why the adfuller() method for B returns ...
I am currently reading the paper "Computational Efficiency in All Possible Regressions" by Liu and it mentions the following. A quick explanation of what I understand: We have a set of $k$ variables. $\Omega$ denotes the set of these variables, $\Omega_2$ denotes the set of the variables already in the model and $\Ome...
I have a discrete choice model of moving from one state to the other, so alternatives=states. I have case-specific variables such as income, race, and gender. In addition, I have moving distance variable which varies over alternatives and cases because it depends on residence before moving (varying over cases) and the ...
Can you tell me if the data normal distributed are? It looks a bit strange. I would say it is skewed 40,80 and so on are sizes of the Apartments in m^2
I have a longitudinal data with 8 follow-ups. My aim is to see the effect of a disease on ability decline at old age. In my study, I have sibling pairs, one with disease (1) and one without disease (0). And, in this study disease has happened before ability decline. I want to use age as time in my model. Is it correct ...
Is it wise to stratify the continuous y (target) variable when you split your training and testing data from the total sample in regression setting? Here is the approach in python to do implement stratify the continuous target: In Python (with the same libraries loaded as in the prior code snippet): # Create the bins....
Can a causal relationship between two variables be inferred from a random effects panel model? I estimated the following one-way random effects (RE) panel model: $\mathrm{Gini}_{it} = \alpha + \beta \mathrm{intraEUtrade}_{it} + \delta \Theta_{it} + \mu_i + v_{it}$, and found that the coefficient for intra-EU trade ($\b...
Let us consider following data showing sigmoidal dose-dependence for two distinct compounds (blue and red): I wonder about the best approach of comparing the blue vs red "curves" with regards to their point of half-activation (=half-maximum effect, here around concentrations 4 and 5 respectively). The scientific quest...
Sorry if obvious but in a time series $x_t, x_{t-1},...,$, why is $E[x_t|x_t, x_{t-1},...]= x_t$? I don't really get what the random variable $x_t|x_t, x_{t-1},...$ represents? What I find particularly confusing is the conditioning on $x_t$ itself. Is it as obvious as the expectation of the random variable $x_t$ given...
I am writing a small application to aggregate Historical Fencing matches results. This data is then used to calculate a couple of factors: Effectiveness: simply shows how many of your matches are won: won matches ___________ all matches Fierceness: shows how well you do in lost matches, if you are getting...
I estimated a vector $\beta $ using OLS $\hat \beta =(\hat e_1 \hat e_2 \hat e_3)$ and I have the covariance matrice $\hat v(\hat \beta )$. How can I test this null hypothesis $H_0 : \hat e_1 \hat e_2=0$ ??
Are there any general classes of statistical models that are able to perform "ranking and prioritization" tasks? For instance, suppose a hospital has: data on patients (e.g. age, height, weight, etc.) the reason why they came to the hospital (e.g. chest pain, car accident, etc.) the triage decision associated with eac...
When dealing with Survival Analysis, we create models that estimate two properties: Survival: Survival Probabilities tend to be more straightforward to understand. Survival Probabilities estimate the probability of surviving some "event" past a certain time, given that you have survived up until that time. Hazard: On...
Given a large dataset, one cannot possibly check every model. In particular, it does not seem clear to me that one can check confounding or mediation in either cases. How does one check confounding/mediation in large data context? I am no epidemiologist. Does the question even make sense in tons spurious relationship d...
I have a dataset with 22 parameters and I did a PolynomialFeatures = 2 to find the influence of interaction. This was then fitted to an Artificial Neural Network with the lowest loss being around 0.02. Now I want to find the position of the global optimum, which is the negative of the global minimum. How do I find the ...
Assume a Poisson random effect model (with a random intercept) $$\log E(Y_{it}|b_i,x_i)=\beta_0+\beta_1x_i+b_i$$ $$b_i \sim N(0,\tau^2)$$ How to derive the population-averaged effect of one unit change in $x_i$?
If $X_1,X_2$ are dependent but identically distributed, it seems obvious that $P(X_1+X_2\geq2C) \leq P(X_1\geq C)=P(X_2\geq C)$. At least if we additionally assume that the joint distribution is symmetric, i.e. $P(X_1\leq a, X_2\leq b) =P(X_2\leq a, X_1\leq b)$. But how would I prove this?
Original Question (Skip to Next Section) "The results were processed using frequency tables of data obtained and expected data with a confidence level of 90% and with 4 degrees of freedom. To test the hypotheses, the chi-square test was used, obtaining 10.57, compared to the critical chi-square of 7.779. What does it m...
This question stems from the comment section of this question: Bus wait time under Poisson distribution, where it seems that The properties of the Poisson don't make sense for times because the units don't match up. Standard deviation of times should be in minutes but the Poisson has variance = mean. Change the units ...
Everyone! I'm reading the paper On test marginal versus conditional and I'm a little confused one place in page 9, when the author use "maximum likelihood projection" to get the covariance matrix $\Sigma_1$ such that minimize the KL-distance between two distribution $\mathcal N(0, \Sigma_0)$ and $\mathcal N(0, \Sigma_1...
In his celebrated talk on randomness and pseudorandomness https://youtu.be/Jz1UoAWD80Q?t=366 legendary mathematician Avi Wigderson makes the powerful statement that sampling is perhaps the most important use of randomness. He skips over this rather elementary slide quickly but I am trying to understand the numbers behi...
I have two correlated random variables $X$ and $Y$, both with zero mean. Are there any relationship/constraints between $Var(X)$, $Var(Y)$ and $Cov(X,Y)$, apart from the obvious $Var(X) > 0$ and $Var(Y) > 0$, or can they assume any value, provided that the two obvious constraints are met? And if I go to higher order mo...
I'm trying to understand why the values under 'estimate' from an emmeans contrast function differ from those of the default 'Estimate' values from, say, 'summary.lm()' in R. As an example, let's use Helmert contrasts (sometimes called 'reverse Helmert', but the R way of doing these suits my purpose) on a subset of the ...
I have a CSV file that contains encoded date data. I have no idea how the data was encoded, but you can look at the data and see an obvious pattern which means it was probably some sort of custom programming. Regardless, I have a CSV file with several thousand encoded strings and their decoded values. For example: "bj...
I was listening to a podcast by NDGT (Neil deGrasse Tyson, a prominent scientist) and he posed a simple thought experiment to illustrate the susceptibilities to cognitive bias. What I've come here to ask about is which rigorous statistical framework to use here... Question What is the appropriate statistical test, whi...
I am working on binary classification using a random forest, where the data have 977 records and 6 columns. The class ratio is 77:23. I have two derived input variables. One variable is called no_of_non_responses, and the other is called as percentage_of_non_responses. Both variables are computed from the same original...
I am interested by explaining the effect of x on y via m (my mediator). I know how to build the models, comparing the b coefficients, running a model (e.g., with mediate() in R). Basically I want to answer the question "what part of the effect of x on y can be accounted by m". So I run: y = b1*x y = b1x + b2m and I co...
I have an experiment in which i compare the amount of attached bacteria in three different conditions. I have repeated this experimented three times, so now i have three datasets with the same data (identical in style, not in exact numbers). Now i would like to perform statistics to confirm an effect of a condition, an...
Question: Should I rather winsorise (or trim, where relevant) my raw data, or the intermediary metric I use in my models? Context: My analysis consists in 3 steps: Collect raw data, Compute intermediary metrics, Run regressions with the intermediary metrics as dependent/endogenous variable. The raw data are the same ...
I have a masters in civil engineering but would like to work within IT. From my education I have a mathematical and data analysis background. I'm considering taking a course in machine learning to learn the methods/tools currently used in data analysis. I graduated from uni 10yrs ago, so my skills in IT are probably ou...
I have conducted a moderation analysis with two independent moderators. (Using Hayes Process model 2). I have attached the output for your reference. I am looking for the impact that financial wellbeing and gender has the relationship between marital status and loneliness. My variables are: Y: Loneliness (continuous v...
If an exponential family is given by: $g(y|\theta) = exp\{\theta^TT(y)-A(\theta)\}h(y)$ then the functions $h(y)$, $A(\theta)$ and $T(y)$ are defined by names: $T(y)$ is a sufficient statistic $A(\theta)$ is a cumulant function $h(y)$ is an underlying measure For an exponential dispersion family: $f_Y(y;\theta, \phi) ...
I am using the caret R package to evaluate machine learning models. This gives me a lot of information about different metrics. I am confused about my result why the P-value (0.998) is extremely high and the Mcnemar's Test P-value (0.004427) is very low. I don't understand what it means that there is suggest a big diff...
Using data from multiple cohorts, I am trying to check the performance of a prediction model I developed. The plan is to get the Adjusted r-squared from 2 models, one model has the score and the other doesn't have it. After I collected the Adjusted r-squared values, I am not sure how to meta-analyze the r-squared value...
We know that in the case of logistic regression, a classification threshold p=0.5 is generally not an optimal choice when seeking to optimise sensitivity and specificity. This is generally due to the fact that the dataset is unbalanced. To solve this problem, one can simply vary the threshold and take the one that veri...
Assume I have $n$ points sampled independently from the uniform distribution on the unit interval. After ordering the sample I get the points $X_1, X_2, \dots X_n$ such that $X_1 \leq X_2 \leq \dots \leq X_n$. According to the order statistics the distances are beta-distributed: $$Y_{jk} = X_k - X_j \sim \text{Beta}(k-...
Suppose there are two groups of (x, y) pairs, and that x and y are linearly correlated but with different slopes and/or intercepts for different groups. We do not know which data point belongs to which group a priori, but we know that there are two groups. I am looking for a method to fit simultaneously two linear mode...
I am preparing to do a regression model (probably Poisson) where the goal variable is count data (number of times a patient received a blood transfusion). I will have to do variable selection out of many available independent variables, and want to explore the data thoroughly before doing the actual regression. I am ac...
I am looking to find find clinical and other measurements to predict a blood metabolite with Elastic-Net Regression models. Can I remove samples with values greater than 1.96 SD from the mean as outliers? I read in a post stating if the samples are normal (e.g. disease-free), it could be fine. The samples are collected...
Consider a dataset $X, y$ where each $y$ is distinct, but many of the rows of $X$ are repeated. Suppose that there are indices $\{ i_j: j = 1 \dots J \}$ such that the consecutive rows $X_{i_j}=X_{i_j+1} \dots = X_{i_{j+1}-1}$ are all identical. Will I get the same result if I work with a reduced dataset $\tilde{X} = ...
I can't really find a clear description of how SEMs work, or even whether they are a really unified thing or just a bunch of other methods that people refer to as a whole. The definitions one finds typically say what they can be used for (e.g. find causal relations between variables, while accounting for latent variabl...
I am using a convolutional neural network to predict the number of occurrences of a certain pattern in time series data. Since there might be potentially any count of such patterns in a time series, I am dealing with regression, rather than with classification. Normally, for regression, mean squared error (MSE) is used...
I am trying to simulate logistic regression data, but under the constraints of prevalence. $$\text{logit}(y_i) = \beta_0 + \beta_1 X_1 + \beta_2X_2$$ For example, I want to create a dataset that has 10% of $y = 1$, and 90% $y = 0$. I can think of two approaches: search a grid of $\beta_0$, that produce the closest pre...
I have a long sequence of time values (instants in time where events happened) and I would like to detect perodicities in this data. It's possible to sample these points onto a gigantic grid and take an FFT, but the times are known very accurately relative to the grid spacing available even for a 10M+ point FFT. So do...
I am performing a meta analysis of mutliple trials (Intervention vs. Placebo) and wanted to describe the baseline characteristics in a table. Some trials report continous variables as medians and interquartile ranges of the 2 groups seperately and not the total trial population. Is there any way to estimate the overall...
Assume I have items: a, b, and c. And I calculated the similarities between each pair using two different measures, and I got the following similarity score metrics: using measure 1, the results are: a b c a 1 0.5 0.1 b 0.4 1 0.3 c 0.1 0.2 1 and by using measure 2, th...
I have a regression model (in R) as follows: lm(price ~ time + color + brand) where, price be the second hand price of sth (numerical), time be number of years since produced (numerical), color be color of it with 10 different levels (categorical), and brand be brand of it with 5 different levels (categorical). When I ...
I was learning about the Out of Bag error in random forests and I did not understand a point about the error calculation. Assume we have N bootstraps and there are a number of Out-Of-Bag samples for each one of these bootstraps.We can have a sample, say for instance sample x, appear in Out-Of-Bag part of multiple boots...
I have two subsequent regressions and want to combine the results of these two regressions. But I also want to show the increased uncertainty by somehow combining the confidence intervals of these two regressions, if this makes sense. The first model is a linear regression (log-normal) to model the total volume of tree...
I am computing pointwise envelopes for the Foxall's J function to investigate the whether some point patterns of interest are clustered, avoid or are independent from other point patterns or polygons. I am doing this using spatstat with a syntax similar to this (reproducible example provided below): evelope(my_pattern_...
I would appreciate help with how to to estimate the mean vector and the covariance matrix using the simple returns in R. I have historical (weekly) values of five stocks from a capital market for a period that covers ten years. And I have used the price data to determine the simple returns on each of these five stocks....
For univariate or single independent variable regressions, this formula can be used (details here): $$R^2_{adjusted} = 1- \dfrac{SSRes}{SSTotal}\dfrac{n-1}{n-p}$$ However, I cannot find a similar formula for multivariate or multiple independent variable regressions (but I did find that the number of degrees of freedom ...
I am running a one-way ANOVA to compare a numeric continuous variable between four groups, and getting a very high F-value. Below are the descriptives and code I used in R (I get similar values when trying a different package in Python): > oneway.test(ideology_score ~ region, data = mydata) One-way analysis of means...
I have attatched an excerpt from my linear modelling lecture notes, this is the statement of the Gauss-Markov theorem, trouble is it goes into no more detail after this (not even explaining what the vector/matrix $l$ is supposed to be). Additionally what does 'the minimum variance linear unbiased estimator of the estim...
I found the following (Julia) implementation for estimating the highest posterior density interval from a posterior sample (link). Below, I turn it into pseudocode for simplicity. function hpdi(sample, alpha=0.11) n = length(sample) m = max(1, ceil(alpha * n)) # `ceil` returns an rounded up integer y = sor...
I have a gaussian random field $u(x)$, $x \in R^2$ , with a covariance function $C(d)$ and I need to calculate probability $P[ u(x) < u_0, \forall x \in S]$, where $S$ is a straight segment in $R^2$ space. Is there a direct approach for me to do this without sampling? i haven't been able to find by googling , apologize...
Consider the linear regression model, $$ \boldsymbol{y}=\boldsymbol{X\beta}+\boldsymbol{\epsilon}, $$ where $\boldsymbol{y}$ is an $n$-vector of responses, $\boldsymbol{X}$ is an $n\times p$ matrix of covariates (here treated as nonstochastic and assumed to contain a column of ones), $\boldsymbol{\beta}$ is a $p$-vecto...
In Formula 1 races, an interval time is the lag behind the leader at a split. If first place completes the first lap at 1:30, second place completes the first lap at 1:32, and third place completes the first lap at 1:33, then the interval for second place would be +2s, and the interval for third place would be +3s. Fir...
I have a series that looks like . (https://gyazo.com/8a460fed032c8989b93cf26d8820e431) It shows very strong auto correlation ![AC] (https://gyazo.com/4acd9b9bd32c70509bde1b8b874d6e33). I have differenced it and then it looks like this. . However, when I build the ARIMA model and predict values it always predicts the ...
I am fitting a smooth-factor interaction term to a longitudinal microbiome abundance data set using GAMs. model <- gam(Abundance ~ s(Time, by = Genus) + Batch + s(AnimalId, bs = "re")) I am interested in estimating separate smooths for each level of the Genus factor. The factor includes hundreds of leve...
I'm new to design of experiments and I'm planning an experiment which involves 2 factors at 3 levels ($3^2$ design). I'm using 3 levels as I think that there will be some non linearity, but I cannot use a response surface method as one of the factors is categorical. I'm interested to test the response to these two fact...
I would like to know the differences between a regression model with autocorrelated errors and state space models (time series). When should each be used? According to this lecture, regression (linear or non-linear) with correlated errors takes into account the correlated random effects to model (deterministic) fixed e...
I am looking for a way to estimate how many random draws took place to produce a produce a known number of unique results. I'm sampling a uniform distribution. For example, if there were a lottery with 6 picks of numbers 1-10 (1,000,000 possible combinations), and the lottery published how many unique combinations were...
I have 30000 unlabeled images (each image has only one character), and the content of the images is very simple, basically black lines(a language but not English) and white background. I hope to use clustering or other unsupervised algorithms to distinguish them based on their features. I do not know how many classes t...
I am trying to show that the median is a M-estimator, and the definition is $t$ is an M-estimator if there exist a function $\psi$ such that $$ t=\arg\min_s\mathbb{E}(\psi(s,X))\qquad(1)$$ so for empirical median it is known that $\psi(s,X)=|X-s|$ and $\mathbb{E}$ is the empirical mean, but I do not understand why $$t=...
My data is organized in nested levels: 48 children (individual-level) nested in 3 schools(cluster-level): n=30 in cluster 1, n=15 in cluster 2, and n=3 in cluster 3. I simply wonder if I will need to use multilevel modeling for this small data set, which has only 3 clusters and is imbalanced in the cluster size. If the...
I am trying to calculate network homophily/assortativity for a graph. However, some of my nodes have missing values. It turns out igraph's assortativity functions have no "na.rm" function included. As such, any calculation of homophily/assortativity in such a network with even one missing value returns NA, which is a b...
Heck et al (2012) give the following model $Y_{ij} = \gamma_{00} + \gamma_{01}\text{ses_mean}_j + \gamma_{02}\text{pro4yrc}_j + \gamma_{03}\text{public}_j + \gamma_{10}\text{ses}_{ij} + u_{0j} + u_{1j} \text{ses}_{ij} + \epsilon_{ij}$ They report that the estimated variance of the random slope of SES is 1.314, and say ...
When reading statistics literature, they provide the assumptions of when specific tests/methodologies can be used. Take factor analysis as an example; you may find this inside a paper: "Generally speaking, cases with missing values are deleted to prevent overestimation (Tabachnick & Fidell, 2007). " I wonder if the ass...
Is there any way to perform pairwise ANOVA test from Constrained ordination for multiple factors in a variable? e.g. I am trying to figure out whether microbial communities among five plant genotypes are different in their composition. I am performing constrained ordination using capscale using 'vegan' package in R. My...
I'm testing two models against each other: provides an AUC of 93,94 % with TP = 99,9 %, TN = 0 %, FP = 100 % and FN = 0.1 %. provides an AUC of 92,78 % with TP = 98,8 %, a TN = 30,6 %, FP = 69,4 % and FN = 1,2 %. How can model 2) have a lower AUC while the TN is much higher? There are 1442 observations in total, wh...
Let $\mathcal{P}(\mathbb{N})$ denote the power set of $\mathbb{N}$. Show that no two non-trivial sets in the probability space $(\mathbb{N},\mathcal{P}(\mathbb{N}),\mathbb{P})$ with $\mathbb{P}(\{k\})=2^{-k!}$ for $k\ge2$ and $\mathbb{P}(\{1\})=1-\sum\limits_{k\ge2}\mathbb{P}(\{k\})$ are independent. There are some hin...
I am a first year stat student. We are tasked to create a SARIMA model from trial and error using ACF and PACF plot. Now here is my generated plot: Now I am trying to understand the plot but I don't know what is the appropriate model I can build here. My guess is ARIMA(1,1,1)(1,1,0)[4], but I am doubtful it is right. ...
I'm using an existing disease prediction model to build a chatbot. While I was referring to the model I realized that it has an accuracy of 100%. I'm not quite sure how and why the accuracy is 100%. I've attached herewith the link to the code I'm referring to - https://www.geeksforgeeks.org/disease-prediction-using-ma...
I have performed Market Basket Analysis on sales data, that comes from non-sequential receipts. I've read into the meaning of the different metrics, but there is one thing I don't understand. When looking at the strongest association rules, I detect a lot of mirrored rules. For example: I'm not sure how to interpret t...
For random variables $X$,$Y$,$Z$, when does $cov(X,Y)\neq 0$ imply $cov(XZ,ZY)\neq 0$? It would be great if you could provide some sufficient conditions or give some special cases such that this hold.
I'm having a mixed model (lmer in R) with 5 repeated measurements (time is categorical), and 6 groups, and several covariates. I'm mainly interested in seeing whether there is a significant difference in 'trajectory' between groups comparing timepoint 3 and 5. Can I somehow test for the significance of the interaction ...
I'm using an existing disease prediction model to build a chatbot. While I was referring to the model I realized that it has an accuracy of 100%. I'm not quite sure how and why the accuracy is 100%. I've attached herewith the link to the code I'm referring to - https://www.geeksforgeeks.org/disease-prediction-using-ma...
I'm looking for the equation that how the lifelines package calculates the log-likelihood of CoxPHFitter. I read the lifelines documentation but cannot find where is it. Any help would be appreciated!
I am working on a Linear Mixed Effects model. All four predictors are continuous variables. Full model: fm15 = lmer (duration ~ A*B*C+D+ ( 1 | subjects ) + ( 1 |words), data=data, REML= FALSE) I have two questions: a) Should I center the predictors? If so, which way should I use to center it? Why are the results diffe...
^ What the question says. Trying to determine whether this statement is true or false.
For every subject in a study, I have 40 responses that can be: a,b,c. So it would look somthing like sub | trial | resp 1       1        a 1       2        b .... 50     40      c I want to check if their occurence rate differs (i.e a is much more frequent than b or c). Is it...
I've just done a clustering analysis using hierarchical clustering analysis in Python but the result is not what I expect. Most of them (483/485) belongs to group 1 and the rest to group 0. Is there anything wrong that I did in the code or this is on of the downside of this analysis? I'm using a dataset consists of 485...
In the paper "Evaluating time series forecasting models: an empirical study on performance estimation methods" by Cerqueira et al (2020), they mention k-fold cross-validation. Which they differentiate from blocked cross-validation in subsection 2.3.1. I thought I understood the difference but if I then check sklearn's ...
I have targets ordered by a feature. I want to find a single split that minimizes a squared deviation (RMSE). For example, I have 100 values (targets) and it might be the case that, if I split them as 30 + 70, I get minimal squared deviation (as compared with all the other splits like 10+90 or 83+17). Here I assume tha...
I have been given a bunch of csv files which are ouputs of a bayesian glm model run. I have minimal understanding on machine learning, so apologies beforehand. I'd like to understand what the variables in each column mean, since that is important for my task. Here is a few first lines of a csv file: Genotype Beta ...
Can you help me to interpret the following standard deviation? It is a linear regression problem, I need to predict Rent which depends on the size of an Apartment. Rent=23.411+13.806. The question is how to interpret the standard errors 115.892 and 1.654. I know how to calculate them
In a decision tree, when we search for an optimal split, we usually minimize root mean square deviation (RMSE). In addition to that we might forbid splits that give too small leaves (for example a leaf cannot contain less that 100 data points). I wonder if there is a less "rigid" and more statistically driven approach....
I have carried out a chi-squared test in an 11x4 table with a sample of c. 11,000 units. I've got a very high chi-squared value (x2=9807; df=30) and the p-value is extremely low (p=2.2e-16), which I know it's expected because of the size of the sample size. To check whether this can be biased by sample size, I have als...
I'm involved in the design of a longitudinal observational study investigating a relationship between the use of a drug and a binary outcome. Participants are enrolled when at risk of the outcome, they're followed up through time, checking if and when they receive the drug (which can happen at any time, and for varying...
I built several models and measured the brier loss, calibration loss, and reliability loss with the direct model and a calibrated one. Now I try to interpret the results, but I cannot understand them in combination with the calibration plots. My understanding is that the smaller the calibration loss the better the cali...
I created a linear regression model and realized I first need to check some assumptions. Autocorrelation not existing -> valid, since it is a between-subject experiment. Low collinearity between parameters -> checked and approved. Normality test -> checked and approved. Now I am stuck on the residual plots. As far as...
Iam currently reading up on basic statistics and Iam somewhat confused about the computation/inference of confidence intervals and hypothesis tests. As far as I have understood there are several techniques for both confidence interval estimation and hypothesis testing: confidence interval are computed: estimate +- mar...
This is a simple method to transform samples from $\mathcal{N}(0, 1)$ into samples from $\mathcal{N}(\mu, \sigma)$ with arbitrary $(\mu, \sigma)$, without having to re-sample from $\mathcal{N}(\mu, \sigma)$. My question is: is this mathematically true? Shouldn't this be true? $\mathcal{N}(\mu, \sigma) = \sigma * \math...
I was under the expression that the mean square error (MS) of a 1-way anova table is the estimated variance, and that the between and within group variance add to the total variance. However, using an example I get an result which puts me into doubts. Here the example: I have a dataset in matlab. data = [1.5377 0.69...