instruction
stringlengths
9
38.7k
I am trying to understand how Kernel Density Estimation (KDE) or (nonparametric) Quantile Regression can be used to forecast values given historical observations. For example, consider the following nonparametric regression model $Y_t = g(X_t) + u_t$ where $X_t = (Y_{t - 1}, \ldots, Y_{t - q})$. In the following equati...
I read on the cluster analysis page of wikipedia: For example, k-means clustering can only find convex clusters, and many evaluation indexes assume convex clusters. On a data set with non-convex clusters neither the use of k-means, nor of an evaluation criterion that assumes convexity, is sound. I can't see how an ev...
I have 2 Poisson variables, I know mean and standard error for each. How do you calculate the Standard error of the sum?
I will be performing my analysis in R but any general mathematical-based answers will be appreciated. I realize similar questions have been asked before but I am new to statistics so please excuse my ignorance. I do not know enough to be sure that approaches used in other threads I viewed are valid for my case so I wou...
I'm working on a meta-analysis of prevalence data. The aim is to get estimates of prevalence at the country level. The main issue is that the disease is highly correlated with age, and the sample ages of included studies are highly heterogeneous. Only median age is available for most studies, so I can't use SMR-like tr...
Suppose we're given an N dimensional data to classify. To cope with this task we may choose a classifier that suits our desires more. However obviously not every classifier is capable of classifying every data for many reasons including its VCD. Now I want to know is there a way to compute the minimum required VC-dimen...
Consider an empirical processes $\{v_T(\theta), T\geq 1 \}$ and assume it is weakly convergent to the stochastic process $\{ v(\theta); \theta \in \Theta\}$., i.e. $$ E^*(f(v_T(\theta)))\rightarrow E(f(v(\theta))) $$ as $T\rightarrow \infty$ $\forall f$ bounded uniformly continuous function in $\Theta$ and $\forall \t...
I wish to compare two test data sets using the Mann-Whitney U and KS tests in R. As a start, I thought to compare two similar sets (an A/A test) expecting to see a highly significant indication of similarity. The two lists are these shown below: https://www.dropbox.com/s/9cbvzlltdohjoef/set1.csv https://www.dropbox.c...
HI there: I have a one likert item I would like to analyze. I know that most scales require multiple likert items, but this is just an exploratory exercise of an existing survey. It's out of my control. When I treat the likert categories (strongly support - support - oppose -strongly oppose) as a numeric variable (cod...
Suppose we have the following logistic regression model: $$\text{logit}(p) = \beta_0+\beta_{1}x_{1} + \beta_{2}x_{2}$$ Is $\beta_0$ the odds of the event when $x_1 = 0$ and $x_2=0$? In other words, it is the odds of the event when $x_1$ and $x_2$ are at the lowest levels (even if this is not 0)? For example, if $x_1$ a...
I'm trying to set up a basic k folds CV loop in R. In Python I'd use scikit's KFold. import numpy as np from sklearn.cross_validation import KFold Y = np.array([1, 1, 3, 4]) kf = KFold(len(Y), n_folds=2, indices=False) for train, test in kf: print("%s %s" % (train, test)) [False False True True] [ True True ...
I've run a test on a program, upgraded the program and then run the same tests again. The first test showed that the median time for the program to respond was approximately 2.0 seconds. The second test showed that, after the upgrade, the median time for the program to respond was approximately 0.5 seconds. While w...
There are several methods to estimate parameters in a model (MLE, MAP, GMM). Does the process of estimating a parameter from historical data have a name?
In logistic regression, the gradient descent algorithm for calculating coefficients can be described this way: Until convergence, do $$ \beta := \beta + \alpha \frac{\partial L}{\partial \beta} $$ where L is the log likelihood function. Coefficients can be got quite easily here, but how can I get the p values with...
I am analyzing a public data set of information security incident data and trying to find "clusters" of related factors. Specifically, each incident is analyzed using VERIS for the actor's variety (e.g. actor.external.variety = hacktivist or actor.internal.variety = sysadmin) and motive (e.g. actor.motive = grudge) as...
I am fitting several multi-level hierarchical regression models using rstan. Each of these models has a unit information prior over the top-level distribution. The unit priors' parameters were originally store in an R list. My questions are: Do I pass the unit information prior parameters for a particular model from t...
I have a list of p-values from a series of regression equations. Many of these P-values are small. To compute false discovery rate I have been using the q-value package in R. I notice, based on this analysis, that P-values of 0.05 correspond to q-values that are smaller than the p values (0.03). Would I then say that ...
Hope i'm posting in the right thread. I have a sample of genes where I calculate a number of features in the start of each gene, and a number of features in the end of each gene. I plotted the results in 2 curves, one is the number of features in the start of each gene, and the other one is the number of features in th...
I'm currently working on a senior project and we've chosen handwriting recognition. Initially I thought that using machine learning algorithms were a good idea for this, but after the thought below I'm not so sure: Assume you found a ransom note and had a suspect. So you went to the suspects house, arrested him, and to...
BACKGROUND I have data in which the dependent variable is binary with a highly-skewed distribution: <1% records are 1 (doers), >99% records are 0 (non-doers). I'm using logistic regression to predict the probability that new records are doers. To handle this rare-event situation, I made multiple samples of non-doers th...
I would like to know the effect of an external factor on the number of visits on a website during a period of 4 weeks (only search visits from Google). For this, I measured the number of visits every day through Google research. For example I have: Date Visits 01/01/2014 456 02/01/2014 423 03/01/2014 399...
I am doing an assignment for class and I have hit a wall. I'm not sure what to do next. Using a sample with 12 discrete elements, I am trying to test a hypothesis that the population mean is 243 with significance level .05. Here is what I have so far (this has been verified): n = 12 x bar = 244.33 s = 12.382 t = (2...
I'm making a project connected with identifying the dynamics of sales. My database concerns 26 weeks (so equally in 26 time-series observations) after launching the product. This is what my database looks like: https://imageshack.com/i/0yyh6ij I want to make forecast based on S-curve for clusters of time-series. The m...
I’m examining the effects of a parent-delivered reading intervention on 11 child outcome variables at 3 different time points (pre, post-intervention and follow-up) with a control group. Total sample size is 20. At pre test, all 20 participants completed the measures. At post testing, I have missing data for two variab...
I'm trying to run an ANCOVA on SPSS with 3 variables: Gender, score 1, score 2. I want to control for the possibility that gender has an effect the scores, in order to isolate just the relationship between score 1 and score 2. However, I cannot enter gender as a covariate on SPSS as, by definition, it assumes covariat...
Suppose we have a linear regression model $Y_{it} = \beta_0 + \beta_1 X_{it} + \epsilon_{it}$, many times in literature it is assumed that $\epsilon_{it} \sim N(0,\sigma^2).$ This assumptions makes sense if we have a large data set due to the central limit theorem. My questions is that in certain situations I feel the ...
I am interested in doing a sample size calculation for exacerbation rates. I am drawing my data from a negative binomial distribution and my test statistic is based on a negative binomial glm. Currently, I have a code for a power calculation for a given sample size. How do I modify this code to calculate sample size? ...
I have a set of around 160 samples from different sediment bodies, or stratigraphic units, which I am attempting to correlate using geochemical analysis of 25 elements for each sample, and a similarity coefficient often applied in correlating volcanic ashes. The literature gives no mention of assumptions of normality f...
Is there a way of using the linear model api to add the lasso penalty for a subset of the parameters I am regressing? For example, consider a linear separable decomposition that I want to fit to some sparse data subject to smooth constraints in one of the (separable) dimension. This question indicates that this is some...
Let $\mathcal{E(h)}$ a function that given some hypothesis $h$ returns the generalization error for that fixed $h$. I was reading some notes about model selection and generalization error and it said: "If we had access to $\mathcal{E(h)}$, there would be no model selection problem either. We would simply select the ...
I have two questions. 1) If $X_1,X_2,X_3,...,X_n$ constitute a random sample of size $n$ from an exponential distribution, show that $\bar X$ is a consistent estimator of the parameter $\lambda$. This is my attempt: Mean of exponential distribution is $\lambda^{-1}$. Thus by central Limit theorem $E(\bar X)=\lambda^...
I am trying to derive the expression for the variance of $\hat{\beta_0}$ in simple linear regression. I substitute $\bar{y} - \hat{\beta_1} \bar{x}$ for $\hat \beta_0$, but in the intermediate steps the covariance term $\text{Cov}(\bar{y}, \hat{\beta_1})$ comes up and I don't know how to deal with it. Any help would be...
I want to estimate $Y$ using different independent variables. $$Y = d_1 + aX_1\\ Y= d_2 + bX_2\\ Y= d_3 + cX_3$$ Then I want to combine above 3 equations such that it gives the following relation: $$Y = d + a_1X_1 + b_1X_2 + c_1X_3$$ How can I use the above 3 regression equations to obtain a single relationship as...
MaxDiff scaling is a very popular method for understanding customer preferences. I was wondering if we can create a survey questionnaire for MaxDiff analysis in R. Can anyone shed some light on this.
I have been reading “Pattern Recognition & Machine Learning” written by Christopher M. Bishop for some time, but I am still a beginner. I wish to get a bigger view that summarizes regression and classification models. The book begins with Bayes’ theorem stating that: $$ p(\textbf{w} \mid D) = \frac{p(D \mid \textbf{w}...
If $X_1,X_2$ constitute a random sample of size n=2 from a Poisson Population show that the mean of the sample is a sufficient estimator of the parameter $\lambda$ . Since the sum of Poissons is also Poisson with parameter $\lambda+\lambda=2\lambda$ Then $E[Y]=2\lambda$. where Y constitute of two Poisson distributi...
Over a sample (of about a hundred observations), I have estimated the "empirical" entropy of a sequence of identically independently distributed random variables which have 5 possible outcomes. I was curious to know if there was a possibility to estimate in some way a confidence interval over this "empirical" entropy ...
From the joint distribution of any two order statistics, say $Y_j$ and $Y_k$, $j<k$ I would like to derive the distribution of $Z=F(Y_k)-F(Y_j)$. The initial pdf is: $$f_{Y_j,Y_k} (y_j,y_k) =\frac{n!}{(j-1)!(k-1-j)!(n-k)!} \times [F(Y_j)]^{j-1} [F(y_k)-F(y_j)]^{k-1-j} \times[1-F(y_k)]^{n-k} f(y_j) f(y_k)$$ Now I make t...
Say I have some data on people where I have a measure of their general health (some score out of 1000), the number of apples they eat in a year, and the number of oranges they eat in a year. Then I do a multiple regression and I get something like: $\hat Y = 442.22 + 1.1a + 0.7o$ where $a$ is the apple variable, and $...
I have a table of sales growth rates by month calculated thus: $$\text{growth rate}_i=\dfrac{\text{sales in month } i-\text{sales in January}}{\text{sales in January}}$$ What should I call this table? The best I've come up with it "sales growth rates from January by month". Is this ambiguous? Is there a technical term ...
Suppose that the random variable $X_T$ is $O_p(1)$ as $T \rightarrow \infty$. Does this imply that the random variable $\max\{0,X_T \}$ is $O_p(1)$?
A school is asked to send a delegation of six pupils selected from six badminton players, six tennis players and five squash players. No pupil plays more than one game. The delegation is to consist of at least one, and not more than three, players drawn from each game. Find the number of ways in which the delegation c...
We have a random number generator which is supposed to generate 64 bit floats, uniformly. We want to test whether it is a good uniformly random. I am not asking the general way to test it, as it was asked here https://stackoverflow.com/questions/22916519/test-the-randomness-of-a-black-box-that-outputs-random-64-bit-flo...
Recently I have come across usage of cluster plot, which combines k-mean clustering along with PCA. The plot shows different clusters plotted using first two PCs. I have checked some of the threads (here and here) regarding the usage. I want to know, during generating a cluster plot, does the data is clustered first a...
I've read in Abdi (2003) that When the independent variables are pairwise orthogonal, the effect of each of them in the regression is assessed by computing the slope of the regression between this independent variable and the dependent variable. In this case, (i.e., orthogonality of the IV’s), the partial reg...
I have been trying to brush up on my stats knowledge, especially in relation to Sample size determination and Statistical Power Analysis. But it seems that the more I read the more I need to read. Anyway I found a tool called G*Power which seems to do everything I need but I am having an issue understanding Noncentral...
I'm currently carrying out a four-way mixed factorial ANOVA and in the process of writing up the results. I've done simple effects analysis on all the significant interactions between the factors, however I have noticed that the output doesn't include standard deviations. I've had a look at past research and it seems ...
I am trying to implement the coordinate descent method to solve the dual of linear SVM problem, but blocked at the stopping criterion. The dual of linear SVM problem is: $$\min f(\mathbf{x}) = \frac{1}{2}\mathbf{x}^\top K \mathbf{x} - \mathbf{1}^\top\mathbf{x},\quad \mbox{s.t. } 0\le x_i\le C \quad i=1,\ldots,m$$ where...
Scenario: An email campaign where four different email designs (treatments) are sent to four different populations of equal size in an attempt to find which performs better. The results returned are: Treatment Population Clicks A 120 (Group 1) 45 B 120 (Group 2) 35 C ...
Suppose I have two different classification, e.g. C R s1 c1 r2 s2 c1 r2 s3 c3 r2 ... Where sn are the classified samples and the columns of the matrix represent the different classifications (one called R - reference, the other C - clustering). I want to check if, for example, c1 samples are significa...
I want to perform something like streaming/online/out-of-core kmeans clustering on large data. Here is simple idea: Break all data into N chunks. Read from disk 1st chunk and calculate centroids using original kmeans algorithm. Use centroid of previous chunk to initialize next chunk centroids. Do steps 2-3 N times. B...
As the title says, I'm looking for the distribution of $X$ given that $X>Y$.
For a research project, I'm asked to find ways to build an economic foresight system. For example, for the production of cheese. We will have data about the market indicators, like price, demand etc. And we want to build a system that estimates the future state of these variables. Machine Learning and Bayesian Networks...
I'm performing a t-test on a time series with a sliding window (i.e. every N samples, perform a t test). I know that overall, the samples are roughly normally distributed, however adjacent samples are correlated, so the N samples (taken for the t test) may not be normally distributed. Are the t test assumptions violate...
I ran an experiment with an eye tracker and my data frame has this look: Condition DWellsAOI1 DwellsAOI2 TotalDwells Participant1 1 12 13 25 Participant2 2 100 11 111 Participant3 1 50 50 100 ...
hopefully someone can point me in the right direction here. I'm using boosted regression trees (BRT) to assess the relative importance of a number of environmental factors (sea bottom temperature, sea bottom salinity, substrate grain size, depth, distance from shore, maximum water speed @ seabed) on fish abundances (4 ...
When learning a Restricted Bolzmann Machine with Contrastive Divergence $\mathbf{CD}_n$ for $n>1$ should we make the hidden states binary in the updates that are in between? In Hinton's - 'A Practical Guide to Training Restricted Bolzmann Machines' two contradictory reccomendations are mentioned: 3.1 "It is very impor...
This is rather a theoretical question in order to save the trouble in trying to do empirical testing and is part of a bet, so I hope I am right... Say there are M classes in the data BUT you want to classify JUST between to subsets of these classes: M1 and M2 (M1+M2 = M). For example all M1 are different types of fraud...
According to this document: "In order to “correctly” use path analysis, Kerlinger and Fedhazur (1973) incidate that the following four assumptions must be met: (a) relations among variables are linear, additive, and causal (curvilinear and multiplicative relationships and inter— actions are excluded); (b) residuals (to...
I'm reading about deep learning and that in principles it's a features compression technique and that is why it works. Now my question is why compressing features from 200 or so into 4 is better? How and why does it influence classifiers performance or the construction of the decision boundary? Look at the following pi...
I clustered a data set using PAM with a euclidean distance metric and a pearson correlation distance metric. The average silhouette value of the correlation clusters is higher at most points than the euclidean one, but their maximas are at the same number of clusters, and peaks occur at similar cluster numbers. Is ther...
I recently came a cross Matrix Factorization for classification or recommendations. I was very shocked that it was one of the most effective techniques in the Netflix competition. But actually I think very few people have heard about it. Other techniques like SVM, ANN ... etc are very popular. I was wondering if there ...
I've been asked to undertake a power calculation because the regular statistician is not available. I am calculating power for a trial where the endpoint will be a percentage of patients not achieving remission at a given timepoint after receiving a drug or placebo. The ratio of case:controls is 1:1 I have two columns...
I am looking for an R-implementation of the Lempel-Ziv data compression algorithm, to estimate the source entropy of a time-series consisting of a sequence of symbols. Rather than simply measuring the entropy of the (time-aggregated) symbol-frequency distribution, the Lempel-Ziv algorithm can be used to estimate the en...
In particular, I am wondering why we have this concept Multiple R (which I can understand as the correlation between observed and predicted scores in multiple regression), and then a separate concept R-squared which is just the square or R. I've been informed that R-squared is the percentage variation explained and R ...
In the usual VIF calculation for a linear regression, each independent/explanatory variable $X_j$ is treated as the dependent variable in an ordinary least squares regression. i.e. $$ X_j = \beta_0 + \sum_{i=1, i \neq j}^n \beta_i X_i $$ The $R^2$ values are stored for each of the $n$ regressions and VIF is determined ...
I have been looking at the G*Power tool for Statistical Power Analysis but I am confused by the difference between two of the z-test options. "Correlations: Two dependent Pearson r's (common index)" and "Correlations: Two dependent Pearson r's (no common index)" Is this in relation to the test data? e.g. A group of 1...
I have read a similar post here Fitting logistic function with pymc but it seems there is a rule that I shouldn't ask question in someone else's post. My approach is to fit 10 logistic functions to 10 different simulated data sets independently. The code written is done simultaneously with pymc's "assign_step_methods...
I have a training dataset for classification problem $X \rightarrow y$. Where $X$ is an $n$th dimensional real vector, $y$ is an integer number in $\{0, 1\}$. I want to solve the next problem: predict as many lines where $y = 1$ as possible with error level no more than $\alpha = 10\%$. In other words, I want to split...
Lets say I have made survey using a sample of a given number of people, containing a set of 25 questions that have 6 possible answers (Fully agree/ Partially Agree/ Neutral/ Partially Disagree/ Fully disagree/ Don't know), and a few other questions concerning variables I'll be using to qualify them (such as gender, ave...
I am tring to find a probability density for some waiting time, but I am having a hard time. Fitdistr does not work with Gamma. Am I missing something? Is there another density that fits better to this? library(MASS) wt = read.csv("http://isgeek.eu/SITN/waitingTime.csv", sep="\t", header = TRUE) hist(wt$x, prob=TRUE...
I've started to learn machine learning using the book 'Machine Learning' by Tom Mitchell. The first chapter introduces the reader to machine learning and to the first problem: learning to play checkers. It starts by choosing a target function $V: Board \rightarrow \mathbb{R}$, which maps a particular board setting to a...
Having used stack overflow for years without signing up I now truly need some help! My data consists of samples collected from the same location in three different streams between 2012-2014. The data collected includes continuous phosphorus, nitrate and suspended sediment measures. Rainfall data from the area has also ...
I have two questions: Which regression should I choose and why? Based on the R squared value, exponential regression seems to be a better fit. But I am not really sure, if I should just go with it because it has a higher R squared value? How do I validate it? Lets say I decided to go with the linear regression (...
I have the following likelihood function: I'm given this information about the $\Omega$ matrix ($\boldsymbol{1}$ is a $T \times 1$ vector of ones): I would like to be able to show that the likelihood function can be rewritten to this: I think there is a misprint in the article, hence the screen images from the artic...
In my experiment, I am varying 4 different parameters (side, eccentricity, latency and duration), and for each of these conditions I have 2 or 4 values (e.g., eccentricity can be 5 deg or 10 deg, side can be right, left, bottom, top, and so on). I want to compare the rates for 5 deg vs. 10 deg and for both of them, the...
I am trying to decide on an approach to estimate design effect for a multi stage cluster survey. The clusters were selected with probability proportional to size sampling WITH replacement. The primary sampling units (districts) are large enough that some were sampled multiple times. When defining the PSU variable sh...
I'm studying neural networks, and I'm trying to decide why the default choice of cost function for a single neuron seems to be quadratic loss: $$\sum_i(y_i-f_i)^2,$$ instead of: $$-\prod_ip_i^{y_i}(1-p_i)^{1-y_i},$$ as per logistic regression. Where both $f_i$ and $p_i$ are the sigmoid (activation) function. I underst...
I have recently interviewed for a statistical analysis job and was asked a question about why linear least squares regression fails when the data is heteroskedastic. The correct answer to this question, according to the interviewers, is that heteroskedastic data means that the equation of the regression line produced b...
Imagine I have a time series for an animal population and a time series for a climatic variable during the same time period and at the same location. Unfortunately the data are observational (i.e., no experimental manipulation). Now imagine there is a decreasing linear trend in both variables (and no seasonality). I k...
I was wondering if anyone could help me on how to interpret the coefficient from an analysis I have carried out in R (survival package). The data is right censored, the dependent variable (time to event) was modelled under the gaussian distribution and the independent variable is a categorical variable (3 categories)....
I need some help My project aims to develop algorithms for spatial temporal analysis of Flickr, Twitter and Foursquare databases to detect any kind of significant changes, named as “Event” in real time. Event can be defined as any anomalous user activity, which happens at a time or within a specific period of time. For...
I've been using igraph and statnet to do most of my network analysis, but I am trying to replicate results that I use MPNet (an expansion to PNet) in order to perform some simulations on a multi-level network. I'm hoping someone has experience with PNet or MPNet and can offer a suggestion. I've run a few simulations of...
Suppose $X$ is distributed $N(\mu, \sigma^2)$ where $\mu \neq 0$. Can I use the Delta Method to say that $log(X)$ ~ $N(log(\mu), \sigma^2/\mu^2)$?
I have never read or seen someone do this before, so I wanted to pose the question here. Suppose I fit a basic linear model, $\text{price of house} = \beta_0 + \beta_1*\text{taxes} + \beta_2*\text{bedrooms} + \beta_3*\text{number of garage doors}$. I fit this using OLS and I get a model that has combined $R^2$ of say ...
I'm a bit troubled about how to report linear regression statistics after log transformation of the dependent variable. I suppose I should report the transformed coefficient, but would they be easily interpreted? In the regression plot should I use the transformed values or the original ones? while the seconds would be...
Assume there are two time series of real values. How to test hypothesis, that these series are quite the same, but there is a time shift between them?
I have some data and was trying to fit a smooth curve to it. However, I do not want to enforce too many prior beliefs or too strong pre-conceptions (except the ones implied by the rest of my question) on it, or any specific distributions. I just wanted to fit it with some smooth curve (or have a good estimate of the p...
Suppose we have a function $f(x)$ that we can only observe through some noise. We can not compute $f(x)$ directly, only $f(x) + \eta$ where $\eta$ is some random noise. (In practice: I compute $f(x)$ using some Monte Carlo method.) What methods are available for finding roots of $f$, i.e. computing $x$ so that $f(x) ...
i am trying to understand if the following statement is true: $$ E(XY)= E(X^2)=E(Y^2) $$ if $X$ and $Y$ are identically distributed but not necessarily independent r.v. This means that if the variables are identically distributed calculate the expectation of the multiplication of any pair of them is the same that calc...
Document/Term Freq C1 C2 C3 C4 C5 C6 C7 C8 C9 Tag D1 0 1 3 1 1 0 0 1 0 X1 D2 1 1 3 0 1 0 0 2 0 X2 D3 2 0 2 0 1 0 0 0 0 X3 D4 0 0 4 0 1 0 0 0 0 X1 D5 ...
I need to do a unit root test with my panel data. I have 1500 firms from 98-2000. I want to examine if my LOGwage variable has unit roots or not. When I xtset my panel by firm and year, Stata said that it's strongly balanced. But when I do the test xtunitroot llc wage if FirmID, it gives me "Levin-Lin-Chiu test require...
Let $x_1,\ldots,x_n$ be a random sample with pdf $$f(x)= \begin{cases} (\alpha+1)x^\alpha, & 0 \le x \le 1, \\ 0,& \mbox{otherwise}. \end{cases}$$ Find the MLE of $\alpha.$ So, I've found the log-likelihood and taken the derivative, but I'm not quite sure if I've done it right. This is what I have so far. Would I then ...
If the uncertainty of a function $f(x,y)$ is given by: $$\delta f = |f_{best}|\sqrt{ \left( \frac{\delta x}{x_{best}} \right)^2 + \left( \frac{\delta y}{y_{best}} \right)^2}$$ what do we do if $x_{best}$ or $y_{best}$ are zero? Presumably, $\delta x$ and $\delta y$ need not be zero.
I am reading the < Foundations of Statistical Natural Language Processing >. It has the following statement about the relationship between information entropy and language model: ...The essential point here is that if a model captures more of the structure of a language, then the entropy of the model should be low...
Just ordered this textbook, and Wow, the complete omission of this subject from an otherwise excellent reference on logistic regression is a bit surprising. The 2nd edition was published in 2000 - there's been a lot of research into penalized regression techniques since then: for example, the lasso and elastic net. I k...
I am trained as an epidemiologist. Early in my career, statistical models were a black box, and when in doubt I was advised to go see a statistician. This never sat well with me, so I became interested in statistical modelling and since have put in time learning statistics and probability theory. I am now able to learn...
I read here that $n-p-1$ was the number of degrees of freedom I should use when doing a t-test for the significance of a regression coefficient, but I don't understand why. My understanding was that t-tests generally had $n-1$ degrees of freedom.
When using k-fold cross validation in a neural network, do you also need a separate validation set? Or is the use of the k-fold on its own good enough to minimise the possibility of over-training?
How can I convert relative risk into absolute risk? How can I estimate absolute risk for an individual from the available sources of RR and OR?