instruction
stringlengths
9
38.7k
When searching the internet on the sample size of for boostrap samples I generally find that the size should equal the original sample size. However, I can't find any explanation on why this should be the case. In what way is it bad to use a smaller sample size? Is it always better to use a larger sample size? Some o...
Can anybody please clarify what a surrogate loss function is? I'm familiar with what a loss function is, and that we want to bring about a convex function that is differentiable, but I don't understand the theory behind how you can satisfactorily use a surrogate loss function and actually trust its results.
In my study, path a, b, c and C' all are significant in the Hayes mediation model 4. However, the effect size of path b (M on Y) is .08 , path c (X on Y is .05 ) and path a (X on M is .3). Also the c' has increased instead of decreasing or being zero. I had earlier reported that the results showed a significant indire...
What does it signify in the context of non-linear relationships between multiple explanatory variables and dependent variable? Just looking for an intuitive explanation. In the context of GAMLSS framework.
I have a time-series data of air-pressure inside a room. The reading are the output of an physics experiment. The Predictor variable is binary flag which is coded as follows: If (ending-reading = 0 then 1 else 0) I have attached the snapshot of the data below. My objective is to predict the likelihood of the ending-re...
I'm reading some literature on case-control studies, in which they discuss the use of "calipers" for matching on continuous variables. However, I can't seem to find anything about the relationship between caliper size and the effect size. My intuition is if large calipers are used, then the strata has higher variance a...
So far I only really understand the Dirichlet Process through its various metaphors. For the Polya Urn scheme, my understanding is that the "base distribution" is the original distribution of colors in the urn before you start the process. So if alpha is very large then somehow your population ends up resembling the ba...
Question: Is the theory of multivariate GLMs significantly different from the theory of univariate GLMs? If ou want to learn the latter, do you learn univariate GLM first and then specialize, or do you learn multivariate directly?
I have a model $f$ that predicts human performance on a simple perceptual task (performance is quantified as $Y$) as a function of some information about the stimuli ($X$) and parameters $\theta$. The model is nonlinear and deterministic (edit: by deterministic I mean that Y is determined given X and theta): $Y = f(X,\...
Imagine two bar charts with x-axis of 1,2,3,4. The first has 2,4,2,4 as the height for each container ( ie there are 2 1s, 4 2s etc). The second has has 6,12,6,12. I want a percentage from 0 to 100% of how closely the first one matches the second (in essentially being a kind of subset). In this example, it would be 100...
This question is about applying probabilistic bound (Hoeffding inequality) on proof. The following proof is from Stanford cs229 Machine Learning course's problem set #2-5, proof for uniform convergence on erroneous distribution. http://cs229.stanford.edu/materials/ps2_key.pdf The author used Hoeffding inequality (6) f...
Given a dataset for dimension reduction using linear discriminant analysis (LDA), I was told that the number of dimensions should not exceed the number of samples. Why is it the case? Thank you
Is it possible to have the following sample correlation matrix for $x$, $y$, $z$? $\begin{pmatrix} 1 & 0.8 & 0.2 \\ 0.8 & 1 & 0.7\\ 0.2 & 0.7 & 1\end{pmatrix}$ Where a 3 by 3 correlation matrix is $\begin{pmatrix} 1 & p_{xy} & p_{xz} \\ p_{yx} & 1 & p_{yz}\\ p_{zx} & p_{zy} & 1\end{pmatrix}$, and the $p$'s (partial cor...
I am doing some statistical analysis for researchers who want to publish the results as a paper. I have done a logistic regression to predict an outcome given various demographic variables, and found which variables were significant, etc. Standard stuff. As it turns out, one variable is twice (or more) as indicative a...
There are 3 classes with imbalanced number of training samples. I've got the following classification metrics: and the following ROC curve on the validation set: As shown in the confusion matrix on validation set, it seems all the samples of Class 2 are wrongly classified. But from the ROC curve, it seems to some ext...
I have behavioral data for 10 animals that I studied at two different times of day, AM and PM. I am looking to see if there is a significant difference in 8 different behaviors at AM vs. PM. I have two sites (LL and WK), so wanted to look at the differences per site and the combined data. So I performed 24 t-tests and ...
I have a question regarding the factorization of the following joint density: $P(Y, v, \psi , \theta)= P(Y |v, \psi)P(v, \psi| \theta) P(\theta)$ My question is: when I try write each of the conditional distribution as nominator over denominator for example for the first conditional distribution on the right as: $ P(Y...
I've been reading about rejection sampling for Bayesian Statistics, and I have the following example: Given $y\sim N(\theta,1)$ , $p(\theta)\sim Cauchy(0,1)$, $q(\theta |y)=p(\theta |y)p(\theta )$, $g(\theta )\sim N(y,1)$ and y=1 Then, the example says: $\frac { q(\theta |y) }{ g(\theta ) } =\frac { exp\left\{ -\frac ...
I have some oscillating timeseries data that decreases in mean and variance over time. I am interested in stabilizing or normalizing the variance with some relatively straightforward transformation. The timeseries represents expression of a gene. All values are positive with CVs ~0.4 for first third of timeseries (~4...
I have the following linear model in R: model <- lm(response ~ v1*v2 + v3*v2 + v4, data=df) v2 is number of hours spent sleeping v4 is ordinal (7 pt likert) measuring subject rating of sleep quality v1 and v3 are 3 level factors measuring time spent on different activities (0-10mins, 11-20, 20+) response is a count va...
I'm reading the paper by Lourme A. et al (2016) and try to plot the Fig.2 from this paper. The question regarding to programming of confidence areas and my example in R is here. 4.1.2. Confidence areas Let $u = (u_1,…,u_d)^\top$ be a random vector with uniform margins on $(0, 1)$ and let $y = (y_1,…, y_d)^\top \in \...
I'm trying to simulate the process of losing fuel (through driving). Currently people start of with $100\%$ of fuel, and loses $x\%$ of fuel everyday where $x \sim N(10,5^2)$. However the normal distribution is unsatisfactory because it could return negative numbers and I don't want people to "gain" fuel other than ref...
From the wikipedia article, we see that: IRLS is used to find the maximum likelihood estimates of a generalized linear model, ... However, they describe the algorithm as an iterated algorithm that minimises objective functions of the following form: $$\underset{\boldsymbol\beta} {\operatorname{arg\,min}} \sum_{i=1}^n...
My question relates to p. 645 top-right column of THIS PAPER. The authors say if there are two independent proportions, prop1 = .56 and prop2 = .48 and the p.value from (hypothesis) testing of the difference between these two proportions is .015, then solving for standard error of difference (SE) gives .033 or 3.3%. Bu...
Two large data sets of patients (set A: n = 100,000; set B: n = 700,000) are being compared with respect to their hospital length-of-stay (LOS). The variable LOS is reported as an integer in the data warehouse, typically between 2 and 7, so tens of thousands of patients in each group will have the same value for LOS. D...
I am using logistic regression for classification purpose. For reduction of features and better precision I am using Weight of evidence technique. Also I need to use python for this. As there is no readily available algorithm for binning, I was searching for the rules of binning and I came across this: http://www.m-hi...
I'm interested in actually applying objective bayesian principles on real problems. In particular, I want to do sequential A/B testing with early stopping. I'm fine with assumptions of normality of the difference and known fixed variance to simplify things. This is fairly easy in the frequentist case, you just need to ...
I'm new to CausalImpact package in R. I'm trying to understand what the p-value or Posterior tail-area probability mean in the summary. Does it mean that because the p-value is very low, the chance that there's an effect of an intervention is significant? How to put it better in layman's term?
Why am I getting negative deviance and negative degrees of freedom in my likelihood ratio test? "Day" has three levels. "Line" has seven levels. > summary(binary.main.glm) Call: glm(formula = Status ~ Line + Day, family = binomial, data = ParBin.data) Deviance Residuals: Min 1Q Median 3Q Max ...
I compared two sets of data using KS-test. First set is empirical data X1 and the second is expected data X2 which is randomly sampled, normally distributed with mean $\mu$ and std dev $\sigma$. The length of X2 is $10^6$. In the plot of their CDF, it looks like that both of them have similar distribution. When I did ...
Consider the perceptron as illustrated in the figure above. I know: If the activation function is linear, i.e. the first three cases, then the perceptron is equivalent to a linear classifier. However, I just wonder: Is the perceptron equivalent to a non-linear classifier if its activation function is sigmoid? In o...
It is not fully clear to me how to make prediction of future observations with Bayesian models. The usual approach should consist in using the posterior predictive distribution. Nonetheless, many papers associate the future occurrence of presently unobserved data with ranks. For instance, consider the recommender syste...
I would love to get some opinions about those three tools. I am working with R and Shiny quite long time. I developed many apps (production side) which are actually being very popular at my company. The new task came from the "up" to create the KPI/BI dashboard and here those three names came up: Shiny R / QlikView /S...
Well, it's my first post but I have been struggling hard with this problem so I had to look after help. The problem: I have a high set of data like this one (black dot are the data): I have to find any kind of correlation between de UTS(ultimate tensile strength or Rm) and the Carbon equivalent (Ceq) of steels. I have ...
Suppose that you have a normal distribution D with density f, which you sample. An estimator produces the maximum likelihood normal distribution $G_n$ given n samples. On the other hand you could sample from a normal distribution with density f to the power k. And you could weight those samples by f to the power 1-k. ...
I have 200 .hdr/.img file pairs for person in which the carried out pre-processing using SPM. I want to apply spectral clustering for voxel time courses to find resting state networks. How can I extract voxel time courses from fMRI time series of .hdr/.img file in MatLab?
I used Gaussian Process Regression to predict a time series, what I have is sensor's readings that come every hour ( I have data for about 3 years) I chose the periodic kernel function mentioned here [1] which looks like this $$ K(x,x′)=\sigma^2 \exp(−2\sin^2(π|x−x′|/p)/\mathcal{l}^2) $$ The period p simply determines ...
Apologies if this question is answered elsewhere---I couldn't find an answer elsewhere but that may be because I don't know what the name for the problem I am trying to solve is. I have two data vectors, X and Y, which are strongly correlated. An example of a scatterplot of such vectors is below: What I need to do is ...
I am trying to learn more about the convergence properties of the Baum-Welch algorithm for estimating the HMM parameters. I ran a test comparing the convergence of both the transition and output matrices as a function of the sequence length using MATLAB hmmtrain function. I have noticed that while the transition matrix...
I have a multinomial classification problem where I have > 2 classes, and for each observation I have i) the class the observation is assigned to, and ii) the probability of it belonging to a class (you could interpret this as the certainty of the observation belonging to that class). Is there a regression technique t...
Consider a class of $N$ students. I give them an assignment containing $M$ multiple choice questions ($M>0$). Each question is either right or wrong. The students give me back the scripts with their answers. Thus, for each student, I have one script containing $M$ questions and answers. I decide to mark them using the...
As a part of a research project, I have collected a set of data (2 questionnaires). For each participant I calculate 8 variable (4 by questionnaire). I want to prove that their is a relationship between the first four variables and the second four variables. What should I use? Correlation (Pearson) or Regression or ano...
can anybody recommend software for cluster analysis of dichotomous data (using appropriate coefficients, e.g. from Finch, 2005 1)? I have access to Statistica but it seems to me that it is not possible to analyze binary answers there.
I saw it sometimes that the input data for Neural Networks was scaled to $[0, 1]$ (or $[-1, 1]$), but also sometimes that it was normalized. E.g. for a greyscale image the normalization was done using the distribution of the different pixel values of the specific input image. But this has the effect that different imag...
I am still new to R and having issues searching the right terminology for my problem. I have the following equation: ln(AGCestimate) = ln(a)+b1ln(Canopy)+b2ln(BA)+b3ln(BAD)+Error BA and BAD are both linear models themselves BA = m1Canopy + b1; and BAD = m2(Canopy) + b2 I am not sure how to code this though, with mod...
Simple LR as part of a mediation analysis follows the theoretical model: M = i3 + aX + e3. One of the models in the stacked analysis is fine... the other one is a bit strange. Why do my residuals look like this? So, the dependent variable is a continuous latent. The original 10 questions that are used to construct ...
I want to fit a non ordered multinomial model to data. In it, the dependent variable has 3 categories (success, partial success, fail) and i have a binary predictor and two other continuous predictors (raw measures for length and speed). I have obtained thousands of observations from a hunting videogame in which the pl...
I am running an LDA model, and when I do so the resulting model returns empty topics: Topic 1 Topic 2 Topic 3 Topic 4 Topic 5 Topic 6 Topic 7 "character(0)" "character(0)" "character(0)" "character(0)" "character(0)" "character(0)" "character(0)" Topic 8 Topic ...
I am currently running some analysis on two data sets. One is a 'background-only' sample that is modeled as a decaying exponential and the other is a "signal" sample that features a single peak on top of this exponential background. I would like to preform a test to see how statistically significant this peak is, i.e. ...
I have this linear regression: $y_{i}=\beta_{0} + \beta_{1}x_{i} + u_{i}$ with $i=\{1..n\}$. Say $\hat{\beta}_{1}$ is the OLS estimator of $\beta_{1}$. $\hat{\beta}_{1}$ is BLUE since the Gauss Markov assumptions hold. Now I am asked to show that $\tilde{\beta}_{1}=\frac{y_{n}-y_{1}}{x_{n}-x_{1}}$ is less efficient th...
I have the mean value and my question is: is it possible to calculate the standard deviation assuming a normal distribution? Looking at previous questions which have been asked, this question is different from other the variants about how to calculate a standard deviation. Thanks.
I have an issue where I want to see if two events may coincide by more than chance. For instance given the following data I may hypothesise that "Alice" and "Bob" come into the office together more frequently than chance. IN_OFFICE ALICE BOB CHARLIE EVE MONDAY x x x TUESDAY x ...
I have a vector of p-values that need correcting for multiple comparisons; based on reading Noble (2009), I am attempting to apply a Benjamini-Hochberg FDR-based correction. My vector (sorted in ascending order for ease of visualisation) is: ps <- c(0.019, 0.022, 0.023, 0.023, 0.025, 0.025, 0.027, 0.028, 0.029, 0.03...
I am creating a web application that is supposed to perform a Mauchly Test but I cannot find hand written or worked examples anywhere. It is imperative that the answer must not provide examples using applications such as SPSS or R etc as I will be doing all calculation through PHP. Would somebody be able to show the wo...
I'm using xgboost for a problem where the outcome is binary but I am only interested in the correct probability of a sample to be in class 1. My current approach is to use the XGBClassifier in Python with objective binary:logistic, use predict_proba method and take that output as a probability for class 1. I that metho...
I am particularly baffled with the idea of sampling from the likelihood. To give some context, I am studying particle filters and am investigating the "Likelihood Particle Filter". I am reading this Tutorial(Appendix Section) at the appendix section. My questions are written in bold. In the context discussed, it is a...
I am using auto.arima for a simple sine time series where freq = 3. The series is plotted as follows: I use the following code for model fitting: data = ts(x,frequency=3,start = 1) model = auto.arima(data,stepwise=FALSE, approximation=FALSE) plot(data$residuals,type='l') When I check the residuals of the fitted model...
Are there other alternatives to the Mauchly's sphericity test? I am about to run a Repeated Measures ANOVA and a One-Way ANOVA and must perform a pre-requisite check on the dataset. I was wondering what are the other alternatives to Mauchly's sphericity test.
My model loss is quite stagnant, although there is a very mild decrease. Would it help if I increased the learning rate suddenly to get it out of the local optima? is this a valid strategy? Also, if I got into a bad local optima initially due to too low a learning rate after decaying, does it make sense to have a lower...
I am very intrigued regarding the restricted mean in time to event analyses. I understood it's an estimate of the time to event in a population considering that some people experienced it and some other not. But when I used it with real data I found some results that made me think I didn't understand it's meaning at al...
I want to fit the model Yt = a + bt + Zt to my data, where Zt is white noise. Does the function m=lm(data) include white noise or would I need to add Zt on?
I have a model which is of the following deterministic form: Y = A + B + C A, B and C are piecewise-linear functions of a, b and c, which are macroeconomic variables. I have the values (nodes, slopes) for all the segments of these PWLFs. I need to run diagnostics (assumption tests, performance tests etc.) on this mod...
The question I have to answer is the following: Check statistically at the 0.01 level of significance whether there is any evidence that bill expenditures are income inelastic. I have a log linear equation :LN(Bill)= -9.4 + 1.781 * LN(Income) Can anyone tell me how I can run this hypothesis test?
I am new for time series analysis. I have a dataset with 105216 rows from "2014-01-01 00:00:00" to 2016-12-31 23:45:00. This data is for every 15min. I have converted my data into timeseries using this m2 <- ts(m1,frequency = 35072, start= c(2014)) m3 <- decompose(m2) start = 2014 , 1 end = 2016, 35072 1)...
I am new to Cox regression / survival analysis, and I wonder whether the coefficient in Cox regression is invariant to changes of scale in the survival variable. That is, do I get the same coefficient estimates regardless of whether the survival variable is measured in years or days, for example?
I’ve done 2 testing on 40 users using 2 Mobile App for each one I’ve got the time that each user has spent on them T-Test’s result is: t=0.48448,df=76.638,p-value=0.6294 Hyp-Alt: true difference in means is not equal to 0 95% confidence interval: -5.443252 8.943252 mean(a):13.95 mean(b): 12.20
I'm using jmp for my analysis, and I have data from what is ultimately a mixed model. The problem I have is that JMP doesn't have the ability to run GLMM. You can, however, run a mixed model with a standard least squares personality. My question is: what am I missing out on by not having the GLMM functionality? What i...
I have a general methodological question. It might have been answered before, but I am not able to locate the relevant thread. I will appreciate pointers to possible duplicates. (Here is an excellent one, but with no answer. This is also similar in spirit, even with an answer, but the latter is too specific from my per...
Let me introduce the context: I need to evaluate how my TAs tend to grade students. Ideally I would like to pinpoint whether they show some sort of internal consistency (e.g., a TA usually grades almost always above/below a reference grade, or is inconsistent and the grades fluctuate). I would like also to identify a w...
So, I have seen many questions here asking whether it is a good idea to use AIC/BIC for determining the optimal number of hidden states for an HMM. What about the number of observable states though? In my case, I am using a discrete HMM, where I quantised the continuous time-series observation signal to obtain a sequen...
Please can someone explain how to construct one with a little example. For instance let the pairs be $(X,Y)=\left\{(2,36),(8,12),(4,32)\right\}$ then what is $Fn(x,y)$? I didn't quite catch the notion of comparing the bivariate dataset as pairwise in the indicator function?
As the title said, for a given state space $\Theta$ and loss function $L(\theta,a)$, if a (randomized) decision rule $\delta$ is a minimax decision rule with respect to $L$, i.e. $$sup_{\theta}E^{X\mid\theta}L(\theta,\delta(X))=inf_{\delta\in\mathcal{D}}sup_{\theta}E^{X\mid\theta}L(\theta,\delta(X))$$ among a class of ...
I have couple of questions. To give short background, I am trying to estimate ATET based on stratified matching. First I used logit model to estimated propensity score of being treated by covariables. m_ps <- glm(train ~ age + agesq + re74 + re75 + nodegree + black + hisp, family = binomial(link="logit"), data ...
Which approaches are exist for the estimation of a item difficulty from the statistical data? Are they measure objective item's complexity?
I created a population of a normally distributed value. Then I pulled 100 000 samples out of it. For each of them I calculated 95% confidence z-interval. I expected to see that at least 95% of intervals would contain a population mean, but in fact only about 94% did. I tried this many times, and there was 94% again and...
Let's say I have two models: lifeexpF~group + log(ppgdp) + group:log(ppgdp) lifeexpF~log(ppgdp) + group:log(ppgdp) group is a factor I understand that the first model is the general model, and it gives a different slope and intercept for each group. For the second model, I think the slopes are all different, but the in...
Can anybody suggest how I can compute the second moment (or the whole moment generating function) of the cosine of two gaussian random vectors $x,y$, each distributed as $\mathcal N (0,\Sigma)$, independent of each other? IE, moment for the following random variable $$\frac{\langle x, y\rangle}{\|x\|\|y\|}$$ The close...
I have a dataset with i number of variables. One of the variables has only 50% available data ( total is about 1500). If I distribute the records into regions (=27) (or stratum), sample size per stratum would be too small. If I do multiple imputation, will the resulting dataset valid for per stratum analysis? The set o...
I am using the beautiful "rugarch" package and presently have an issue concerning the interpretation of two asymmetry parameters: eta11 and eta21. As per the package documentation, eta11 and eta21 stand for the rotation and the shift parameters respectively of the family-GARCH nested model news impact curve (NIC). Th...
I have a GLM where I'm predicting a proportion response (# correct items / total # of quiz items). The common recommendation in this case is to assume a binomial distribution and use a logit link. For example: What are the issues with using percentage outcome in linear regression? and Regression for an outcome (ratio o...
As the title indicates, is there a difference between recursive parameter estimates and time-varying parameters. I ask this in the context of time-series. For example, recursive parameter estimates can be obtained by, say, taking a linear regression model, estimating the model on an extending sample period, and recordi...
I am new to statistics.I am trying to compare 2 networks. Can anyone pls help me to understand what the degree distribution of the 2 networks say. I mean the similarities or differences bet the 2 networks. Degree distribution of original graph with 198 nodes & 2742 edges Degree distribution of a random graph with same ...
How Does TBATS Work? Or let me know where to find a good high level description of how TBATS fits a model to complex seasonal data. For example data that has a year, month, day, hour seasonal pattern? I'm looking for something similar to what you can find for auto.arima at https://www.otexts.org/fpp/8/7. I've been w...
I'm a Statistics and CS double major and I must take two more math electives to complete my degree. I have four choices for the Math courses I could take and I was wondering which of the two would be most beneficial for Machine Learning or Artificial Intelligence. My choices are: (1) Combinatorics 1 (2nd year course, a...
I would like to do an ANCOVA on a set of 2 continuous data set (before and after pill) and one factor with 3 levels (3 pills) Here is the graph of before pill vs after pill with pill taken in colour:. I would like to know how to evaluate the equality of regression slopes for each pill. I was thinking of an ANOVA like ...
I have a process which I suspect involves two exponentially distributed waiting times of different rates. That is, I am measuring $T = T_\lambda + T_\mu$ with $T_\lambda \sim Exp(\lambda)$ and $T_\mu \sim Exp(\mu)$. Writing down the distribution for $T$ is not problem: $$p(T | \mu, \lambda) = \lambda \mu \int_0^t e^{-\...
Assume events occur as a Poission process with parameter $\lambda$ in a fixed size interval. Assume $Y$ is a random variable, $Y = \frac{\text{count of intervals with 0 events}}{\text{total count of intervals}}$ Therefore we know that $E(Y) = P(0 \text{ events occur})$ or $E(Y) = e^{-\lambda}$. Now I observe a value...
I am trying to compute the first two principal components of a parallelogram with vertices (0,0), (2,0), (1,1), (3,1) of uniform density, as well as their variances. The obvious choices appear to be the two diagonals. However, I am not sure how to prove this, and how to compute the variances of these components.
I saw this on reddit. Basically, there are 10 teams. Each team plays each other team twice, so every team has 18 games and "9 two-game series." What happened in this scenario is each team "split" at least two series, creating this circle that creates a win/loss chain connecting every team in both directions. I was tryi...
In the step of learning Markov chains, I came across few questions from assignments on UTDallas website. Finding the transition probabilities seems a bit hard for me in this one particular question only. The question is (Sec 7.3, page 355, #1) Consider a system with two components. We observe the state of the system ev...
I'm looking to build a fixed effects or random effects model. The aim is to find the impact of non-performing loan ratio (NPLR) and capital adequacy ratio (CAR) on return on equity (ROE) for banks. But I want to add a bank specific time-invariant variable into the model. Are there any suggestions?
Suppose I'm conducting a multiple regression with two predictor variables (X1 and X2) and have found a significant interaction effect. Let's say X1 = aggression, X2 = gender (men/women), and Y = health. So I want to know how aggression predicts health differently for men and for women. Because the interaction (X1*X2) i...
I'm not sure if this is the right forum but here goes: I have a requirement to attempt spot patterns in data , more specifically bank transaction data. There is transaction date, amount, description e.g. 6/2/2017 COFFEE 5$ 6/2/2017 EMPLOYER DEPOSIT 1000$ 10/2/2017 GROCERIES 50$ 20/2/2017 EMPLOYER DEPOSIT 1005$ 20/2/20...
I saw this derivation of the variance formula $\text{Var}(X)=E[X^2]-(E[X])^2$ in the Wikipedia article on Variance: I don't understand how to get from step 2 to step 3 (the section with the pink rectangle)
Please consider the following situation, which happens a lot in real life applied research in social sciences. Some percentage of the respondents give ‘straightlined’ or ‘patterned’ responses to a self-reported questionnaire, consisting of several Likert scales. What criteria should be employed to make a decision as ...
If LASSO treats collinearity than why use PCA? I did not understand the question properly and the interviewer was not ready to give any hints
Given observed results of this [nhanes dataset]: $$ \begin{array}{c|c} & \text{Age} & \text{BMI} & \text{hyp} & \text{chl} \\ \hline & 1 & \color{maroon}{N/A} & \color{maroon}{N/A} & \color{maroon}{N/A} & \\ \hline & 2 & 22.7 & 1 & 187\\ \hline & \vdots & \vdots & \vdots & \ddots \\ \hline & 2 & 27.4 & 1 & 186 \end{ar...
I've heard people use the term spurious correlation in so many different instances and various ways, that I'm getting confused. Moreover, the Wikipedia page for Spurious relationship states: “In statistics, a spurious relationship or spurious correlation is a mathematical relationship in which two or more events or va...
What is the "standard" function one minimizes to estimate the parameters for logicistic regression? What is implemented in R? I thought it was the squared error but a machine learning course I am following suggests a loss function of the type: $ -\log h_\theta (x)$ for $y =1$ $ -\log (1- h_\theta (x))$ for $y = 0$ $h_\...
I would like to estimate a probability density of a given probability/proportions variable. Consider estimating the click through rate density (CTR - number of times image clicked/number of times viewed) across web sites: eg what is the probability that a randomly selected web site has CTR <1%. Now the data available...