instruction
stringlengths
9
38.7k
In a (including convolutional) neural network, suppose I get a fair accuracy (say, $\approx 80\%-90\%$) on my validation/test data, but extremely good accuracy ($\approx 100\%$) if I run it back on my training data. Does this necessarily mean that my network is overfitting, and I should apply some techniques (get more ...
I'm computing growth rate for some companies annually for 3 years using this formula, for each year: ((# customers year 2 - # customers year 1) / # customers year 1) * 100 The problem I'm running into, though, is that the # of customers is changing drastically for some companies...from starting a business, going from q...
LightGBM wiki says: LightGBM uses the histogram based algorithms, which bucketing continuous feature(attribute) values into discrete bins, to speed up training procedure and reduce memory usage. With this approach, if my continuous feature has a power distribution, most observations will fall into the first few bins,...
So I know if we have a normal likelihood $P(\mathbf{y|b}) = \mathcal{N}(\mathbf{y}|\mathbf{Gb}, \mathbf{\Sigma}_y)$ and a normal prior $P(\mathbf{b}|\mathbf{\theta}) = \mathcal{N}(\mathbf{b} | \mu_p, \mathbf{\Sigma}_p)$ specified by some hyperparameters $\theta$, then the marginal likelihood is given by $$ P(\mathbf{y}...
While performing model selection, the subset selection method suggested that the model with 6-variable is the best fit for the data set based on BIC. Whereas the MSE obtained by performing Cross Validation on the same data set suggests that the model with 11-variable give the best accuracy. Which one would perform well...
Given some quantity $z$ which takes on two values, either $1$ or $2$ with probabillity $P(1) = 0.3$. Consider that there is some other measurement $y$ which takes on values $U$ or $V$ where we have that if we obtain measurement $V$ then we know that the probability of getting $z=1$ is $0.5$. Assuming we made a measurem...
After estimating an OLS regression why would you multiply the coefficient by the standard deviation of the independent variable? Also, how is the interpretation of that different than the interpretation of the coefficient itself? Thanks.
I want to generate a time series where the individual variables form a Markov Chain and where the marginal distribution is a 2-parameter Gamma. How do I do this?
I have data set in which many parameters (a,b,c,d,y,z) are dependent on other parameter (x). When I plot these parameters against x I get a scatter plot. Please see figure for (a vs x) plot. I can use MATLAB to apply basic fit (cubic, quadratic) and get equation out of it but the fitted curve doesn't cover all possible...
I ran a logistic regression with categorical variables. The estimates and odds ratios are: Marital_Status- Estimate: .6605 Odds Ratio: 3.747 Professional Suffix: .5342 Odds Ratio: 2.911 I understand that the odds ratio says : "The odds of the dependent variable happening is 3.747 times higher if someone is married ...
My team made a survey about sexual behaviors among college students in China, and the result looks unreasonable1, so we suspect that many of the participants aren't serious when filling out the questionnaires. I'm considering adding audits in the questionnaires. For example, On average, how often do you have sex with ...
In the last part of this question, I have to conduct a hypothesis test for the difference of means of the two plants. H0 : uA - uB = 0 H1 : uA - uB > 0 So I consider the sampling distributions of A and B. But I don't know the variance of B. How should I proceed? The official answer has just assumed this variance t...
Is conducting repeated measures ANOVA appropriate on two different variables collected from the same subject (e.g. rated difficulty and response time)? So, there is no treatment, just a couple of measures collected from each participant. I've never seen such practice, and am pretty confused as whether I should refuse t...
Every month I send out an email to prospective customers. The client I use tracks the number of recipients and the percentage of the emails that were opened. Here's a sample, there's thousands of rows in the original. I want to know how to calculate which emails were engaged with (i.e. opened) the most. I don't want...
I am trying to decide which among for model selection criteria to use for a Bayesian nonparametric model. The candidates are: The L-criterion, as defined by Laud & Ibrahim (1995); Bayes factors; Bayesian Information Criterion; and Kullback-Leibler divergence. Is one criterion better than the others? Can you point me ...
I have the following problem: for each example $x^*$ I need to find all examples for which $x^*$ is in their k-nearest neighbourhood. $$Is\_neighbour\_of(x^*)=\{x: x^* \in kNN(x) \}$$ There is a lot of techniques, like kd-trees, to perform k-nearest neighbours search quickly, but my problem is a reverse version of that...
Suppose an experiment with a matched, cluster-randomized design. Units are nested in groups, groups are matched through pairwise matching via Mahalanobis distance, and a treatment is randomly assigned to one group within the matched pairs. It is often proposed to include only variables for the matched pairs in the mod...
I have this Gamma density function: $$\frac{1}{6\theta^8} x^3 \exp\Big[\frac{-1}{\theta^2}x\Big]$$ If I calculate the MSE I have that: $$\hat\theta=\frac{1}{2}\sqrt{\frac{1}{n}\sum{x_i}}$$ Now, if I calculate the Cramer Rao lower bound for this distribution, I have: \begin{align} \frac{\partial^2\log(f(x))}{\partial\th...
I am looking at school data, and wondering if school level disproportionate discipline affects the academic outcomes of students. The data I have are by student, with demographic information, an outcome binomial variable for whether the student met or exceeded standards in math and reading for that year, and then schoo...
I am trying to model interest rate data using ARIMA in order to estimate the effect of an external shock. However, when I run the ADF and KPSS tests, both conclude that stationarity is rejected. My understanding is that this means that there is a unit root in the series, and that any external shock will be persistent f...
When researching the reciprocity failure (a feature of film photography, otherwise more appropriate to https://photo.stackexchange.com/) I have run into a statistical issue. I have a datasheet for a photography film specifying the measured and effective exposure time for 5 exposure times. I found these times highly inc...
We are doing fire probability modeling using a Monte Carlo approach. Essentially, we use historical fire statistics and weather culled from a 50 year period to develop inputs to a fire model that then draws from these distributions to burn fires for a single season. We then run ~50,000-100,000 simulations and end up wi...
If you have two sampling designs $p_1(\cdot)$ and $p_2(\cdot)$ (defined on the same set of samples $\mathcal{S}$ from the same population $\mathcal{U}$) such that they induced the same inclusion probabilities of first and second-order, then $p_1(s) = p_2(s)$ for all sample $s$ in $\mathcal{S}$. Is this sentence true?
firstly thank you for taking the time for reading this and thank you even more if you can help me. So, i have an outcome variable with 11 options where 1 means that the person is totally fine and 11 means the person can't get out of bed. So i have to use this variable as an outcome variable in a regression analysis for...
This is a follow up to my question here. I've spent some time refining my data at work, and after deciding to go with the TBATS model, I'd like to generate a forecast value. Here's my code so far: > library(forecast) > tbats_model = tbats(=v01$Units, seasonal.periods = 12) > tbats_model TBATS(1, {0,0}, 0.876, {<12,4>}...
and thank you in advance for any suggestions. I have 20 binary symptoms (for example, anxiety yes/no, depression yes/no), and i have to do a cluster analysis for my research project in order to see which symptoms cluster together. However, i find this quite challenging, as i don't know which method of hierarchical clus...
I've done a classification with different machine learning method, as result i've the confusion matrix and the roc curve. To find best classification model, i'm looking for a method to combine the indicators computed with the confusion matrix, for example i've thought : score=efficiency+purity+completeness-contaminatio...
I came across Johnson's system of distributions. Here, I found the following figure: The author says: There is a unique Johnson distribution corresponding to each feasible combination of $\beta_1$ and $\beta_2$[, i.e. skewness and kurtosis]. My question is as follows. How can I draw a sample from a distribution tha...
I've been working on a stats package that includes Bayesian survival models. The user is allowed to write priors directly for all the parameters involved. However, I think it's pretty difficult for typical users to come up with priors for baseline parameters; if you were to ask me to put a prior distribution on the sha...
I am testing splitting phone calls to a service between two IVR menu's to determine which messaging is more effective. 80% to the main IVR menu (Group a) and 20% to an alternative (Group b). The data I have is Group a: Total calls, Transfer rate (10,000, 15%) and the same for group b (2000, 10%). I want to determine wh...
I am interested in the distribution of the sum of squared elements of a multinomial distribution. Specifically if: $$\vec X \sim \text{multinomial}(N,\vec p)$$ What is the distribution of: $$\sum_{i=1}^{k} X_i^2 $$ where k = dim(X). Put another way, if: $$\hat{\text{var}} X = \frac {\sum X_i^2}{k} - \frac{\left(\sum X_...
I was just wondering as to the specific scenarios one would use multivariate linear regression to predict an output against something like logistic regression with multiple classes. Would it be primarily based on how logistic regression offers the probabilities for an outcome? Which cases is each one the best in?
I mainly use spss modeler but I don't think it has the functionality to use a generated model to predict the group new unseen cases belong to (one of two). It seems like it would need to be done manually? I was wondering if it's possible in R? For instance, after splitting my data into training and test, I want to crea...
Another question from Introducing Monte Carlo Methods with R by Robert and Casella. Exercise 3.6 basically says the following. Suppose $f$ and $g$ are densities. Draw a random sample $X_1, \ldots, X_n \sim g$, then draw $(w_i \mid X_i) \sim Poisson( (f(X_i)/g(X_i) )$ for $i = 1, 2, \ldots, n$. Also define $X^*_i \...
I'm not sure why one would use ABC/Likelihood-free inference methods instead of standard Bayesian inference methods. Is this fundamentally a conceptual problem of mine? Are there any concrete examples which could elaborate on when to use the former as opposed to straightforward Bayesian inference?
In the original paper on Dropout by Srivastava, Hinton, Krizhevsky et al. (2014), the authors make this claim in the introduction: With unlimited computation, the best way to "regularize" a fixed-size model is to average the predictions of all possible settings of the paramaters, weighting each setting by its posterio...
I know machine learning algorithms are good at determining/predicting what an instance is (classification and such) or how instances are related. Are there any algorithms that, given classified training data and classified test data, can describe (in some way, maybe pointing out attributes) why an test instance is clas...
I am trying to predict the sales of a product whose past 5 years data is available to me and some independent variable are also available (like the target market size, marketing budget, price, etc.). So now I can't use ARIMA or some time series model nor can I simply use regression to predict the sales. How should I go...
I'm software engineer of an E-commerce company, facing a problem like this: An e-commerce shop sells their products daily and wants to know what conditions that might improve their sales. I'm building a AI sales predictor based on: Categorical variables week days (Mon, Tue, Wed,... Sun) day period in a month (<10, 10<...
Take a DGP $y_t = \alpha + \beta_1 * X_{1,t} * D_{[t\leq\bar{t}]} + \beta_2 * X_{1,t} * D_{[t\geq\bar{t}]} + \beta_3 * X_{2,t} * D_{[t\leq\bar{t_2}]} + \beta_4 * X_{2,t} * D_{[t\geq\bar{t_2}]} +\epsilon_t$. Suppose I estimate instead $y_t = \mu + \beta_5 * X_{1,t} * D_{[t\leq\bar{t}]} + \beta_6 * X_{1,t} * D_{[t\geq\ba...
I have two questions .It would be really helpful if you kindly reply because after doing lot of research too i still cant get rid of my confusions. I have read that in Euclidian space we use centroid method to represent a cluster . If it is so then how to use complete linkage or single linkage methods. B...
My problem is a small sample of quarterly macro data with only about 55 observations. During the observed period there were several shocks, one of which happened four years ago and was rather huge, affecting all variables. Now I am trying to forecast GDP growth based on 20 other macro/financial variables, but the forec...
From the Wikipedia page titled correlation does not imply causality, For any two correlated events, A and B, the different possible relationships include: A causes B (direct causation); B causes A (reverse causation); A and B are consequences of a common cause, but do not cause each other; A and B both causes C, which...
I' want to train a model for classifiation. I have a pretty small data-set (about 400 data unevenly distributed among three classes). To evaluate my model, i want to perform cross-validation, with a step of feature-selection (by wrapper) for each fold. I read that using different data for feature selection and for trai...
I am new to statistics and it this the first time I am trying to normalise variables. Thus, sorry for my incompetence. My goal is to classify the landscape by cluster analysis (using kmeans in R) and see if there is a relationship between species distribution and type of the landscape. However, some of the variables (t...
i am beginner to machine learning and i have some doubt related to linear regression.here is the link of my repository https://github.com/utkarshmani1997/Machine_Learning/blob/master/exercise_1/exp1.ipynb i was trying to predict the profit but it is giving negative values.What does it mean?
I am attempting to pool results about the relationship between change in body composition and change in metabolic markers (e.g. cholesterol, triglycerides etc.) from a variety of studies. Most of these studies are RCTs (with results at the level of the study, or trial arms), with BMI as the primary outcome and metaboli...
Let's say I have two different distributions. If I take a random sample from one of them $x_1$, and a random sample from the second of them $x_2$, I can compute their ratio as $R = \frac{x_1}{x_2}$. (Assume that there are no zeros in any of the distributions, or that they can be removed/ignored). If I repeat this proce...
We already had multiple questions about unbalanced data when using logistic regression, SVM, decision trees, bagging and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with ...
R-squared (coefficient of determination) is usually used to assess the goodness of fit of a regression model to the data. Here, I provide two simple datasets that I think their best-fit lines are equally good, but they got two different r-squared values. x1 = [1,2,3] y1 = [1,2,3.5] x2 = [1,2,3] y2 = [2,4,6.5] The best...
Assume A/B test with control sample $X = \left(X_1, \dots, X_n\right)$ and treatment $Y = \left( Y_1, \dots, Y_m \right)$. Let $X_i$ be i.i.d. $\text{Bernoulli}(\mu_x)$ and $Y_j$ be i.i.d. $\text{Bernoulli}(\mu_y)$. Both parameters are unknown, the two samples are indepenent (unpaired). I would like to compare true m...
I have fitted two models. Model 1 has 264.514 less AIC than model 2, a drop from circa 7800 to circa 7500. However, model 2 has adjusted R^2 equal to 40 percent, while model 1 has it at 36.8 percent. What gives? I thought such a significant $\Delta AIC$ would most likely also increase the adjusted R squared? If it he...
I'm currently implementing a neural network architecture on Keras. I would like to optimize the training time, and I'm considering using alternative optimizers such as SGD with Nesterov Momentum and Adam. I've read several things about the pros and cons of each methods (SGD with Nesterov momentum: very sensitive to ini...
I am studying Structural VECM models using Lutkepohl's book. VECM process has the following Beveridge-Nelson MA representation: $$y_t = \Xi\sum_{i=1}^{t}u_i + \sum_{j=0}^{\infty}\Xi_j^*u_{t-j} + y_0^*,$$ where the $\Xi_j^*$ are absolutely summable and $y_0^*$ are some initial values. Hence, long-run effects of shocks (...
Can someone clarify the difference for me between the spatial median and a group centroid, in the context of a group of points in multivariate space. I have 9 locations each with 30 samples each. Each sample is a quadrat with species abundance data for multiple species. I want to determine the group centroid for each ...
I'm interested in extracting different types of (adjusted) R^2 from a panel model with time fixed and individual fixed effects, that is: The overall $R^2$ The within $R^2$ The between $R^2$ (For an explanation, see Interpretation of $R^2$ in fixed-effects panel regression.) I'm using the felm function from the lfe pa...
I'm interested in the effect of continuous variable A at the two different levels of categorical variable B. I had thought that the following approach would give the same estimates for the effect of A: Y = A + B + A*B Y = A (in data where B=0) Y = A (in data where B=1) For example, here is a CoxPH model in R with some...
I have the following experimental design: 9 mice (mouseID) were assigned to three different treatments (n=3 per treatment level) and we estimated the composition of microbial species in the gut at 5 time points (by 16S sequencing). I would like to know if the community differs between the 3 treatment levels and was thi...
Here are my residuals versus my fitted values. I am not sure how to interpret this. The upper blue line is decreasing (I drew this myself, it's not some fancy estimate), but the lower blue line stays somewhat constant, instead of increasing. If the lower increased, I would say it is heteroscedasticity, but since it do...
I have a sample of 1000 observations, divided into 2 groups: treatment and control (500 in each group). Each observation is dichotomous: 1 if an event occurred (bad event), and 0 if no event occurred. I wish to test the non-inferiority hypothesis that P(treatment)-P(control)=0.01 vs. P(treatment)-P(control)<0.01, meani...
What is a good introductory book about autoregressive processes? Ideally, it would cover most of the recent developments in the field. I am looking for this reference both for personal enlightenment and to use as a reference in my dissertation in a related material section. Wikipedia mostly points to economics / econom...
Saying, I have a VAR model $$ y_{1,t}=\mathbf{A}^T\mathbf{y}_{t-1} $$ where $\mathbf{A}^T=(a_1,a_2,\dots,a_n)$ and $\mathbf{y}_{t-1}=(y_{1,t-1},y_{2,t-1},\dots,y_{n,t-1})^T$. I know there are many algorithms (closed-form or iterative ones) to estimate the parameter $\mathbf{A}$. But how to efficiently estimate $\mathbf...
What are the advantages and disadvantages of using logistic regression to represent the probability of a binary dependent variable Y, given that the independent variables x1, x2, ..., xn are also binary?
I am running a generalized linear model with Gamma distribution in R (glm, family=gamma) for my data (gene expression as response variable and few predictors). I want to calculate r-squared for this model. I have been reading about it online and found there are multiple formulas for calculating $R^2$ (psuedo) for glm ...
I want to use the Whitney Mann U test (i.e. Wilcoxon Rank Sum) test to test for differences in an ordinal outcome variable (say a 5 point Likert item) among two randomly selected samples. I've read a few articles online and I'm not sure what challenges are introduced when the data are in fact ordinal. Hopefully you all...
A related post here. In which the author claimed, if $X_{i}\sim N(\mu,\sigma^2),i=1,\cdots,n$ are iid then $$\frac{(n-1)s^2}{\sigma^2}\sim \chi^2(n-1)$$ in which $s^2$ is the unbiased sample variance. i.e. $s^2=\frac1{n-1}\sum(X_i-\bar X)^2$ where $\bar X=\frac1n\sum X_i$. I want a proof of it. But I can't do one on...
I want to simulate a random walk without drift to predict a time serie. The random walk model is $X_t = X_{t-1} + \epsilon_t$ where $\epsilon_t$ a white noise with a Normal distribution. It seems that I can't just take the mean and the standard deviation of my data's first difference ($Y_t = X_t -X_{t-1}$) and extrap...
I'm using Xgboost's gradient boosted tree model for binary classification. It has a max_depth parameter, which specifies the maximum depth of each individual tree. This makes me assume that it can potentially stop splitting and end with a tree that is shallower than the max_depth tree parameter. When building a tree,...
Random forests select a subset of the features at each node and only considers those features as candidate splits. Wikipedia says this is sometimes called feature bagging. Does XGBoost also use this technique, in its tree learning, when growing an individual tree? Or does it consider all possible features when examin...
At a homework assignment, we are supposed to estimate the total in a population using a Horvitz Thompson estimator, and then estimate the variance using the jackknife technique. As a first step, I wanted to use the jackknife to get a point estimate. To use the jackknife technique, one should delete one observation at a...
I am a complete newcomer to the field of machine learning. I do have a lot of experience in computer programming, but nothing related to ML. My question is whether or not ML would be a good approach to isolate portions of a source code file that contain references to a software license. For example, often times a sou...
It's well known that linear regression with an $l^2$ penalty is equivalent to finding the MAP estimate given a Gaussian prior on the coefficients. Similarly, using an $l^1$ penalty is equivalent to using a Laplace distribution as the prior. It's not uncommon to use some weighted combination of $l^1$ and $l^2$ regulariz...
I'm curious whether there are any off the shelf methods (R, Python packages) that can generate a bayes factor for an unequal variances test. Often times we use an F-test, Bartlett's test, Levine's test, or Brown-Forsythe, these are defaults in JMP, to test whether the variances of two populations are equal. Which test...
I am giving a "blind idiot's" try at VIF (do not understand it, it is just quoted in a hurry by my course) and I notice that adding interactions seems to change the results considerably. This at my level of ignorance seems counterintuitive, is there I simple intuitive explanation? fit_promo_disc <- lm(sales ~ discount ...
Consider the following simple neural network which is trying to figure out a function with 1 input feature which directly maps to a y = 1 when X >= 12500 and a y = 0 when X < 12500... import numpy as np from keras.layers import Input, Dense, Dropout from keras.layers.normalization import BatchNormalization from keras....
I have a data set classifiable by gender (male and female) and genetic status (WT and mutant). The WT data is mostly consistent with tight standard deviations, whereas the mutant data is highly inconsistent with variable standard deviations. The n is equal for both sets. I am interested in the following - 1) running a ...
I have a question on the Kolmogorov-Smirnov test. This is what I know about the test. Consider the sequence of i.i.d. random variables $\{Z_i\}_{i=1}^n$ and let $\{z_i\}_{i=1}^n$ be one possible realisation of the sequence. We want to test $$ H_0: Z_1\sim F \text{ vs } H_1: Z_1\nsim F $$ where $F:\mathbb{R}\rightarr...
I am trying to assess whether it would be useful to master propensity scoring to apply to a certain problem, or whether it would be better to rely on ordinary logistic regression. I want to evaluate the effect of a treatment, X, on an outcome, Y, while taking into account a set of covariates. First I use a set of c...
I am running an ordinal logistic regression model in R. My dependent variable is a categorical variable with 4 levels. I have six independent variables. When I run the ordinal logit, one of the six independent variables gets split into two with each having its own coefficient. I was wondering why this could be happeni...
I was recently asked the reasons and implications of constraining the coefficients of an Ordered Probit estimation to sum to one. I sincerely never heard of it. I'm aware of the convexity property in the context of optimization, but in the case of a categorical econometric model, my best guess would be a potential nee...
In the seminal paper on ImageNet classification with deep conv nets by Krizhevsky et al., 2012, the authors talk about overlapped pooling in convolutional neural networks, in Section 3.4. Pooling layers in CNNs summarize the outputs of neighboring groups of neurons in the same kernel map. Traditionally, the neighbor...
I'm investigating if two of our processes are producing products with the same or different average measurements. The first process has been used for a very long time and thus I have a sample size of 430 measurements for it. The second process is very new and only has a sample size of 15 measurements for it. I've do...
I'm facing a binary classification problem using svm light. However using 5-fold-validation I noticed that later I train SVM with training set (Half positive and half negative samples about) the predictions on the test set(Half positive and half negative samples about) are almost all positives or all negatives causing ...
I have a time series data of accelerometer in X,Y,Z axis. Data is not sampled at a constant sampling rate(but is close to 100 Hz). In the paper I am referring, it mentions that for feature selection I have to use 'windowing technique', with window of interval 4 seconds. And the 'Features' that are extracted can be ei...
I have a classification problem (A, B or C) that appears to be handled well by Random Forest (7 explanatory variables). I've read that some people find it inappropriate to use Leave-One-Out (L-O-O) for cross-validation purposes. They say there is a minimum fraction of hold outs that are required. Okay, but my uninforme...
Let's say I have a generation task like a GAN or other method for next-frame video prediction, consisting of a 256x256x3x10 image sequence, plus a 1-hot vector of length 4. If the result of the prediction actually depends 90% on the value of the 1-hot vector and 10% on the value of the 256x256 input, what kind of arch...
I have a dataset of around 1 million short phrases (mostly 2-3 words) and they are labelled as either appropriate or inappropriate. E.g. phrases include "cute kittens", "pasta recipes", and "how to dye hair". Currently, I'm using 3 features: bag of words 2-gram character 3-gram character 4-gram bag of soundexes I don...
I am doing a research proposal comparing the rates of venous thromboembolisms in post operative surgical patients. Two groups are being studied and were assigned by the type of drug they were prescribed from their physician. The two types of drugs compared are oral anticoagulants and low molecular weight heparin. I am ...
I have fitted a model with 7-8 covariates. Here's what I do to reduce it: I first look at the p-values. I select all covariates with p-values > 0.05. Then I remove them one by one, get the AIC, and then see what had the lowest values. I pick that model. Then I repeat: again, look at p-values, pick candidates, do AIC. ...
The Gaussian process model (GP) is written as $$y(x)=h(x)^{t}\boldsymbol\beta + f(x)+\epsilon(x)\qquad[1]$$ where $h(x)^{t}$ is a regression function such as $\left [1,x,x^{2} \right ]$ ; $\boldsymbol\beta$ is the set of regression coefficients and $\epsilon(x)$ is normal with zero mean and $\sigma^{2}$ variance and ...
I am doing an MSc project determining the best DNA recovery method. I will be quantifying the DNA yield from three methods. Due to time and cost I will not be able to repeat the tests more than 10 times per method. In an ideal world this would be much higher. I have to demonstrate whether there is any statistical signi...
I am doing a fixed effects regression where the dependent variable is number of people in an treatment facility in a given state/year. We are also including a population size control variable. I am wondering if number of people in treatment facilities should be standardized to per 100,000 or percentage since larger sta...
I want to associate between staff perception of hospital quality with patient satisfaction about hospital services quality. Two different surveys were used for the 2 different population. The only common thing is that they were collected from the same hospitals. Other meaning: How to find the relation (correlation or ...
I am a bit confused about how regression modelling works. I have a response $y$, 3 continuous predictors, and 3 factors. I don't have anything else available. I fit the model y ~ cont1 + cont2 + cont3 + factor1 + factor2 + factor3 to check for fixed effects. Here's what I don't understand: What now? Should I change a...
Context : one continuous variable $Y$ dependent on $X$ ($X$ can be anything) Linear regression, generalized linear model... focus on estimating the conditional expectation $E(Y\mid X)$. I want to focus on estimating the conditional distribution. Linear regression can be seen as a parametric model for the conditional di...
I know there are many topics(1,2,3), papers(1,2,3) and websites(1) that discuss this topic at length. However for the past two days I am reading all I can find about the subject and seems I hit a brick wall in terms of progress. As so, another view on the subject would be very appreciated. For what I understood, we use...
Assume a margin of error of 5% based on a sample of x households (the sampling unit of a survey), what would be the margin of error for y individuals (y = x*z and z is the average household size)?
I encountered this problem: Suppose $Y$ has the following PDF $$f(y)=\frac c{(1+y)^2}\cdot I(0\le y\le \theta),\quad\theta>0.$$ A single value $y$ is observed from the distribution. Derive a formula for a suitable $p$-value for testing the null hypothesis $H_0:\theta = k$ where $k$ is a specified positive const...
If your dataset is big, say you have thousands of variables. Some variables are multiple categorical and some are continuous. Question is, how do you know if a variable is continuous vs multiple categorical (say 50 categories)? Is there any algorithm that can classify this?
I've used scipy's linregress function to fit lines through the points in the four panels below. The function outputs a p-value, shown on each panel. The p-values are large for panels a and b (I can't reject the null hypothesis that the slope is zero) and small for panels c and d (I can reject the null hypothesis. I am...