instruction
stringlengths
9
38.7k
Babies were weighed just after being born and here are the results: Mean weight: 5.33 lbs, Standard Deviation: 0.65, A baby severely underweight classified by the hospital is 4.85 lbs The hospital wants to take a picture of the 10% heaviest babies born in that hospital. What would be the lightest weight to qualify for...
It is given that: We toss two dice with sample space $\Omega = \{ (i, j), 1 \leq i, j \leq 6 \}$ and the $\sigma$-algebra is generated by the events $A_k = \{ (i,j) : \max(i,j) = k \}$ $(k = 1, \ldots , 6)$. Show that whereas $X_1 = \max(i, j)$ is a random variable in the corresponding probability space, $X_2 = i + j$ ...
I would like to understand the randomforest tree plot in this answer. The conditions and logic on each branch of the tree are very straightforward. But what does the content in the grey boxes at the end of the tree mean? Considering there are 3 species in the iris dataset, how do I know which of the species is actually...
A project I am engaged with involves taking raw accelerometer data (in g's ) and analyzing for the existence of tremors (the accelerometer is attached to an individuals hand). I am relatively new to digital processing, and was interested in the steps necessary to remove any noise and eventually convert acceleration to ...
We are given $f(x)=\frac{1}{b-a}$ for $a<x<b$, and $0$ otherwise. My solution was to integrate $f(x)$ such that: $\frac{1}{b-a}\int_{a}^bdx=\frac{1}{b-a}[x]_{a}^b=\frac{1}{b-a}[b-a]$. I think I'm missing something. Any help would be appreciated, thanks
I am trying to develop a model that captures anomaly in the number of account login attempts made in a day. For example: 5,8,11,6,... will not have an anomaly but 1,5,3,120,... will have an anomaly at 120 I tried to approach this by finding the mean and deviation and checking for those that have value greater than 3*d...
In the standard proof of the Gauss-Markov theorem with $p$, an alternative linear estimator of the $p \times 1$ coefficient vector $\beta$ is $$ \tilde \beta = \hat \beta + \delta \tilde \beta = (X^T X)^{-1} X^T y + D^Ty $$ where $X$ and $D$ are $N \times p$ and $y$ is $N \times 1$. This has expectation $E[\tilde \beta...
I'm using the Kohonen package (see also self-organising-maps-for-customer-segmentation-using-r) for Self Organizing Maps (SOM), and I would like to know how to give weights for certain variables in the "Best Matching Unit" (BMU) in the map—the most similar node—finding process. How can I do this for some specific colum...
Background I'm reading some notes in multivariate data analysis, in particular factor analysis. A data vector $X_{p\times 1}$, with $E(X) = \mu$ A vector $F_{m \times 1} $ of factors, A matrix $L_{p\times m}$ of loadings, and A vector $\varepsilon_{p \times 1}$ of $p$ errors with a diagonal covariance matrix $Var(\va...
I am applying Gaussian process regression (GPR) model on some data assuming covSEiso (a.k.a. RBF) covariance function. I made sure there are no identical data points (but there are similar data points) and gpml still runs into numerical problems when applying Cholesky decomposition on $K+\sigma_{noise}^2$ I matrix. W...
Is this true? How to verify it? From the definition of chi square I can not judge whether it is chi square.
Consider Autoregressive model (i.e. RNN Language model) which try to output next token given all previous tokens. When generating sequence with this model, model need to learn when should be end of sequence. In case of discrete sequence, model is usually trained to maximize softmax output distribution with (= End of s...
There are a few indices out there that help compare competing clustering solutions (e.g., Calinski-Harabasz index and many others). Is there a popular index/procedure that helps compare a single cluster solution (i.e., all elements belong to one single cluster) vs. a solution with multiple clusters (such as produced b...
I have a random forest algorithm that performs reasonably well. I read here about the importance of classwt (the priors of the classes) and decided to try them out. I have 18 columns, each with over 1000 data points and only 2 classes. Class -1 is present about 75% of the time, while class 1 is the remaining 25%. Now t...
I was reading a forum post on Kaggle here. The person is showing an example of exploratory analysis for a competition. During the exploratory analysis one of the charts generated is a log(targetVariable) distribution. Here is what it looks like: I generated the same chart based on not log of the data just for my inter...
I've got the following data values: POW |157 days after release | 379 days after release 1 | 2.46 | 3.73 2 | 4.11 | 5.46 3 | 3.93 | 7.04 4 | 4.51 | 4.73 5 | 4.96 | 4.71 6 | 4.42 | 6.19 7 | 1.02 ...
I know that $R^2$ is for the least square regression. Is there an analogous measure of fit to $R^2$ in LAD (Least Absolute Deviations) regression? Here I am concerned with the "fitting quality".
I am unclear on the how to write the likelihood function in order to find the maximum likelihood estimate of $\theta$ from the following probability mass function (PMF), if I have 5 independent observations $(3,0,2,1,3)$. $$P(X\vert\theta)=\begin{cases}{\frac{2\theta}{3}}& x=0 \\ \frac{\theta}{3}& x=1\\ \frac{1-\theta}...
I want to analyze treatment effect for employment rate using difference in difference with propensity score matching how employment rate change if people experienced hospitalization treatment is hospitalization. I don't know how I can do this. if I do logistic regression after matching and interpret interaction coef...
I am using Stata and attempting to test for (1) no autocorrelation between residuals and (2) linearity in parameters. Attempts I've made for (1) The only test I've found so far for autocorrelation is something called the Durbin–Watson test, but it seems to be applicable only for time series situations, which is not wha...
When modelling data that contain groups, I want to test whether the groups are different and therefore should be modeled with different parameters. If a simple model for the whole dataset is y ~ x, and the groups are denoted by parameter z, a model that allows the groups to differ is y ~ x*z. It is straightforward to u...
I was just wondering, Is there any possibility that we train neural networks (may be LSTM/RNN) on different formats of dates (with multiple examples in each format to expand its learning) and then ask the neural net to extract a close match of date in a RAW TEXT? All I need is a Machine learning algorithm to do pattern...
A firm producing tobacco cigarettes claims that it has discovered a new technique for curing tobacco leaves, that results in an average nicotine content of a cigarette of less than 1.5 mg. To test this claim, a sample of 20 of the firm's cigarettes are analyzed. If it were known that the standard deviation of a cigare...
Is the following equation identified. Is it possible to obtain the estimates of parameters $\alpha$ and $\beta$ in OLS estimation. $y_t=\alpha+\beta x_t +\frac{z_t}{\beta}+u_t. $ $x_t, y_t, z_t$ are observed.
I have been experimenting with the typical grocery store tutorial examples for Association Rule Learning in R. The data set I am given is around ~9,800 entries and the algorithms seem to work well for a data set given of this size. I am considering applying the algorithms to a project I'm working on and I was wondering...
What is meant by intention to treat analysis and how to use this method in a statistical software? (For example in SAS)
I think I understand the concept of cross validation. I built a model using kfolds and assessed it's performance based on the mean absolute error of n observations after having iterated test/train on ten folds. Within each iteration I train a model then test it. So there are in fact k models. Which one do I use for pre...
I am trying to understand the size of the effect of a construct on another in a PLS-SEM model. To do so, should I look at the f2 metric, at the path coefficients or both? For what I have read, the f2 "effect size" tells whether a construct has a substantive impact on another one. Guidelines for assessing ƒ2 are (Cohen,...
I am a beginner of Cross Validation tool, I would know what is the difference between CV and K-fold Cv. The Second one, I don't understand why my R code doesn't work: buddy <- cvFolds(nrow(buddy), K = 5, R = 10) fit_buddy50 <- glm(default ~ ETA + Stipendio, data = buddy, family = 'binomial', alpha = 0.5) The fit_buddy...
I have thought about estimating ratings for teams in a sport competition under the BT probability model. Some of the following may lack rigor, or possibly be sloppy, but I hope the key idea gets through... We have two teams $i$ and $j$, probability of $i$ winning is \begin{align} p_{ij} = \frac{r_i}{r_i+r_j} \end{align...
I was thinking, from the ACF it looks like a nonstationary process. Or is it an AR process? From the PACF, does that mean it is AR(1)? There are 2 significant spikes in the PACF. I'm confused.
I would like to know if the Number of parameters has a role to play when it come to time to train or speed of calculation in a CNN. I know that increasing the num of params we can increasing the modeling capacity of the network but which also increases the possibility that the network could over fit. But I would guess ...
I have 2 datasets data1 and data2 (these are 2 different canals on television) that each contains promotion and new_users. So head(data1) gives promotion new_users 22 23 4 6 ... The same goes for data2. Now we notice that dim(data1) = 3119 2 and dim(data2) = 25488 2 so we have m...
I need to cluster transports/trips based on their start point and end point in longitude/latitude. I have about 5000 trips. Each has a starting point (lon/lat) and an end point (lon/lat). I computed the haversine distance between those points. Bases on these five criteria (start lon, start lat, end lon, end lat, dista...
I have a firm level longitudinal data for the years 2011, 2012, 2013 and 2014. There is a variable called 'Communication' which has values for all the years but due to changes in survey questions in 2012 and onwards, the corresponding values of that variable in 2011 unfortunately cannot be used in the analysis of the f...
I want to study seemingly unrelated regression using Gibbs sampling for many equations. Can someone suggest some books on Bayesian approach for seemingly unrelated regression (SUR) with R examples. I am a beginner in Bayesian statistics and learn well with lots of examples.
I have a data set of weekly sales for a range of stores (all belonging to one company). I am trying to predict weekly/monthly use of several ingredients in the individual stores. The choice for what type of model to use seems to be between Holt Winter (or state space models more generally) and the class of ARIMA models...
I have a text dataset such that for each document in the text I have more features like category of the document, sub-category of the document and some anonymized features which are float. I can model a model by considering only TF-IDF features from the each document's text but I will not be using other relevant inform...
According to Wikipedia, curve fitting is defined as: the process of constructing a curve, or mathematical function, that has the best fit to a series of data points And function approximation is defined as: select a function among a well-defined class that closely matches ("approximates") a target function in a ...
I'm using the GAMLSS package to model an ex-Gaussian analysis of reaction time data over two time points (repeated measure). When I include random effect for subject (very standard practice for repeated measures analyses as far as I know) the model fit GAIC is better, but the diagnostic Q-Q plot shows heavy tails (and ...
I think I should rephrase my question after reading a few replies. The original question is kept intact at the bottom. So maybe I should ask the question this way: if you use a ROC curve to find the predictive power of your predictor, will the slope on the ROC curve be a good metric to rely on? Assume there is a undisc...
I am using model training function train from caret package to train cubist rule-based prediction model. How to generate the prediction intervals for a response variable of a new observation? Here's a working example: library(caret) library(mlbench) data(BostonHousing) myControl <- trainControl(method = 'cv', ...
I’m wondering how to deal (and if I have to) with values on train that are not present on test and vice versa. Let’s say that category1 on my train set can have one of these possible values: A,B,C,D and E; On my test set, I can have: C,D,E,F and G Clearly you can see that “A and B” occur on train but do not occur on t...
I am now starting to use pgmpy lib for probabailistic graphical model implementation. The probability that I get using this lib differs from the one I get manually (e.g. using SamIam). Here is a screenshot of the very small graphical model made in SamIam to check the concept idea: The code I have using pgmpy. from pgm...
I am studying the determinants of patenting; accordingly my response variable in a Poisson/count data model is the number of patents in a year and country (i.e. this is a macro-panel study; I use dummies for fixed effects). I would like to be able to compare two variables measured in different units, i.e. R&D spending ...
I have been fitting longitudinal IRT models, checking for measurement invariance over time, constraining item parameters not to change over time, as recommended in the literature, and had good experience with estimation using a Bayesian framework (using software called STAN) based on my simulation work. Recently I came...
I have a data set that is many GB in size, containing hundreds of millions of rows. I would like to fit a probability model to that data (specifically a random-utility discrete choice model), but it is too big to fit in memory all at once. This is what I would call "medium-size data" (fits on disk, too big for local me...
I am working on analyzing a set of high resolution images and I was wondering what would be the most statistically valid method to test, whether the object 'x' is in the centre of the circle (diamond is a tolerant area) and the second step should be to estimate the likelihood that this object will be off-centered under...
The JackStraw is a method to get honest p-values for correlations between variables and principal components derived from those variables. JackStraw paper There is a close relationship between PCA and clustering: K clusters gives you a signal in the top K-1 principal components, as outlined in this paper on PCA for de...
When dealing with interval data coming from questionnaires using Likert-Scales, I want to be able to determine the normality of the data in question. Some of the answers here on Cross Validated have affirmed the idea that using statistical tests such as the Shapiro-Wilk test are not very useful for various reasons dis...
I am looking to identify the optimal parameters for a sand water filter (a ratio of coarse sand to fine sand) which has the fastest flow rate with the minimum cloudiness in the effluent water. Without running multiple iterations of this sand filter, with different ratios, is it possible for me to try and build a model ...
The image below depicts the distance-distance plot for a (robust) PCA fit of a real data set. The distance-distance plot is described in greater detail on page 30-31 of (1) or page 2--3 of (0). It is a diagnostic tool for PCA analysis (robust or otherwise). For each observation in the sample, the PCA distance-distan...
Suppose we have a large set of particles, and we know, that some parameter $x$ of each particle satisfies the following equation: $\dfrac{dx_i}{dt}=f(x_i)$. Our set of particles can be described with particle distribution function $\Psi(x, t)=dN/dx$, which gives the number of particles with parameter in range ($x, x+d...
Note: See Edit 1, 2 for alternative source of human competence instead of by proxy via a Holland survey. I am exploring research where I have a large number of occupational tasks, that is, things you do in a job, like programming, research, lifting boxes, etc. There are over 20,000 tasks. There are about 1000 occupat...
Let $X_1,\dots,X_n$ a random sample with unknow density $f$. Take a estimator of $f$ as $$\hat{f}_h(x)=\frac{1}{nh}\sum_{i=1}^n K\Big(\frac{x-X_i}{h}\Big)$$ where $K(.)$ is any kernel. I know that $$E[\hat{f}_h(x)]\rightarrow f(x),\text{when}\qquad h\rightarrow 0$$ How I find the median, percentiles and other statist...
So, I've built a multinomial logit model (with 4 classes) that has log loss equal 0.945. My benchmark model (probabilities equal classes distribution in train sample) gives log loss 1.131. How can I understand if it is good/ok/bad model by comparing these values?
I am running a multilevel analysis for binary outcomes (i.e., similar to binary logistic regression), trying to predict use of negations based on two categorical predictors (patient type (MUS vs. MES), message content (positive vs. negative)) and two confounders (GP gender (m vs. f) and Patient gender (m vs. f)) on SPS...
I've done a bit of data analysis and regression modeling, but I'm not a statistician by trade, so please be kind. I have a complex deterministic model that takes (currently) 5 inputs with 2 parameters (probability and profit) to calculate an overall profit. I have a large pool of possible inputs and evnew with just...
I have a hierarchical Bayesian model consisting of a Uniform prior distribution, between a minimum and maximum value (hyperparameters) at the top level of the hierarchy. I sample a "mean" from the top level and generate a new uniform distribution for the next level, centred around that mean. I also constrain lower le...
A lot of the datasets presented to us in the company at which I'm currently an intern are very large (many millions of rows / Gigabytes, or even Terabytes of data). While running machine learning experiments, I find myself wanting to use (cross validated) grid searching algorithms to optimize hyper-parameters for the m...
I would like to perform a stepwise regression on a number of continuous independent variables to determine which ones best predict the dependent variable. The dependent variable is ordinal in nature with 3 categories. How can I do this, or do I have to somehow just dichotomize my DV so I can do a logistic stepwise regr...
I'm currently taking a course in time-series at the undergraduate level. The course content goes right to the characteristic polynomial function (and solving it like you solve for roots) to determine if certain processes (e.g AR, MA, etc) is stationary or invertible. After doing some googling it seems that many text-b...
How are feature maps connected between two layers in Theano/Caffe/TensorFlow? For instance, if we have 32 feature maps in Conv Layer 1, and 64 feature maps in Conv Layer 2, with 64 kernels, how does the implementation connect the two layers? Is it fully connected? And if so, does it do an average across all inputs?
I am looking for a way to combine two one-tail t-tests into the appropriate F-test (I think?) in R. Currently, I have been using a one-tailed t-test to check if the mean of the population before a date is equal to the mean. I programmed a simple one-tail t-test because my standard deviations are calculated separatel...
I am conducting a Bayesian Proportions Test (using R's BayesianFirstAid package) of consumer conversion rates at different ad impression frequencies. Conversions are considered successes and impressions are considered trials. This data might look like: > head(x, 10) Freq Conv Imp 1 1 270900 1691270667...
If anyone knows the calculation for one class svm, explain with a small example. I get stucked to calculate lagrange multiplier, rbf kernel function, decision function and all... How to calculate rho, w? [https://www.researchgate.net/publication/282545100_Malware_Detection_in_Cloud_Computing_Infrastructures] This is my...
I would like to cluster some data, with groups of features: For example: age | size | face_feature_1 | face_feature_2 | face_feature_3 | ----------------------------------------------------------------- 48 | 180 | 0.4 | 0.7 | 0.8 | 45 | 174 | 0.1 | 0.3 ...
I am trying to study association between blood groups (categorical variable) and cholesterol levels (continuous variable) adjusted for confounders? I was wondering which statistical test would be more appropriate? Thank you beforehand for any assistance.
Does it ever make sense to form an interaction between a predictor and its quadratic form? Suppose I have the model: $y = \beta_{0} + \beta_{1} x + \beta_{2} x^2$ Is there ever an instance that adding an interaction term between the $x$ and $x^2$ terms makes sense? $y = \beta_{0} + \beta_{1} x + \beta_{2} x^2 + \beta_{...
I am trying to run non-metric MDS on a dataset that has 28 rows (object = burials) and 27 columns (variables). I have coded it as binomial because my data is both qualitative and quantitative. I am able to get an MDS plot using the code below: mortdata<-read.csv("Table5.5.csv", header=TRUE) mortdata row.names(mortdata)...
I am going through the concepts of GLS and its estimation process and have completely understood the "Generalized Methodology". I just wonder how a numerical example can be solved manually(on paper/by hand). for the estimation of b=(X'v^-1 X)^-1 * X'V^-1 Y , I need a numerical example with fewer observations for the sa...
Suppose there is a one-dimensional normal distribution $\mathcal{N}(\mu, \sigma)$ for which we want to infer the joint distribution of the parameters using Gibbs sampling. Let $D$ be the data, consisting of $n$ datapoints $d_1, ..., d_n$. Assume a broad Gamma prior to the precision parameter $\beta=\frac{1}{\sigma^2}$....
We are launching a new button on our website page. We will use AB testing to see if the new button works. I can calculate the sample size for AB testing (number of users needed per day) if we only need to test the improvement of conversion rate. But meantime in our measure metrics of success, we also want to test befor...
I'm currently working on time series forecasting. My data uses a UNIX timestamp. Firstly, what's your opinion on using a UNIX timestamp? The problem I'm facing is that I want a trend line e.g. Power trend y = a * x^b Long story short I have/can get a and b. And x is my input. But since x is a 10 digit timestamp, if I d...
If $X_1$ and $X_2$ are random samples from an exponential$(\frac{1}{\theta})$ distribution, how can I show that $T = X_1 + 2X_2$ is not sufficient for $\theta$ (mean of the distribution)? I know that a statistic can be considered sufficient if I can write the probability function as: $p(X) = h(X)g(\theta,T(X))$ Which i...
Lin's Network in Network paper (https://arxiv.org/pdf/1312.4400v3.pdf) posits that the convolution filter in a CNN is akin to a GLM. How is the filter acting like a GLM on the matrix? Thanks!
Discrete Distributions What is $A$? Why is $\sum_ {x \in A} f(x) = \Bbb P (X \in A), \; A \subseteq S$, in case of a random variable $X$? If $\Omega$ is the sample space and $S$ is the support of the random variable $X$, where does $A$ come from? Is the property $\sum_ {x \in A} f(x) = \Bbb P (X \in A), \; A \subsete...
I am currently self-studying with Casella & Berger and there is a problem that has me stumped. Please note I am NOT asking for a solution, I just need clarification on the terms used. Here is the exercise in question: The way I understand the definition of the set Ek, it is not generally true that P(E1) = P(A1) + ... ...
I'm implementing a (vanilla) neural network, from scratch in R, following Hastie & Tibshirani. As they suggest on page 397, I'm doing it via a conjugate gradient optimizer (optim in R). Here's the code: y <- mtcars$mpg X <- scale(as.matrix(mtcars[,-1])) NZ <- 5 #number of hidden units alpha <- matrix(runif(NZ*(ncol...
It is well known that copula can be used to build the joint distribution of a set of random variables, ie. we can represent: $p(y_1;y_2;...y_p)= p(y_1) p(y_2)...p(y_p) c(F(y_1); F(y_2);..F(y_p)) $ Suppose we have to build a regression model that map an input $x \in R^d $ to an output $y \in R^p$. The output variables ...
I have the following p.d.f: $$f\left( x|\theta \right) =\frac { 1 }{ 2 } \exp\left\{ |x-\theta | \right\}$$ with $x,\theta \in \mathbb{R}$ I need a confidence interval for $θ$, but I have no idea how to start. What I can do with that absolute value? (I'm working with random sample with n=1)
I'm learning about SVM's and understand that boosting something into a higher dimension can sometimes help separate the data better. However, if I were to perform 1 nearest neighbor with the RBF kernel, is it possible that the classification performance is better in the higher dimensional space than the lower dimension...
I'm relatively new to social network analysis and from what I understand many of the common statistical technique do not work in social network analysis due to the non IID nature of networks. My question is, if I want to determine if there is any link between two values of a node (say gender and the degree or weight of...
Thanks in advance for the help and I apologize if any of the terminology I use is incorrect; I'm not the best statistician. This is actually somewhat of a two part question. Suppose that I have a bag that is filled with red and blue balls. I have no idea how many balls are in the bag, but I want to know the distributi...
I am reading a paper on dual frame surveys which has confused me. Without going too deep into the notation, Hartley has an estimator for dual frame surveys which we will denote $\hat{Y}(\theta)$. This takes both samples from the two frames and performs a weighted average estimate for the overlap domain $Y_{ab}$. Now Fu...
`I am reading the book "Introduction to linear regression analysis" 5th by Douglas. In the chapter 3 for the multiple linear regression for model $y = X\beta+\epsilon$, it computed $SSR = \hat{\beta}'X'y - \frac{(\sum_1^n{y_i})^2}{n}$ which I believe it is right. Here SSR is the regression sum of squares (i.e the varia...
I have a linear mixed effects (LME) model with a single nominal-valued fixed effect with 4 levels, and two nested random effects (measurements from cells at each level of the fixed effect, with multiple cells within each subject) w/ random slopes for the fixed effect. If I use a likelihood ratio test to compare the mo...
Is there a theoretical basis against using both L2 and Dropout regularization simultaneously for training a deep neural network? They are both related but could they be complementary if used together?
I am running a mixed ANOVA in SPSS with 1 between subjects factor (4 levels of group) and 1 within subject factor (7 levels). The distribution of race is significantly different between my groups and I would like to control for that. Race is coded as 0=African American, 1=Caucasian, 2=Asian, 4=Native American, etc. In ...
The flash mechanism on camera $A$ fails on $10\%$ of shots, while that of camera $B$ fails on $5\%$ of shots. The two cameras being identical in appearance, a photographer selects one at random and takes $10$ indoor shots using the flash. first we were asked to find the probability of camera $A's$ flash failing exactly...
I have count data (non-financial) from 2010-2014 by week. I am interested in using R and changepoint package to find any significant points of time when the trend changed. I have two questions about implementing change point given that it is searching to significant change to the mean. The data is non-stationary (so...
The Wikipedia Article on one-shot learning described it as Whereas most machine learning based object categorization algorithms require training on hundreds or thousands of images and very large datasets, one-shot learning aims to learn information about object categories from one, or only a few, training images I do...
Exploring the concept of Gated Classification, I came across this page (and paper): http://www.cs.toronto.edu/~rfm/gatedsoftmax/index.html It states that- "An equivalent view of the model is a log-bilinear classifier (or bilinear logistic regression), whose hiddens may be viewed "style" variables that capture within-cl...
I'd like to calculate the probability that at least N independent events out of a set of M events complete successfully. Each event Ei has a probability of success of Pi. For example, if there are four independent events each with a unique probability of success: E1: P1 E2: P2 E3: P3 E4: P4 How do I calculate that pro...
So I have this question that I am kinda stumped on... I have an AR(2) model with $\phi_1=0.4$ $\phi_2=0.5$, I need to find how long of a time series I would need to estimate $\phi_2$ with 95% confidence that the estimate is no more than $\pm0.15$ normally when I am working with linear regression I would just calculate ...
I'm reading this lecture on Linear, Ridge Regression, and PCA. In slide 10 it says that: The things that I don't understand is the 5th statement which says that $\mathbf{y} - \mathbf{\hat{y}} $ is perpendicular to the subspace. Why is this the case?
An urn contains balls numbered 1 to N. Let X be the largest number drawn in n drawings when random sampling with replacement is used. (The event X k means that each of n numbers drawn is less than or equal to k.) Show that when N is large: $${E[X] {\approx} \frac{n * N}{n+1}}$$ Here is my approach: $$P(X=k) = P(X \leq...
so this is a statistical computation question. I have a data sample (X,Y) and a given density function of this sample that depends X and Y given mean of X, mean of Y and theta. I need to run an MLE for the model parameters. How do I approach this in R? I was thinking to use Newton-Ralphson algorithm but I've never seen...
I had to transform my response variable before my analysis, but the only transformation that worked well was the exponential. So, I could not back-transform my values to the original scale. How do I interpret/explain the graph in my results if values are different from the original scale? thanks a lot for your suggest...
I understand how Kaiser rule works for PCA, as no matter how many components I extract I always get the same eigenvalues. For example, with 3 components I get principal(r = corMat, nfactors = 3, rotate = "oblique") .... .... PC1 PC2 PC3 SS loadings 12.62 3.99 2.57 Proportion Var ...