instruction
stringlengths
9
38.7k
I am trying to apply exploratory factor analysis and I got the following output when using parallel factor analysis (fa.parallel of the R package psych): Call: psych::fa.parallel(x = df, fa = "pc", n.iter = 500, ylabel = "Eigenvalues", quant = 0.5) Parallel analysis suggests that the number of factors = NA and ...
To express model uncertainty in LSTM, we can use dropout as a Bayesian approximation for Gaussian model according to this, (dropout is kept during inference and that will result in a distribution of prediction based on my understanding). My question, does this apply to recurrent dropout as well, proposed here? The dash...
I am trying to understand how age (years) affects hormone concentration. Individual ID is included as a random intercept as this is a repeated measurement. I would like to use a mixed effect model. However, I am struggling to understand how I would find the significance of my explanatory variable as R will not let me f...
After decomposing the time series, what is the intuitive difference between seasonality-adjusted data and the trend component (from decomposition)?
I am implementing a regression, however my regressor has not been able to predict the least frequent counts. I've tried adjusting the hyperparameters (as you can see below), but I haven't had much success. As you can see below, my dataset is zero-inflated and the count frequency drops dramatically as the count value in...
I am an MBA student that is taking courses in statistics. In our classes, we are learning about Odd's Ratios and Relative Risk. Our Prof outlined the following examples: Example 1: Suppose we take a random sample of 1000 people from the general population. Of these 1000 random people, we know how many people have the ...
I have a data set with 1000 entities. For each entity, more than 500 dichotomous variables (0,1) are recorded. I have no idea how to analyse this data or how to get an overview. My problem is not that any analysis I attempt takes too long to run on the system, but that the result is equally confusing. My question is wh...
I have been analysing some survival datasets for lung transplant patients for the past several months. I have found some variables that are statistically significant - such as year of transplant and transplant centre - but which aren't appropriate to include in a predictive model for predicting outcomes with new data. ...
Experiment Setup Each participant must perform volutary biceps flexions (each flexion is referred to as a trial $t_i$) while staring at a screen. EEG and EMG signals are recorded throughout the experiment. There are two conditions (i.e., A and B), which determined what was shown on the screen during the trials. The num...
I'm working with Census data and I would like to compare it to the population that I am working with to see how much it differs. What are the best statistical tests to do this when working with binned counts? Ideally what I want to determine is if the distribution across the various age groups in my population is simil...
I have a mobile app for soccer games where user can rate each other and mention particular skills for each player. For example, after a match we ask each user to rate every other user and optionally select 1 or more "top skills" per user like shooting passing speed What would be the best way to visualise these attrib...
I'm wanting to use Statsmodel's SARIMAX model to predict sharemarket values into the future. This is part of a larger effort towards helping strictly non-profits and social-enterprise organisations. Question: I'm having an issue (maybe conceptual) where when I introduce a 'deterministic polynomial trend', using Statsmo...
I am trying to practice with R through some problems, one of them says: Through a linear regression model WITH APPROPRIATE SCALE CHANGE based on the campione data, predict the adv number for a duration in seconds equal to the average of seconds in PUBB NOT censored Note: CENSORED means that seconds == 60 code: ##### ...
I know this topic was explained many times, but I need help with just a concrete wording. p-value is the probability of obtaining at least as extreme data (or test statistic for convenience), calculated UNDER the true null hypothesis. That is - "no effect", "by chance" (nothing else by chance could create the effect) w...
My participants heard two kinds of stories i.e. two conditions and rated two protagonists in each of these stories or conditions on a Likert scale of -5 to +5. So I had two conditions, eight stories (four in each condition), and two protagonists in each of these stories i.e. the participants answered a total of 16 like...
For instance, when we have a binomial random variable, we can approximately calculate its CDF using the central limit theorem, but I wonder if we can obtain a more accurate result if we condition the Normal random variable only on the possible values. Let $S_n \sim \mathcal {Bi}(n,p)$, so we want to calculate $P(S_n \l...
My question is, is it possible to swap other values in lieu of time in survival analysis? Particularly for Kaplan-Meir. If I swap total sales in lieu of time, would this essentially mean at the 50th percentile, the total sales generated is \$X after accounting for censoring. Or where i have strata, at the 50th percenti...
Let's assume I have two random variables X and Y with x>0 and y>0, respectively. Let's also assume that their marginals are known as well as the joint cdf is known as the product of the two marginals (independent variables). How would I find the pdf of a 3rd variable Z for which: log(Z) = X - log(Y) - 3.5 I am assuming...
From what I understand, running omega reliability in R is quite straightforward, even for binary responses. However, I've encountered a situation when running this command: #### Load Libraries #### library(lavaan) library(psych) #### Fit Variables #### mod.abc <- ' ABC_Variable =~ ABC_01 + ABC_02 + ABC_03 + ABC_04 + A...
In the paper "Active Learning for Natural Language Parsing and Information Extraction", the author mentioned: In tests on this data, test examples were chosen independently for 10 trials with n = 25 bootstrap examples and a batch size of k = 25. I wonder what's the relationship between n and k here in sampling data f...
I am successfully generating weights and means for a GMM, but I'm trying to get the results to print in a way that shows the corresponding mean for a weight. Here's what I have now: from matplotlib import pyplot as plt import numpy as np from sklearn.mixture import GaussianMixture import pandas as pd #bring in data ...
I have data with seasonality so I used seasonal and then first order differencing to make the series stationary in order to fit VAR model. After the model is fitted on the differenced level I can revert in the usual way using the cumulative sum and the original series. However, I would like also to have the 'components...
I'm trying to correlate changes in atmospheric pressure with headache intensity. I 'know' that there is a strong correlation in my case but out of curiosity I'm willing to take data for as long as I care. I'm taking daily pressure data and registering headache intensity in the range 1-4 (no pain to pain strong enough t...
I am using the LinearSVC() available on scikit learn to classify texts into a max of 7 seven labels. So, it is a multilabel classification problem. I am training on a small amount of data and testing it. I need to add more data to the training set, retrain the model and evaluate using the same test set to see if the pe...
If the null hypothesis in the Kruskal Wallis test is rejected, How can we perform pairwise comparisons? Can we apply Dunnett's Test for that?
I have a regression dataset and want to check if the amount of samples is sufficient. For this I conduct a power analysis. For the power analysis of a multiple regression model, I need to obtain the effect size $f$, for which I need the variance explained $R^2$. Do I specify a $R^2$ as a parameter or do I compute it fr...
I have 3 variables X, Y and Z, with each variable being assessed by 3 items. The variables are not part of the same factor. Does it make sense to use a SEM model to purely compute the latent correlations without specifying any regression paths or dependent variables? Example using the lavaan syntax in R: model <- 'X =~...
I was trying to understand the difference between a multiple linear regression model, a general linear model, and a generalized linear model. I have seen very similar questions have already been answered, however I can't understand a thing. From what I see on Wikipedia: The general linear model or general multivariate...
You can have the same mean but different standard deviation. Or the same standard deviation but a different coefficient of variation or 1 over signal-to-noise ratio or whatever. (I think that's the same as different mean.) Question: Is there a similar 'alternative' to percentage change? Context: This is based on my pr...
I have a logistic regression, and I am interested in the interaction between two categorical variables: one (let's call it A) is a continuous variable categorized in 20 quantiles, the other (B) is a categorical variable that can take 3 values. I use ventiles because the effect of A on C is highly non-linear and it is a...
I want to apply an algorithm which usually works on unimodal distributions on multimodal distributions, I'm considering doing this by splitting the multimodal distributions into multiple unimodal distributions, is there any methods for doing this sort or separating/splitting?
200 students estimate the volume, V of a classroom. The cumulative frequency diagram shows their results. You are told at GCSE level to find the median by dividing 200 by 2, finding it on the y axis and reading off the value of the estimated volume on the x axis. Why do you not find the average of the estimated volume...
For balanced longitudinal data, the missing data can be handled by multiple imputation in wide format where I assume MAR. However, for unbalanced longitudinal data(i.e. number of measurements varying from subject to subject), I cannot cast the data in wide format to do multiple imputation, if there is missing entries. ...
I'm trying to calculate a correlation matrix for ordinal variables in R. Kendall rank correlation coefficient, seems a good option, as it "is a statistic used to measure the ordinal association between two measured quantities" (emphasis added). Since I have variables with a different number of ordinal levels, I'm plann...
I see at least two variation when i google sample size calculator The first one is with the example online calculator asking only for confidence level, margin of error, population porportion and population size. The other sample size formula is this : With the famous evan miller sample size calculator asking for base...
A vote is taken between two candidates and the official count reports one candidate wins. The losing candidate asks for a recount. Three recounts are performed. The winning candidate is still winning in the first two recounts but the losing candidate is the winner in the third recount. The recounts are of all the votes...
The question is very simple. For the help file of the meta package, let's consider this forest plot: data(Olkin1995) m1 <- metabin(ev.exp, n.exp, ev.cont, n.cont, data = Olkin1995, subset = c(41, 47, 51, 59), sm = "RR", method = "I", studlab = paste(author, year)) forest(m1, layout = "RevMan5", common = FALSE, ...
Context: We have a fleet of aircraft in service, the manufacturer regularly produces upgrade recommendations (SB) to be implemented on aircraft in order to increase its reliability. Reliability is measured as the count of "events" due to technical malfunction divided by the number of flights over the same period. Data:...
I was trying to make sense of a statement I came across in a paper. The author states that "The difference between the observed frequency of zero and the expected frequency can now be tested for significance using any statistical test appropriate for contingency tables. For example, the Fisher-Yates exact test yields a...
In https://en.wikipedia.org/wiki/F-test#Regression_problems, an application of the F-statistic to comparing linear models is given: Consider two models, 1 and 2, where model 1 is 'nested' within model 2. Model 1 is the restricted model, and model 2 is the unrestricted one. That is, model 1 has p1 parameters, and model...
This is something I heard from someone one time. I ran across it again today in a reddit comment: The real issue is that mean square error equates to a normal distribution over the output. Is there any truth to this, and if so, why?
The following multivariate distribution is given: $\left(\begin{array}{c}X_1 \\ X_2 \\ X_3\end{array}\right) \sim N_3\left(\left(\begin{array}{c}1 \\ 1 \\ 1\end{array}\right),\left(\begin{array}{ccc}1 & 0 & -1\\ 0 & 3 & 0\\ -1 & 0 & 2\end{array}\right)\right)$ The goal here is to derive the conditional distribution of ...
I am building an Latent Dirichlet Allocation (LDA) model which estimates a version of the Author-Topic model developed by Rosen-Zvi, Griffiths, Steyvers and Smyth. The original paper is here. The author-topic model estimates a distribution across a set of K topics for each of the n authors in a given dataset, as well a...
i am reviewing how to prove the variance of a Gaussian, and I am stuck very early on, following the proof at this link:[ On the second line, after this substitution, where did the $\sqrt2\sigma$ come from on the constant outside of the integral?
It's clear to me how to interpret the coefficients of a quadratic regression: data <- data.frame(hours=c(6, 9, 12, 14, 30, 35, 40, 47, 51, 55, 60), happiness=c(14, 28, 50, 70, 89, 94, 90, 75, 59, 44, 27)) data$hours2 <- data$hours^2 quadraticModel <- lm(happiness ~ hours + hours2, data=data) summa...
I am currently conducing a cronbach alpha analysis on some questionnaire data and the cronbach scores are low. I have created a correlation matrix to see which items are highly correlated and which are low. I am getting confused as to which numbers I should be looking at for removing - for example should I be looking a...
Let $A$ be the event "I go out", $B$ be the event "It rains". Then Bayes' Theorem tells us that $$P[A|B] = \frac{P[B|A]P[A]}{P[B]}.$$ I think the weather doesn't care what I do, so $P[B|A]=P[B]$ and the equation simplifies to $$P[A|B]=P[A].$$ Suppose I really don't like getting wet, so $P[A|B]=0$. Then $P[A]=0$, and I'...
Suppose I am given two time series, $x_t$ and $y_t$. I wish to determine if they are jointly stationary because I want to make a cross-correlation function and know that it's really a function only of the lag, i.e., that the correlation $\rho(x_t,y_s)$ depends only on $h = |t-s|$ and not on $t$ or $s$. I know how to te...
I'm trying to interpret the results of a mediation I ran using 10,000 bootstraps. In my results, the a-path was significant and positive (b = 0.07) and the b-path was significant and negative (b = -0.50). The indirect effect was small, negative, and significant (-0.03), but the direct effect was nonsignificant (-0.03) ...
I have previously done Nearest-neighbor propensity score matching in R using the MatchIt package, where I had 20 patients in the treatment group, and 100 in the control group, and found 20 matching controls. Now, I have 15 patients in one group, and 16 in another. Can I find matching pairs in this, such that just the p...
I am working on a fraud problem and I am trying to predict either some market/stores has done fraudulent transactions or not. I've trained a boosting model (lgbm algorithm) on a unbalanced dataset. I've set the class_weight to 'balance' though. What I've found interesting and couldn't explain why is the fact that the d...
My second-year notes in Statistical Inference and Modelling (unpublished) have a definition, The likelihood function of $X$, given the data $x$, is $L∶\Theta\rightarrow\mathbb{R}$ defined by $L(\theta;x)=f(x;\theta)$. My third-year notes in Bayesian Statistics (unpublished) have a statement, the likelihood is propor...
I conducted a crossover study where 10 subjects performed tasks using two different methods (A and B) based on different conditions. 5 of the subjects started with method A and 5 subjects started with method B. After completing the tasks in each method, the remaining method was performed. During the method, the subject...
I'll TL:DR this in case if it's too much to sort through. Depending on method: either lmer(), lme(), or aov() and output method: either summary(), car::Anova(), stats::anova() or lmerTest::anova(), I get different results for my variables. Even if the model is the same. My main confusion is: Why all the different metho...
My research involved two types of contextualized tests to examine two types of knowledge of collocations. The first test is a multiple-choice (with 3 options) and it was used to examine receptive knowledge of collocations. The second test is gap-filling and it was used to examine productive knowledge of collocations. ...
EDIT: Is seems like the dev version of fabletools (.3.2.9000) includes the capability to do what I want via the boostrap option. I'm leaving this question unanswered until things get formally released. I have a series of grouped forecasts that I'd like to reconcile (ideally via MinT, as below) in a way the preserves th...
In Pierre Brémaud's book, Markov Chains - Gibbs Fields, Monte Carlo Simulation and Queues, exercise 2.6.9 is stated as follows: Let $\{Z_n\}_{n \geq 1}$ be an IID sequence of geometric random variables: for k $\geq$ 0, $\mathbb{P}(Z_n = k) = (1 - p)^kp$, where $p \in (0,1)$. Let $X_n = \max(Z_1, ..., Z_n)$ be the reco...
My problem is whether I should use TimeSeriesSplit for cross validation of my classifier models (SVC, Random Forest etc). The input data has a bit of temporal sense. The X features are rolling(1yr, 2yr or whatsoever) z-score of daily market data. So the raw data is time series data, but the data to be learned by Classi...
Suppose we sample the following two random variables, for some large integer $n$: Let random variable $X_1$ be a uniformly random subset of $m$ elements chosen from set $[n]:=\{1,\dots,n\}$, where $m < n$. Let random variable $X_2$ be a uniformly random subset of $k$ elements of $X_1$, where $k<m$. In other words, $X...
If we have a linear regression of the form $$ Y = \beta_0 + \beta_1X_1 + \beta_2X_2 $$ is it valid to interpret the coefficient $\beta_1$ as the associated change in $Y$ when $X_1$ increases by a unit of 1, when $X_2=0$?
I am working on machine learning model. The target is to learn the behavior of a black box which has a couple of inputs and one output signal. I have generated some training data by applying different input signals to black box however I am facing an issue, i.e., for a given set of input values the black box does not g...
I've conducted an experiment using seeds from several locations to test their viability. For each location, seeds were classed as viable or non-viable, giving me the total amount of viable and non-viable seeds for each location as my dataset. Now I would like to compare the locations to see if there is any significant ...
So my study intends to conduct a cluster analysis using 2 variables (RP and AP). I intend to find four clusters (AC, BC, CC and DC). I would then like to examine differences in education, height, age, and weight amongst the identified clusters (AC, BC, CC and DC). How would I go about examining this? Do I just create a...
I am planning to run a multivariate meta-analysis with 11 studies and a total of 32 effect sizes in R. As this number is quite small, I would like to run an a priori power analysis to show that despite this quite low number of studies, the power is sufficient. I have found examples to run it in R, however, I assume tha...
I've been trying to work through this in my head and can't figure out what I'm missing. Here's the problem: A 20 sided die is rolled 100 times and we count the number of 20's we roll. Well, it turns we rolled zero 20's. That's odd! But how odd is it? My first instinct is to say the probability of not getting a single 2...
My task is multiclass classification of item to buy (next). I have a purchase history dataset with a datetime feature. From it I could engineer many new seasonality features: Time of year (season, month, custom) Time of month (start/mid/end, custom) Time of week (each day, is weekend, custom) Time of day (day part, ho...
Suppose If I have a data set of workout times,intensity of the workout,etc for set of individuals. The patterns repeat based on the day of the week. Suppose Mondays are busy days and people are reluctant to go to a gym/jog, Friday party mode is on and so on. What is the best model to use in this kind of scenarios. Supp...
I performed AUC-ROC curve analysis to confirm the biomarker potential of genes that were significant in gene expression results. This is how the graphics came out in the genes I determined. How can I comment, can you help me?
I am recently studying graph neural networks (GNNs). I have read some papers, e.g., Semi-Supervised Classification with Graph Convolutional Networks, and blogs, e.g., Training Graph Convolutional Networks on Node Classification Task. Spektral (python package) has a nice introduction to graph neural networks. One use ca...
Given the formula for Confidence Interval = x̄ ± z * ơ / √n If I have a population of 3000 people. I take a sample of 3000 (I assume I can do this without replacement, so this is the whole population) so n = 3000 I am expecting it to result in Confidence Interval = x̄ ± 0 Because I asked everyone in the population, I s...
For a self-study course, I'm looking for bibliography that describes current MCMC algorithms. I'd prefer a book or a review paper. My background knowledge is at the level of Gamerman-Lopes or Gilks-Richardson-Spiegelhalter and I will read Liu soon, but I'd like to find other good updated material that will help me unde...
The Python package statsmodels comes with robust models of linear regression (RLM, https://www.statsmodels.org/stable/rlm.html). And the R package robustbase provides robust GLMs (glmrob, https://www.rdocumentation.org/packages/robustbase/versions/0.95-0/topics/glmrob). My question is: When reducing to the default para...
I have been researching a medical topic and stumbled upon a paper that is really useful for me but I am limited by my math/statistics knowledge. The paper reads as follows: the Gmax and Tlag measurements were not normally distributed and so were transformed to log10 values before t test analysis. I have then the resu...
Lets say I have 200 data points from a distribution with standard deviation 4.2, and 50 data points from a distribution with standard deviation 3.5. Can I calculate the standard deviation for the mean of all 250 data points? If so, how?
What is the procedure to find the optimal decision threshold in an imbalanced classification problem to maximize the F1 score? I'm using an xgboost model. Your help is highly appreciated.
Let $X$ be an N-dimensional normal random vector with non-zero mean $\mu$ and diagonal covariance matrix $\sigma^2I$. I would like to understand if it is possible to derive the expected value of the random variable $\frac{X_i}{\|X\|^2_2}$; in other words \begin{equation} \mathbb{E}\left[ \frac{X_i}{\sum_{j=1}^N X^2_j} ...
I'm modelling an illness-death multi-state model (see image, taken from the {survival} vignette, https://cran.r-project.org/web/packages/survival/vignettes/compete.pdf), and have a basic question: in my data, some individuals start in the 'Health' state, whilst some start in the 'Illness' state. I believe the initial s...
This may be a weird question. My colleagues and I are working on a medical estimation problem, where relevant prior knowledge regarding plausible values of some physiological parameters exists. In addition, these parameters can be estimated using time series data, which often have some tens of thousands of samples. Wha...
I am trying to solve this problem: Assuming for the phishing values to come from a Poisson distribution of unknown lambda parameter, use the sample values to numerically estimate the parameter with the method of maximum likelihood, compare it with what you would have with the method of moments and with this estimate c...
I have this question on an ungraded practice test. The possible outcomes of an experiment are 1,2,3,4,5,6,7,8, and assume that all of the outcomes are equally likely. Let A be the event that the result is odd, and let B be the event that the result is less than 4. Calculate P(A and B). Round your answer to 3 decimal pl...
I've kinda asked this before, but I guess that I've made it too complicated and I still don't get it right...(I'm using R, so lmer) To put it simply: can we have NAs in the outcome and/or in the predictor variables of a linear mixed model (or should we always delete them or imputate?) So, 1) Can we have Na/missing da...
The precipitation data points don't make a straight line along the blue regression line and most of them are present between 24.25-25.25 °C (approximately). What does this tell me about the correlation between these two variables? Maybe a low positive correlation? Where AvgTMean = Average annual mean temperature AvgPpt...
I have a set of 1D data as shown below. I want to find a metric that represents the number of clusters in data. Is there any suitable metric that matches my criteria? Example 1D data list: [68, 3, 3, 3, 2, 2, 36, 33, 3, 2, 2, 3, 3, 1, 3, 2, 3, 3, 3, 35, 2, 3, 3] If I plot this in a histogram plot with data on the X axi...
Bear with me as I am not from statistical background. My question is about the implementation of PGAS algorithm as given in Lindsten et. al 2014 concerning sampling in state-space models. The two algorithms in question taken from the aforementioned paper are given below: The algorithm makes use of PGAS Markov kernel a...
My request is best explained with an example. Suppose the upcoming week of (American) football matches are Bills vs Jets Saints vs Falcons Rams vs Lions Packers vs Bears Chiefs vs Chargers Giants vs Cowboys I ask three guys and three girls "who will win?" Their responses are guy 1: Bills and Rams guy 2: Jets, Rams, an...
Suppose $X$ given $\theta$ has pdf $f(x\mid \theta)=e^{-(x-\theta)}I(x>\theta)$ and there is a standard Cauchy prior on $\theta$. As part of an exercise, I am trying to find a Bayes estimator of $\theta$ when the loss function is $L(\theta,a)=I(|\theta -a|>\delta)$ for some specified $\delta>0$. So posterior density of...
I have a set of input points $(x_i, y_i)$ and a point is drawn at $(p, q)$. This gives me a distance vector $d_i$ of L2 distances. Later, each point $(x_i, y_i)$ moves to a new point $(x_i', y_i')$ and I want to find the new point $(p', q')$ that minimizes the MSE error of the new distances $d'$ to $d$. In other words,...
There are many great answers on Cross-Validated explaining that the p-values for cox.zph (or other regression models) in R refer to the difference between a factor level and its reference (here & here, for example). If one desires to get the overall significance of the categorical variable as a whole (as in the top row...
The cuminc() function in R from the package cmprsk (https://cran.r-project.org/web/packages/cmprsk/cmprsk.pdf) allows us to get an estimation of the CIF for an event of interest in the presence of competing risk events. Is this the only valid (known to this day) way of estimating the CIF when there are competing risk e...
This is my code, I calculated R square using Scikit learn : y =[0, 10, 20, 30, 40] f =[0, 1, 2, 3, 4] r2 = r2_score(y, f) print('r2 score for perfect model is', r2) Output : r2 score for perfect model is -1.4300000000000002 Why is this coming out negative?
In the context of linear models, I can see why omitted variable bias may matter, as often we are interested in causal effects. In the context of time series models, we are often interested in prediction. In such a case, wouldn't using biased coefficients on predictors work? Such coefficients would capture the effect of...
I'm trying to make sure that I'm using mixed models in the correct way. I measured enzimatic activity in 10 specimens (5 female and 5 male), each one measured in three technical replicates. These measurements were made during the four seasons in two different years. I would like to know if Season, Sex and the interacti...
I'm wondering if there is a way to plot a difference curve for two smooths involving the intercept. Here is a summary of the model smooths. s(percent) s(percent):x1x2voiced.D s(percent):x1x2voiceless.f s(percent):x1x2voiced.G s(percent):x1x2voiceless.h s(percent):x1x2voiceless.s ...
I am doing a research project looking at the impact of noise on fish behaviour. I have two experimental groups, with one doing a task in the control (silence) condition and the other doing it under noise. Due to unforeseen circumstances, we did not have the expected sample size of fish to test on so decided to retest 1...
I am confused between two different properties of a model. Both are called sensitivity. First, sensitivity is another word for true positive rate. Second, the output of a model changes in response to its settings. These changes, often presented on a tornado plot, are also called sensitivity. Is there a way to avoid con...
I'm new to stepwise regression and I've been asked to conduct one for my boss. In doing so, they also asked for the effect sizes from each predictor in the model. Disregarding any debates around whether or not one should conduct a stepwise regression (remember, this is for my boss), is it possible to get the requested ...
I have a question regarding sample size (power) calculations when considering time-to-event data. When there is previous data for an RCT that showed non-inferiority (e.g. a simple two group set-up, treatment A and B, followed-up for 5 years) with a given hazard ratio, e.g. 0.7, [CI 0.4-1.0], what would be the best way ...
I am currently learning Lasso regression, and I am confused about a lecture slide that I am looking at: https://www.stat.cmu.edu/~ryantibs/datamining/lectures/17-modr2.pdf (Page 9). I attached a screenshot of page 9 here. In particular, the slide says that "if we center the columns of X, then the intercept estimate tur...
I am asked to calculate the standard error of the sample mean using bootstrapping for this data set y = c(4.9, 3.3, 2.2, 2.3, 1.6, 2.4, 4.7, 1.4, 1.7, 5.1) The solutions are as follows: set.seed(12345) nsim = 10^6 ybar.sim = numeric(nsim) for (i in 1:nsim){ y.sim = sample(y, replace=TRUE) ybar.sim[i] = mean(y....
Let say if I fixed the filter size as 3x3, then shouldn't an input of 128x128 image has a larger receptive field size than an image of 32x32? In addition, what would be the affect of stride and padding on the receptive fields? thank you.