instruction
stringlengths
9
38.7k
I am analysing data using a GLM. In some GLM-s data is binary while in others the response variable is count data. I want to know if it is necessary to use an ANOVA after constructing the GLM model. Or is it enough to report the p-values of the GLM-s?
I have a dataset which I split as 80% training and %20 validation sets. (38140 images for training, 9520 for validation) Model that I train is a deeper (~45 layers) convolutional neural network. I got the below results in the first epochs of training: Epoch 1: train loss: 1041.52 - validation loss: 1045.89 Epoch 2: tr...
I have 5 independent variables and 1 dependent variables and I run up some codes in r and what I found was it didn't have any multi-colinearity but did have some heteroscedascity and auto-correlation as mentioned above. Is there any way I could correct these two simultaneously? The data are oil price analysis based on ...
I have a situation where I have two sets of apples. I want to show that one batch has more problems than the other. How could I go about doing it? The problems are things like: "Mold", "Worms", "Rotten" So far I looked at each apple and gave it a score where each instance of a problem counted as "1". So if an apple...
I want to test with a full model testing significant interactions with the main predictor 'Nadd' for my log transformed response ratio ('MSA'): MSA ~ (MAT + MAP + MST + Ndep + Duration + Fert)*Nadd + (1|Experiment) There is a wrapper function in 'glmulti' that allow to filter out undesired interactions from the full m...
I am working on a problem where I need to reliably measure the nth percentile of a non-parametric distribution without having to use all the data. Ideally, I was wondering if it is possible to do this like the case with a parametric distribution like Gaussian, where all you need for Gaussian is the mean and variance?
I have a binary outcome fit by a logistic model with a continuous independent variable that is logged to ensure a linear rather than exponential relationship to the dependent variable. I have included the second order term as it appears the fit is improved overall. The resulting formula is: fit <- glm(y ~ poly(log(x),2...
I have a problem with the Difference-In-Differences' control group. In particular I have data from 2001 to 2015 and the problem rises because the timings of the treatment period can start from 2006 (till 2015) but is different for the different treatment group's elements. In this case the dummy variable that represent ...
I know this question has been asked a billion times, so, after looking online, I am fully convinced that correlation between 2 variables does not imply causation. In one of my stats lectures today, we had a guest lecture from a physicist, on the importance of statistical methods in physics. He said an astounding statem...
Consider a piecewise linear function with $M$ knots: $Y_i = \beta_1 + \beta_2x_i + \beta_{21}(x_i-\kappa_1)_+ + \beta_{22}(x_i - \kappa_2)_+ + ... + \beta_{2M}(x_i-\kappa_M)_+ + e_i$ where $(x_i-\kappa_m)_+ = (x_i-\kappa_m)$ if $(x_i-\kappa_m) > 0$ and equal to zero otherwise. For a penalized spline, the regression p...
It is common in Deep Learning to use SGD (with mini batches). However it is also common that the data sets are too large to compute the full current accuracy of the model using the whole data set as it trains. Thus, it seems that one alternative is to instead use fractions of the data set to asses how the training is g...
When I use Baron & Kenny's approach to test mediation, I receive the following results (IV: independent variable, M: mediator, DV: dependent variable): DV ~ IV : IV is significant M ~ IV : IV is significant DV ~ IV + M : M is significant, but IV not Now, the curious thing is that these data are based on an experiment ...
Consider a high-dimensional linear decision problem with points $\bf x_i \in \mathbb{R}^N$ and corresponding binary labels ${\bf b}_i \in \left\{0,1\right\}$. Assume there is an optimal decision boundary $\bf d$ and bias $\bf b$ such that the decision rule ${\bf d}^\top {\bf x}_i > 0$ perfectly predicts the class label...
Let's say you have some Real-valued features $\mathbf{X}$ and Real-valued univariate responses $\mathbf{y}$. We want to fit a regression model to this data: $$\mathbf{y} = f\left(\mathbf{X};\beta\right) + \mathbf{\varepsilon}$$ Where fitting is done by minimizing some loss function $L(f(x;\beta),y)$: $$\hat{\beta} = \m...
I have data like the following image, where the x-axis is the absolute elapsed time in hours (think calendar days; this plot goes over ~2.5 years), and the y-axis is the manually entered uptime of a machine in hours. For my data processing, I need a very robust way of smoothing the data. The image below shows a black, ...
I have a question which I can't find an answer online. When we ask a software (SAS, R,...) to calculate the LSMeans from a linear model, like regression, what is the procedure? Does the model find predicted values and simply calculates the mean, or is it slightly different?
I have two vectors that look like this: I would like to make a significance test on the paired differences between the two vectors, as well as measure association. The process of data generation is "known" to generate log-normal data, when randomly sampled. In this particular experiment: samples are not random, there...
I have 4 different data sets with samples of time-series measurements of different actions. The duration (# data points) of each measurement in the different sets is: Set # 1 = 40000 data points Set # 2 = 8000 data points Set # 3 = 5000 data points Set # 4 = 40000 data points My plan was to have a window size of 1...
I'm using the standard kernel: $K(x_1, x_2) = \exp(-\frac{1}{2} (\frac{(x_1-x_2)}{l})^2)$, with $l=1.0$. I picked some arbitrary function, and then picked 15 points from which to learn from. Here's the graph I get when I plot those points, the real underlying function, and the learned conditional distributions confiden...
When I use simulation to determine a p-value I am aware that the exactness of my p-value will be at most an estimate because I am using the scores of my sample and not my population, so that my computed p is on average close to its true p-value. How do I deduce whether my estimate is a good estimate or a not-so-good e...
After 15 years post uni formally not using stats I find myself covering for someone at work for the next 6 months and it is rather stats heavy. The memory is very hazy but the mind is willing. I have to test how effective a training technique has been in my unit to see if it will be rolled out across the organisation....
I am dealing with a time-series consisting of 20-second observations over a 24-hour period (4320 observations). I'm wondering if it is sensible to characterize significant shocks (such as an important news event) as structural changes, even if it only applies to a single day data. Or are structural changes strictly mac...
I notice that after normalizing a variable by firm size (to control for firm size), the variance of that variable goes up. I was expecting the variance to go down in fact. Does this mean that I should not normalize by firm size?
There are a lot of people in this site that say that you should never delete covariates from your model just because they're insignificant. That seems quite silly to me. Just because your variable is insignificant (in the sense that the $p$-value is high), doesn't mean that it won't affect your model predictions. That ...
Suppose $X$ is normal with mean $\theta$, and variance equal to 1. What is the distribution of $X^2$?
I feel like this is an extremely basic question, but have not been able to dig up an answer. We're enumerating migrating fish, and there are some counting periods (hours) in which we were not able to count during the full period. In these cases, we've estimated the total passage according to the form $$\hat{m}=\frac...
In my machine learning textbook, the most common way after applying a ML algorithm to a training set and test set is to compute the mean square error between your predictions and the response variable in the test set (in the case of regression). I was wondering, as an alternative, can one measure the correlation (or so...
I was wondering if there is a way to estimate parameters of Johnson SU distributions parameters with some univariate data.
I am running a cost sensitive ensemble methods (for the first time to access algorithms of this type) 'CostSensitiveRandomPatchesClassifier' in Python on my imbalanced dataset (positive cases are rare and counted for 0.5% of the total). What I found are: I set the cost matrix element in the order: [Cost_FP,Cost_FN,Cos...
I was asked in an interview to solve a use case with the help of machine learning. I have to use a Machine Learning algorithm to identify fraud from transactions. My training dataset has lets say 100,200 transactions, out of which 100,000 are legal transactions and 200 are fraud. I cannot use the dataset as a whole to ...
I'm working through the Coursera course Bayesian Statistics: From Concept to Data Analysis by the University of California, Santa Cruz and there is a worksheet that requires me to use R or Excel to find the answer to this: Let $Y ∼ Gamma(2, 1/3)$. Find $P(0.5 < Y < 1.5)$. The answer is given as 0.078. I would like to ...
The standard error of a proportion will be the largest it can be for a given $N$ when the proportion in question is $p=0.5$, and gets smaller the further the proportion is from $0.5$. I can see why this is so when I look at the equation for the standard error of a proportion, but I can't explain this any further. Is th...
I was conducting a meta-analysis of single proportions(i.e. without a control group) and was trying to perform a meta-regression on a moderator in my data set (lable:modb) using two different R packages (meta and metafor) in order to see if they could give me the same results. I used three transformation methods before...
Suppose I have the following dataset: import numpy as np a = np.array([ 0.00854492, 0.00622559, 0.01733398, 0.04077148, 0.03027344, 0.04418945, 0.07006836, 0.04626465, -0.00158691, 0.04345703, 0.06213379, 0.0300293 , 0.05517578, 0.02636719, 0.05688477]) a.mean() 0.035742187999999994 a.std()...
What does t state for in this equation ht=tanh(Whhht−1+Wxhxt)? I found it in this article about recurrent neural networks: http://karpathy.github.io/2015/05/21/rnn-effectiveness/ Another example is this photo There is t, t-1 and t+1
This is the first time I am designing an A/B experiment and I have read up all I could but still not completely clear on making a decision. It would be really great if the pros here could provide some guidance on the below setup or point me in the right direction We are building a new capability that will enhance the p...
Let's say I have a Bayesian model with a proper prior $\pi$, likelihood $L$, data distribution $p(x|\theta)$ (assume $\theta$ is a scalar) and the vector of sample values $x$: $$p(\theta|x) = \frac{\pi(\theta)L(\theta|x)}{p(x)}$$ If I took my model seriously as a hierarchical description of the data generating process,...
I'm using the Cross-Entropy Method (CEM) [1] [2] to train a neural network (NN) for use in reinforcement learning. I get poor performance when my elite sample size gets larger than a couple samples, even if I increase the total number of samples as to keep the elite proportion low. I'm wondering if the problem is that...
After looking at This question: Trying to Emulate Linear Regression using Keras, I've tried to roll my own example, just for study purposes and to develop my intuition. I downloaded a simple dataset and used one column to predict another one. The data look like this: Now I just created a simple keras model with a sing...
Maybe you find my question a bit simple but I'm really confused as I'm not statistician. I have 2 SNPs (can be proposed 2 genes instead) that are related to a primary disease (like major depression), by simple cross sectional case-control design. already it is clarified there is a significant correlation between these ...
I generated a csv file with 167 attributes and around 5000 entries. One is a nominal attribute, two are dates and the rest is numerical. I can import the file into the weka explorer without problems. But all clustering methods and most attribute selectors are greyed out. This still happens if I delete around 50 of my a...
I am not well versed with statics. Basically an engineer, and use statistic algorithms to solve problem.Currently I am involved in time series analysis,, using R, and for this using forecast package. So I am trying to understand the way Arimax(auto.arima) works. I was mainly trying to understand the forecast part. So...
we know that t-test consider the arithmetic mean only. How could I compare the geometric means of two different groups or several groups?
I'm dealing with a low event rate problem (e.g. credit card fraud). I've balanced my data with SMOTE, and ran a neural net model (cross validated with recall as the measure). However my precision (as can be expected) is very low. I want to use the positive predictions (TP + FP) from my model as an input to another mo...
I want to do a double- blind sham controlled clinical trial of a laser therapy for a skin disease. As the primary endpoint is change in inflammation between pre and post treatment/sham biopsies I expect the sham arm to have very little to no effect. I expect that the treatment will have moderate-high improvement- lets ...
I have a toy example of modeling sinus function using simple FC layer NN. My input data is just 150 data points uniformly randomized in range from 0 to 10. I started from fiting NN using tanh activation with following architecture: model = Sequential([ Dense(10, input_shape=(1,), activation='tanh'), Dense(1),...
My colleagues and I have been using Google's R-package CausalImpact for a while but recently discovered something that we can't quite explain. Depending on the order of including the different control time series into the variable "data" CausalImpact generates different outputs. Example: Using a slightly different vers...
Let the task be classification and the neural network under discussion to have Sigmoid activation functions and be trained by Backpropagation and SGD. How can I force the networks hidden activations to be normally distributed for each class while using gradient descent? The idea is to simplify statistical analysis with...
Imagine you have a time series dataset, e.g. price returns of a set of stocks over time. You want to predict the price returns of a stock, given only non-price data of the stock for that date (so, for example, recent changes in price or previous price levels would not be in your feature set, but various fundamental par...
Text of the problem I have to solve.. State the generic case of a Bayesian treatment of the parameters $\theta$ used to model the data, i.e., $p( \theta | X, Y)$. Derive the estimate of the mean, assuming that the model of the output variable is a Gaussian distribution with a fixed variance. Which are the advanta...
As far as I'm aware, there exists two attempts at inputting the structure of tree-like data into the structure of an LSTM. In "Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks" a Tree LSTM is used to parse syntax trees for text classification. In "Spatio-Temporal LSTM with Trust ...
I need to estimate the survival function using Kaplan-Meier method. I am considering the duration of 60 days. In the beginning (Day 1), lets say there are some 400 individuals. My question is: 'after my study has started, can I add more people into the study on day 20th. Does KM method allow this? Will my survival prob...
I have 500 observations and 200 predictors, and I want to do the prediction while selecting some important features. I know that regularisation method (ridge, lasso) are shrinkage method for high-dimensional setting, and the lasso also has an advantage of model selection. It is the fact that the setting with 500 observ...
While the results of the private test set can not be used to refine the model further, isn't model selection out of a huge number of models being performed based on the private test set results? Would you not, through that process alone, end up overfitting to the private test set? According to "Pseudo-Mathematics and F...
Modern neural networks use cross entropy as a loss function, because of shortcomings of MSE. So, why is MSE still being used in SVM (and maybe other learners) and not replaced by cross entropy?
My textbook has the following example problem: The production manager of bullets claims less than 5% misfire. You have strong doubts about this claim. You decide to collect 1000 bullets and test how many misfire. Test whether the manager is correct at the $\alpha = 0.05$ level of significance. The solution for ...
This is with reference to the CamVid dataset and one of its tutorial here: http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html I'm quite confused by how the model is supposed to be trained on 11 classes, when there are 12 classes in the ground truth segmentation, which includes the void class of 0. How is the network...
My question is more statistical problem, so I am posting it here. I am writing a function in R to calculate partial correlations and store results in an empty vector. This is a simple version of my code: library(ppcor) primary_data = floor(runif(50, min=0, max=101)) my_data1 = data.frame( A=floor(runif(50, min=0, m...
I have a data series that looks like this: Index Date Week Y X1 X2 1 1/1/1999 1 1 0.17 0.70 2 1/8/1999 2 2 0.14 0.32 3 1/15/1999 3 3 0.88 0.93 4 1/22/1999 4 4 0.33 0.49 5 1/29/1999 5 5 0.81 0.04 6 1/1/2000 1 6 0.35...
I have a model defined in state-space form as: $y_t=F_t α_t+Γ_t w_t+ε_t$ $α_t=Gα_{t-1}+Rη_t$ $ε_t∼(0,H_t ) ,η_t∼(0,Q)$ - measurements of vector and transition shocks Where y_t is a multivariate vector of length m = 4, and α_t is p=1 dimensional (I think). Furthermore, m contains 2 stock variables and 2 flow variable...
In case of a cricket match, there are two teams. One gets to bat first while the other bowls and then the reverse happens. The team batting first sets a target number of runs for the following team. The team that bats second, is chasing a target number of runs, trying to make 1 more than the target to win, while the ot...
Could the mutual information over the joint entropy: $$ 0 \leq \frac{I(X,Y)}{H(X,Y)} \leq 1$$ be defined as:"The probability of conveying a piece of information from X to Y"? I am sorry for being so naive, but I have never studied information theory, and I am trying just to understand some concepts of that.
I was looking for ecologically-meaningful interactions in mixed-effects models of my meta-analysis when something nice (or at least I think!) came out. My meta-analysis looks at plant diversity (i.eSratio) loss or gain in natural ecosystems after fertilisation experiments around the globe. I wanted to see if mean annu...
When I first learned about Generalized Linear Models I thought that the assumption that the dependent variable follows some distribution from the exponential family was made to simplify calculations. However, I now read about Vector GLMs (VGLMs). VGLMs do not require the assumption that the dependent variable follows s...
The following question is from my book: If the mgf of $X$ is $M(t) = \dfrac {e^{5t} - e^{4t}}{t}, t \not = 0$, and $M(0)=1$, find (a) $E(X)$, (b) Var$(X)$, and (c) $P(4.2 < X \le 4.7)$ I that to find the mean and the variance I just compute $M'(0)$ and $M''(0)-[M'(0)]^2$. But I'm not sure how to do part c. Am I suppo...
This question is with reference to semantic segmentation. According to the paper Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture: we weight each pixel by αc = median freq/freq(c) where freq(c) is the number of pixels of class c divided by the total number of p...
I think I have a reasonable understanding of how neural networks and Q-learning work as separate concepts. But when combining the two to form deep Q-learning I struggle with understanding what exactly is used as a target when training the NN. As I understand it the neural network takes a state/action pair as input and ...
My textbook has the following problem: An airline claims that at most $6\%$ of all lost luggage is never found. A random sample of size $200$ is taken. Out of the $200$ observations (supposed to be independent) $23$ pieces of luggage were never found. Test whether the airline's claim is true at a $1\%$ signifi...
I'm currently learning linear regression with multiple variables using gradient descent (from a machine learning course on Coursera). My goal is to predict housing prices in a specific city. My model currently has an $R^2 = 0.83$, and it does an OK job at predicting prices. My question concerns the skewed form of the p...
I have question relating to how to interpret an Impulse response function in a system of 5 endogenous non-stationary variables (GDP, Investment, Uncertainty index, Interest rate and inflation rate) with two stationary exogenous variable which reflect world impact. All variables is in log except inflation and interest r...
I want to create a recommender system with factorisation recommander. We have scores on hashtags, ads have scores on hashtags, and we even have scores of subscriber on ads. We want to use this to recommend ads to subscriber. Scores of suscriber on hastags (but not all of them) : called df_p count hashtag_id sub...
Are there any cases that it is better to use Lasso for dimension reduction in comparison to other methods such as PCA/ Kernel PCA/ LLE and ISOMAP and SPECTRAL EMBEDDING? Can you add an example (most preferably in R) to show its benefits over the other methods?
I am currently working on a Data Mining project in an assembly line. A lot of parts are produced in this assembly line and each part gives me a curve (it's the energy use of the part over the process time -4s) My aim is it, to compare those curves and see if one of those curves is different to the other curves (anomaly...
I'm looking for a general method to detect outliers in one dimensional data. That is to say without setting any anomaly threshold. Below is an example of my data : Red points are far enough from the main group to be considered as outliers. There are not a lot of data. I'm not sure if I can use something like variance ...
I have two groups of biological samples from a population: data on parasitized fish and non-parasitized fish. I want to compare the values of some biological indexes between these groups but I need to control for size. Since my data does not fit the normal distribution, even after log transformation, I wonder if there ...
On https://cran.r-project.org/web/packages/cem/vignettes/cem.pdf, it mentions that "Using the output from cem, we can estimate SATT via the att function. The simplest approach requires a weighted difference in means (unless k2k was used, in which case no weights are required). For convenience, we compute this as a regr...
I have this r code using caret and glmnet, and it's intended to export a table with values. I've been asked to include odds ratio. The problem is I'm uncertain how to explain the odds ratio in this context. How would I state the interpretation of the odds ratio in plain english? This is what is printed: Im...
I was doing an exercise with these requirements: Derive the gradient with regard to the inputs of a softmax function when cross entropy loss is used for evaluation, i.e., find the gradients with respect to the softmax input vector θ, when the prediction is made by $\hat{y} = softmax(θ)$. Remember the cross entropy func...
I am working with some bird mortality data across 9 years of surveys and have run up against a problem estimating the standard deviation. Across the 9 years, survival estimates were .47,.60,.36,.58,.57,.50,.57,.46, and .40. Within each of the annual survival estimates, let's say there were 100 data points every year. w...
This post states the formula to calculate the noncentrality parameter of a test statistic that has a standard normal distribution under the null hypothesis. For a t-test under an equal variance assumption, the mean is given by: $\delta = \frac{\mu_1-\mu_2}{\sigma_{pooled}/\sqrt{n}}$ this is equivalent to $\delta = d *...
For long I have been a silent reader of your forum, but now I have to ask you for your expertise, as I haven't found an answer to my question yet. Short to my back story: My aim is to calculate the predicted probabilities that a country receives development aid from a donor with Stata14. The models under evaluation are...
I am fitting a linear mixed effect model to study the interaction of two independent variables, a covariate time and a factor m (levels "R" and "V"), on the outcome variable var. Data are grouped by the variable id, and I consider the intercept for each group as a random variable. In particular, I am interested in whet...
how can i intepret these results as both trace statistics and max eigen values inticate that there are no cointegration
Is it correct for me to presume that it would be bad modeling practice to construct a mixed model where a fixed effect "groups" ("is nested"?) perfectly within a random grouping variable? For example: Median income of a census tract would, of course, "group" perfectly within census tract. So, this would be bad practice...
I have survival data and large numbers of predictors. I am trying to use LASSO' orelastic net' in package `glmnet' in R to select appropriate covariates. I use following code: cv.glmnet(x, y, family="cox",alpha=0.5,nfolds=20, grouped=TRUE) # for Elastic net and cv.glmnet(x, y, family = "cox",alpha=1, nfolds=20, group...
From my book: Let $W$ denote the waiting time until the first occurrence during the observation of a Poisson process in which the mean number of occurrences in the unit interval is $\lambda$. ...Thus, when $w>0$, the pdf of $W$ is $$F'(w) = f(w) = \lambda e^{-\lambda w}$$ My question is, why does it say "when $w>0$ a...
I'm struggling to see how the distribution function of an order statistic is obtained. So far, from here, I understand that the distribution function $F_k$ of $X_{(k)}$ is given by: \begin{equation} \sum_{j=k}^n \binom{n}{j} \left[F(x)\right]^j \left[1 - F(x)\right]^{n - j} \end{equation} Now, I want to find the CDF of...
The number of Eigenvectors selected after a PCA transformation can be done in several ways. One such method is using the total amount of variance explained by each principal component. That is, select the top $n$ Eigenvectors such that the cumulative variance explained by them reaches a $p$ (e.g., 99%). This notion was...
We have a news feed, and we want to surface items to the user based on a number of criteria. Certain items will be surfaced because of factor A, another because of factor B, and yet another because of factor C. We can create individual heuristics for each factor, but we then need to combine these heuristics in such a w...
I'm building my first linear regression model with multiple features (predicting house prices in a specific city). After reading up on ways to improve my model, I see people talking about plotting the relationship between the target variable and the features. I then realized that one of my features, the construction ye...
I am analysing a longitudinal dataset of drug use in R code. Which contain the dependent variable: use measured twice which I want to regress on several independent variables, to see if they can predict changes in use over the two timepoints. The 3 time-invariant independent variables are age, sex and ´bias´, which i...
I'm reading an intro to statistics book where it shows how to calculate a confidence interval using a sample of size N, then taking the mean and standard deviation of that sample as point estimates to use in the calculation. What I'm wondering is, if instead of one sample you take multiple samples to create a sampling...
I personally hate R markdown file / python notebook, since they mix code and results all together (expose unnecessary details / show pre-mature progress in exploration stage). But I noticed there are lots of people use this as their Integrated development environment. What are the advantages of using it? Because the a...
I have a dataset (Dataset X) with error bars. I have two different models (Model A and Model B) which each try to fit the dataset. On visual inspection, it is very obvious that Model A fits Dataset X much better than Model B. I have also computed the root-mean square (R.M.S.) misfit between Model A and Dataset X (0.94...
Let $x$ have the probability density: $$f(x) = \frac{x^{\alpha - 1}(1-x)^{1 - \beta}}{\mathrm{B}(\alpha,\beta)}$$ where $\alpha,\beta$ are two positive parameters and $0 \le x \le 1$ is the domain of $x$. What is the expected value of $1/x$? That is, what is the value of: $$\langle1/x\rangle = \int_0^1 \frac{f(x)}{x} \...
I have a variable $v \sim N(0, 1)$ (i.e., mu=0, sigma=1). Every day I estimate $v$'s interquartile range (IQR). Instead of using the empirical IQR, I estimate $v$'s mu and sigma from 24 hourly observations, then I use the daily estimate of mu and sigma to estimate the daily IQR assuming a normal distribution. I know th...
I have the following linear model: Call: lm(formula = log10(wage) ~ age + occup + sex + edu + occup:sex) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.7026881 0.1056301 6.652 1.99e-10 *** age 0.0038949 0.0009635 4.042 7.17e-05 *** occup2 ...
The case for test data is clearly explained in many places, but I'm just thinking about training error here. I believe it's impossible in a decision tree, and possible (though unlikely) in a random forest, but have no clue about how to think for a Gradient Boosted Tree. Appropriate noise might be selected for a split, ...
The splines package in R is mostly focused on, what they call, a B-spline representation which is, by default, a cubic polynomial with no knots (unless you supply them). The actual numeric coding of the splines is described well in the package. Needless to say, it's a little sophisticated. Case in point: x <- 1:100 mat...
I have a data which looks like this: Tissue I p1 p2 p3 p4 p5 t1 20 10.90 0.07 40.57 76.71 12.73 t2 10 13.57 3.48 27.93 75.46 19.59 t3 13 1.05 0.04 16.18 8.92 7.56 The second column (I) is my dependent variable and p1 through p5 are my independent variables. I have a much bigge...