instruction
stringlengths
9
38.7k
I'm trying to work my head around the example of Nested vs. Non-Nested CV in Sklearn. I checked multiple answers but I am still confused on the example. To my knowledge, a nested CV aims to use a different subset of data to select the best parameters of a classifier (e.g. C in SVM) and validate its performance. Therefo...
I was thinking about a problem and I did not know how to search for relevant theory behind it so hopefully someone can help me. Suppose you are playing a game, where someone thinks of an object and he types its name and sends it to you so you can find out which object he is thinking of. However, even though the intent...
I'm analysing a data set of loans in order to estimate the prepayment risk. One thing which differs from my experiment setup compared to the usual biological/medical experiments is the "time frame". Medical/biostatistics experiments usually have clear defined start and ending dates of the experiment, for example, the e...
It says to use Law of Iterated Expectations, but I don't know how to solve this. Can someone please help me with this question?
I've been looking all over to find if there's a formula I can use for this, but here is the problem. I have an event that has a 5% chance of occurring, but each time it fails the chance to succeed goes up by 5%. I know that the chance of It occuring over X attempts is just 1 - (the chances of failure each time multipli...
K-means clusters can be calculated for multidimensional data--with 5 or 8 variables for instance--by minimizing the "within clusters sum of squares" (WCSS) just as you would for 2 or 3 dimension data. But at 5 or 8 dimensions the clusters become hard/impossible to visualize and interpret, so how are such high dimension...
I have a small data set with about 45 observations(rows) and 60 variable(column). the data very small and it was difficult to create a responsible regression tree model with this data. I tried to repeat the rows 10 times, and I surprised the the model quality is improved. I'm not sure if this way is wrong and cause...
I am trying to grasp what is the meaning of getting unexpected negative values for some percentiles of a mixture distribution. Let the distribution function pdf be: \begin{equation} f(x) = (1-p)\cdot \delta(x) + p\cdot \lambda e^{-\lambda\,x} \cdot H(x) \end{equation} where $p$ is the probability of the value of $x$ be...
I am developing a negative binomial regression model that investigates factors impacting the death rate of animals that are fed. The number of deaths was counted over the course of a feeding season, however, the feeding season length (and therefore the number of days over which dead animals were counted) varied. Theref...
We try to denoise our time-series and model inputs with a plethora of methods like Kalman filters, EMA, Kernel filters, Splines, Beziers, etc. But who came up with a theory that trading data is noisy at all (paper)? Don't get me wrong, I used to work with NMR and IR spectra back in the days and they were noisy as hell....
I am building a generalized linear mixed model in SAS. Unfortunately, this is the first time I’m working with GLMMs and I am not very familiar with SAS. I have been using proc GLIMMIX. I have data from 4 sites, each specified with a 4 letter code in the variable site. Each site was sampled 11 times. A crossover de...
Gaussian Processes (GPs) define a prior over functions that can be updated to a posterior once we have observed data. I've been working with scalar-valued GPs, i.e. functions $f: \mathbb{R}^{d} \rightarrow \mathbb{R}$ such that \begin{equation} f(x_1,...,x_d) \sim GP(m(x), K(x,x')) \end{equation} However, I was wonderi...
beginner here. I've seen in a paper $x\sim NIID(0,1)$ and $y\sim N(0,1)$. This confuses me: to me these both look like standard Normal variables. Can someone explain the difference?
For a continuous random variable $X$, if $E(|X|)$ is finite, is $\lim_{n\to\infty}n P(|X|>n)=0$? This is a problem I found on the internet, but I'm not sure whether it holds or not. I know that $n P(|X|>n)<E(|X|)$ holds by Markov inequality, but I can't show that it goes to 0 as $n$ goes to infinity.
I'm experimenting with using RNNs/LSTMs in place of a Kalman Filter (KF) for sensor fusion. I'm struggling to make much progress, and would appreciate some feedback/advice. I have several multi-variate time series of multi-model sensor data. I also have an equal length multi-variate time series that I'd like to predict...
Is it possible for a moderator variable to be correlated with the error term? Suppose I have a simple regression model as follows: $y=\beta_0 + \beta_1x_1 + u$ Now, if $x_1$ - the predictor variable - is correlated with the error term $u$, then I have an endogeneity problem. Does this problem get worse when I add anoth...
I'm learning a bit about hypothesis testing with two independent samples (continuous outcome), and I'm just curious about where some of the equations for the test statistics are derived and/or what they're measuring. Suppose our first sample is of size $n_1$, has mean $\bar{X_1}$, and standard deviation $\sigma_1$, a...
What is meant by $\hat{Y} - Y=O_{P}(n^{-1})$, for example, and how this is related to consistent estimators?
As shown in the image, Murphy explains that if 5 is given, then 2 and 6 are conditionally independent (CI), because paths 2-5-6, 2-4-7-6 and 2-1-3-6 are inaccesible. However, couldn't the information travel via the path 2-5-3-6? Since 5 is the child of 2 and 3, if 5 is known, then the information is reflected from 2 t...
I am wondering why in linear regression, if you have a categorical variable like months of the year, and you represent it by dummy variables, such as: $X_1 = 1$ if it is January, $X_2 = 2$ if it is February, $\ldots$, $X_{12}=1$ if it is Decemeber, why dropping one variable for the sake of collinearity doesn't make you...
I've a set of 500+ observation (200+ feature vector dimension) of 7 classes and want improve my classification rate (with SVM or KNN). To reduce the dimension and transform the feature matrix to a lower dimension (due to curse of dimensionality), I'm using LDA. It maps my high dimensional data to lower 6 dimensions. B...
I need to compute the expected value $E(X)$ of the expected value of $X$ for this game: Consider a game of chance consisting of a single trial with exactly two outcomes, which from a player's perspective we will call win and lose. To play the game, a player must wager an amount, which we will denote by $a$. If the...
I have a video with a periodic process that can be seen as a change in brightness of the frame. I am measuring the process by calculating the average brightness value of the frame and plotting it over time. My video looks like a star-field with stars pulsing in sync. I would like to quantify my signal/noise but I don't...
Can we convert any A/B testing problem into a multiple testing problem?
Suppose I'm ranking college students against their peers, and I want to study whether the size of the peer group affects the impact of ranking. For example, if students are ranked in groups of 20, do they work harder than if they are in groups of 100? I also want to study whether the impact varies across subgroups: for...
I have a question about predicting a new instance with a missing predictor(s). I am given a data. Let's say I preprocess, clean data and as a result, let's say, 10 predictors left. Then, I train my model on a resulting data, so I am ready to use model to predict. Now, what should I do if I want to predict a new instanc...
In principal components analysis, the principal components are chosen according to three criteria. The first component is chosen to be the direction in the data with greatest variance. The second is chosen to be the direction with greatest variance GIVEN that it is orthogonal to the first. I am wondering if there is a...
Why do we need the concept of a class midpoint (frequency distribution) in the study of statistics? What does it achieve?
I am reading a paper that reports "pairwise p-value"s. If someone reports "pairwise p-value" for 4 pair of values without telling anything about the performed statistical tests, does this make any sense? Is there an assumption of a specific test that automatically comes with the "pairwise p-value" terminology? Additio...
I have a class imbalanced data & I want to tune the hyperparameters of the boosted tress using LightGBM. Questions Is there an equivalent of gridsearchcv or randomsearchcv for LightGBM? If not what is the recommended approach to tune the parameters of LightGBM? Please give solution preferably in python or even R.
I have a fixed set of outcomes which should typically be determined by a fixed set of inputs (like a multi class problem).Here is a simple workflow: initial inputs -> suggestion (prediction based on inputs) -> action (performed by humans) -> re-examine current inputs (inputs may change as a consequence of action) -> c...
I am building an SVM based classifier (libsvm) for two distinct balanced classes which are non-linear but separable with an RBF kernel. Both classes have 175 instances each, which must be utilized for training and testing. What is the most accepted scientific method for validation of the model, showing the probable pr...
Am i right in the assumption that you can only do one step ahead forecasts with the MA-Model? For example in the MA(1)-Model Forecast Y(t+1)=alpha*e(t)+e(t+1) we have e(t) as the real Value Y(t) minus the value of the forecast of Y(t). Now for the next forecast Y(t+2) we need the residual e(t+1). But this residual is...
I am very new to neural networks. I am running a simple ANN with Keras (TensorFlow backend) on a dataset with around 5000 observations and 4 features. I am trying different parameters and such things in the neural network, and then plotting the train and test error. For instance I increased/decreased batch_size, I incr...
I have an existent piecewise regression model correlating the parameters X and Y as follows: If X<0.1, then Y=0.744. If X>=0.1 & X<=0.8, then Y=0.842-0.977*X. If X>0.8, then Y=0.06. The model was originally developed based on (X,Y) data pairs measured on one location. Now, I have new measured data from different locati...
DATA 30 individuals; Each individual has an associated graph; Individuals graphs represent the connections between brain regions: nodes are brain regions, while edges' weights are the strengths of the connections. There are 100 brain regions, which are the same across subjects. It implies a total of 4950 edges; Each i...
I want to see how the age of road traffic accidents victims change throughout the year. Ive done this by amalgamating lists of the ages of victims from 05-16 and created a histogram for each year. Ive tried plotting them all in on one plot using matplotlib in python however the result hard to pull any insights out of. ...
---------------------------------- X gender location type ---------------------------------- 33.2 f AAA xxx 44.0 f BBB zzz 12.8 f AAA yyy 8.1 f BBB yyy 65.3(*) m BBB yyy 73.1(*) m BBB xxx ............
I am using the clogit function for the matched data with the disease-outcome and categorical predictor. However R returns message "X matrix deemed to be singular;" I saw posts where similar situations were discussed however in my case when I made dummy variables corresponding to the categories, they don't correlate. Al...
The thing I like most about the permutation test is that it is intuitive, but I am not sure if it works in my case as independence would be hard to assume. I a have data collected over a period of 10 weeks each day for a "pre-period" and data collected over a period of another 10 weeks (sometimes the next 10 weeks and ...
I have a huge data file, so i can not read it in memory. I read it chunk by chunk, then fit it by using partial_fit( like as : SGDClassifier). So how can i do hyper parameter tuning for my model ? I can not do cross validation because data can't be loaded in memory, also tuning hyper parameter for each batch will lead ...
Within a Neural Network during the learning phase ,there are two mechanisms happening. Feedforward and Backpropagation. Taking an example of XOR operation. A B Q 0 0 0 0 1 1 1 0 1 1 1 0 For the first pass(0,0->0) feedforward takes place, then backpropagation happens.After this step all the weights ...
Given $X, Y, Z$ i.i.d random variables the probability $P(X+Y>Z)$ can be found by the following three approaches: $X+Y-Z > 0$ region cuts the $X Y Z$ volume into two equal volumes as $X+Y-Z=0$ plane passes through origin. Thus, $P(X+Y>Z)=\frac{1}{2}$ which seems doubtful as $X+Y$ is mostly more than $Z$. $$P(X+Y>Z) =...
Suppose I had two models. One gave me a validation accuracy of 75% but showed high over fit (75% validation vs 87% train accuracy), the other had a lower accuracy 69% but less variance (69% validation vs 75% train accuracy) Which should I choose? It makes sense to choose the higher accuracy since that's what I am after...
Hi, I am trying to find out whether a certain behavioral trait in birds is heritable and have ~ 10K 3-generation pedigrees of birds (N total birds ~ 200K). Not all pedigrees have 3 generations of data--for some birds, we were only able to trace 2 generations. The outcome is odds of the grandchildren birds have binary t...
I am starting to study Neural Network. I want to build a MLP where I will feed it: 3 features which are continuous one feature which is categorical (48 classes) How can I do this? Before adding the categorical feature, I was using 'relu' activation function and 'lbfgs' as a solver in MLPRegrssor in sklearn. I was won...
I am new in R and time series analysis and need some help. I am currently trying to create a tool to forecast the demand of power for a company. On my data set I have 17550 observations that correspond to the demand on the last 17550 hours. My approach to the problem was to try fit a time series with a multi seasonalit...
License plates for cars in Switzerland have the 2-letter abbreviation from the Canton and then between 1 and 6 numeric digits. There are no alphabet characters in the license plate, and therefore no way to purchase vanity plates, like in the States. When you register a car, you recieve a randomly selected plate numb...
Is this because when X and Y are independent, E(XY) = E(X)E(Y). So Cov(X,Y)= E(XY)-E(X)E(Y)=0? Or is there another way of solving this through using Law of Iterated Expectations?
I am reading mixed opinions comparing bayesian A/B testing and frequentist ones. Basically my understanding is the following; consider the case of A/B testing with binary outcomes (https://www.evanmiller.org/bayesian-ab-testing.html#mjx-eqn-binary_ab_pr_alpha_b): With frequentist approach, you basically calculate the ...
I have a dataset of debt collections and I am trying to predict how much each person paid. The paid amounts are greatly zero-inflated. In the past I have built a two-stage model predicting the probability of payment followed by the payment amount. It seems that a neural network would be a good choice to learn both mode...
If I recall correctly, we can add and subtract variance if variables are independent, and have a mean of 0. I have two distributions that are summed up: (a) one with high variance, low skewness and low kurtosis, and (b) one with lower variance, higher skewness and higher kurtosis. I'd like to have a mathematically so...
I'm trying to figure out which "average" and "deviation" statistics are most appropriate for a software benchmark I'm creating. For background: I am benchmarking programs whose task is to read in a given set of 'definitions' written in some programming language (e.g. a plus function, a sort function, etc.), and after s...
I have a large, sparse matrix $M\in\mathbb{R}^{n\times p}$. Centering $M$ to compute the covariance matrix $\Sigma$ would, in general, destroy the "zeros aren't stored" property of sparse matrices. Instead, we can center $\Sigma$ after computing the second moment. There are any number of ways to do this, but I want one...
Let $$ y = x_1 + x_2 + x_3 $$ where $x_1, x_2, x_3$ are draws of random variables of the same family and different parameters: $p(x_1| \theta_1), p(x_2| \theta_2), p(x_3| \theta_3)$ We know that, for some distributions that are closed under convolution, then the distribution over $y$ belongs to the same distribution...
I am trying to use a Variational Autoencoder to learn a multivariate normal distribution. I know that from practical point of view this is pointless, as we can sample from a normal distribution itself, however I wanted to try this before going to more interesting applications. I am using the algorithm presented here. I...
I'm performing an experiment and have gotten a $p$-value that is supposedly significant with a value of $0.00001$. Now my question is, how can I tell which groups are different from one another?
Given an exponential family distribution of the form $$ f_X(x)=h(x)e^{\phi(\theta)^TT(x)-A(\theta)} $$ with natural parameter $\eta=\phi(\theta)$, sufficient statistic $T(x)$, and log partition function $A(\theta)$. We can absorb the $-A(\theta)$ term into the natural parameter vector by concatenating it: $$ \phi'(\the...
How can I make a classifier that adapts to an increasing number of classes in the dataset. How many nodes should I use as output? If I use a softmax I need to specify the classes but if the classes increase, how can I still use part of the pre-trained architecture and make it learn more classes? Is adding nodes or u...
I am trying to understand if there will be multicollinearity between few variables or not. I took a sample data and tried to see the Variance Influencing Factor results - in general vif > 4 indicates multicollinearity. From the below can I say that only Q6,Q5,Q7 are multicollinear and the rest are not? Variables ...
I have a number of data such as the following. Each represents a trial where two options (V1 and V2) were given to a participant ("judge") and they were asked to pick one over the other. V1 and V2 can fall into one of 5 categories, labeled below as 1, 2, 3, 4 or 5. All participants will see the same set of pairings. Th...
I am not sure if our results are meaningful. We are comparing the molecular effects of blast injury to the brain. We have 2 different blast/control groups: The animals receive a single blast, with their control group in which the animals receive the same treatment without the blast (e.g., anesthesia, etc.). The anim...
I'm trying to interpret what exactly the odds ratio is telling me here. 3 proteins are analyzed to describe contracting alzheimers disease. Protein1 appears (From scientific data) to reduce the risk Protein2 appears to have no effect Protein3 appears to increase the risk of alzheimers Now, if I get an odds-ratio of .5...
I've fit a multiple linear regression model on a dataset with approximately 3000 cases. However, due to missing data, the original model only estimated on roughly 1200 cases. Using data imputation, I managed to estimate the model on all (3000) cases, but doing so, the $R^2$ deteriorates. Is this caused by the increase...
Original equation is as below: $$y = X_1\beta_1 + X_2\beta_2 + u $$ I have to compare the estimator $\hat\beta_2$ and residuals $\hat u$ with the below different regression models: $$y = X_2\beta_2 + v$$ $$P_xy = X_1\beta_1 + X_2\beta_2 + v$$ $${M_{x_1}}y = X_2\beta_2 + v$$ $${M_{x_1}}y = X_1\beta_1 + {M_{x_1}}X_2\be...
I'm trying to generate two gaussian variables: one that has heteroskedasticity using the rnorm function like this answer. I have trying to use rmvnorm but it generates the same sigma simultaneously.
Let $x$ and $y$ be two multivariate Gaussian variables, $x\sim\mathcal{N}(\mu_x,\Sigma_x)$, $y\sim\mathcal{N}(\mu_y,\Sigma_y)$. What is the value of the expectation. $$ \operatorname{E}\left(e^{x^\top y}\right) $$ More generally, $x$ and $y$ might be correlated. In which case $$ \begin{bmatrix} x \\ y \end{bmatrix} \si...
I am finding it difficult to differentiate Estimation methods from Optimization methods in the context of Machine Learning. Both are used for calculating the parameters of our model so how are they any different? Is any one of them the subset of the other?
How to determine if this time series is ergodic? According to the ergodic theorem the mean must converge to the expected value starting point. How do I determine that? Hoverever I have plotted the mean observations for the last 500 days, and it seems that it doesn't converge so I can conclude it is not ergodic?
I´ve got problems with interpreting my multiple regression results. In my first model I´ve included only my DV and my sex as a dummy (0=men 1= Women). There is a significant positive relationship between sex and my DV. In my second model I added a variable and the previous relationship becomes insignificant, the new v...
Post-hoc adjustments are used to get closer to the true posterior distribution when doing Approximate Bayesian Computation. This is particularly important when using a rough algorithm like rejection/sampling. I have been using the multiple weighted linear regression as proposed by Beaumont et al (2002) for a while. Thi...
When we say numerical integration is difficult for high dimensional problems, what do we mean by high dimensional? For example, in the Bayesian framework, the marginal normalizing constant can be hard to compute. Does 'high dimensional' simply refer to the infinite integration range under which no closed form expressio...
I have a box that contains three types of balls: blue yellow and red. I do not know how many balls there are in the box nor the proportion of them, the number of the balls is not infinity though. When I withdraw the balls, it is a random process, and also I do not return the drawn ball back into the box. Given that...
Are there any references on using (sparse) group Lasso for GLMs? I am interested in Gamma GLMs. Any examples of software to perform this would also be appreciated.
I do not understand the following part of this paper (page 4): Can someone explain how this math gives us soft alignments between similar words? Thanks
I have one question from econometric class which asks to find the probability distribution of the following: $$X_c = X ({1_{\{|X|>c\}}}-{1_{\{|X|\le c\}}}) $$ where $X \sim N(0,1)$ and $c > 0$. I am not even sure what $X_c$ is referring to. Does anyone have any idea? Thanks!
I have made a LSTM network (hidden size 16) where I give a sequence of 10 numbers as the input and feed its output to a fully connected layer. The numbers in the sequence are corresponding to the words in the dictionary that I created (Eg: number 12 in the sequence corresponds to the 12th word in the dictionary) What I...
I am a beginner of the machine learning. And at the same time, this is the first time to ask a question in this site, so I might have a problem with this question in terms of understandability. And when I learned backpropagation, I saw this type of formula. E: scholar function(error function), $\mathbf{W}$: matrix(Weig...
If the ARIMA model is: $Y= X_1+X_2+X_3+X_4$ I have data of 50 years. What is the sample size here? 50 (50 years of observations) 250 (each variable/series has 50 years of observations, total 5 variables, 50*5=250)
I am trying to do two-sample T-test in Minitab where I have to compare average of one variable with another binary variable. I am having difficulty in choosing alternate hypothesis. So just for guessing I tried both ways H1: u1 > u2 and H1: u1 < u2. Both gave same values of t less than critical t value (that is I canno...
I'm implementing Naive Bayes and a Decision Tree on the same data, and I need to cross validate with Kfold. Do I have the right sequence of events? Overall, does it make sense or am I misunderstanding something? Some of what I've read is contradictory. Train_test_split (75/25 or whatever) Fit the model with X, y Train...
I have one park where each half is under different management (due to county lines splitting it) and I'm interested in examining the effect of the management style on individual subjects. Within each side of the park I have two clans, subjects belong to one clan. score ~ park + (1|park/clan) However, when I run this ...
I am adding this again with details as suggested The following questions were asked. State if true The test statistic for the difference of population variance follows an F-distribution The test statistic for the difference of population means, when population variance are unknown, follow a T-distribution I went thr...
I have a problem which I do not know even if it is theoretically possible (not a ML expert): Assuming that there is a vector of drugs dosages that people take. So the input vector is something like (0.2, .5, 0.4 ...). The output vector should be the of the same length, suggesting better dosages. Is there a machine lear...
I am working on a problem of advertising industry to estimate RPM(Revenue per 1000 impressions, https://techterms.com/definition/rpm). Revenue depends on CTR( ad click rate) and RPC( revenue per ad click). Which is the better way to model the problem amoung the below 2 method or is there any other way to model this pro...
Having read about studentized residuals I do not understand how the idea of different residual variances conditional on certain values of a predictor $X$ (as implied by the concept of studentized residuals) is not inherently conflicting with the assumption of homoscedasticity in linear regression models with a single p...
Problem: Let $X_0$, $X_1$, $X_2$, and $X_3$ be four independent exponential random variables with the PDFs $f_{X_i}(x_i)={1\over \lambda_i} \exp(-\frac{x_i}{\lambda_i})$ where ($i=0,1,2,3$). Let $X=\frac{X_0}{b}$ and $Y=\frac{X_1}{X_2X_3a}$ (where $a$, $b$ and $x$ are positive constants) and I want to find the: $$\eqa...
While preprocessing data we need to carry out the following steps: Missing value Imputation Outlier Detection Transformation of Data In what order should we perform these 3 steps while preprocessing the data?
Consider the example in this article http://text-analytics101.rxnlp.com/2014/10/computing-precision-and-recall-for.html Will accuracy be (30 + 60 + 80)/300? what is weighted precision?
I have a pre post design with three groups. I have done Mann Whitney tests to compare pre-post change between groups 1 & 2, 1 & 3, 2 & 3. I have two questions: Am I right in doing Mann Whitney? If pre-post change is significant between say group 1 & 2, how would I know which group has brought about a greater change? ...
I am working on an automatic content analysis. The measurement will have six dimensions and the scale of measurement will be metric with three levels. The dataset contains 4000 cases. Example: - Dimension 1: 1 = positive, 0 = neutral, -1 = negative , NA = not available - Dimension 2: 1 = positive, 0 = neutral, -1...
I have a question concerning actor critic methods in reinforcement learning. In these slides (https://hadovanhasselt.files.wordpress.com/2016/01/pg1.pdf) different types of actor-critics are explained. Advantage actor critic and TD actor critic are mentioned in the last slide: But when I look at the slide "Estimating ...
From the EM algorithm it outputs the probabilities of each data belong to each cluster, which are computed from a iterative updating process. So these probabilities are not really theoretical results from the algorithm, in the sense that there is no closed-form expression for them. Then is there no way to deduce the pr...
I have a collection of data entries for vitamin D levels in around 1000 people. It looks roughly like this: id vitamin_d_score group 1 35.2 A 2 29.9 A 3 35.6 B 4 39.6 B 5 30.0 A 6 40.5 C etc. I have z-scored the vitamin D levels so ...
I am doing an assignment for a Biostatistics course. We are asked very simple questions but there is one that seems strange to me. We have to plot the histogram of the blood pressure before and after a treatment. In the data-set we have both the treatment and the control group. The question simply asks us the plot it, ...
I have five independent variables, each of which vary between 0 and 10. The output of from these combinations is multi-class output which is essentially a judgement call by an industry expert. We are planning to have this as our base training set and then subsequently enhancing the model as and when new / actual data s...
I have to forecast the future gold loan portfolio growth of a financial firm. I have past 36 month growth data. I am planning to use Monte Carlo simulation to forecast, but growth is a deterministic process not a random process. How can I apply Monte Carlo for this situation?
As part of my thesis I have proposed hypotheses: Perceived Supervisor Support is positively related to Employee Engagement Perceived Organization Support is positively related to Employee Engagement Perceived HRM Practices are positively related to Employee Engagement I have done the survey in my company and have rec...
I have two strings, e.g str1="abddbabc" and str2="bbcadbbd". I know that each letter is representative of a floating point number, but I don't know what that number is. The only information that I have is that if a letter has higher alphabetical order its floating point value is larger (e.g floating point value of ...
I am stuck on problem 7.3 from the book 'The Elements of Statistical Learning'. This is the problem: Here is my attempt to a solution for least-squares projections: $$y_i-\hat f(x_i)=y_i-x_i^T(X_{-i}^TX_{-i})^{-1}X_{-i}^Ty,$$ where $X_{-i}$ is the matrix of training-example predictors with $i^{th}$ example (row) remov...