instruction stringlengths 9 38.7k |
|---|
I am trying to implement a solution to Ridge regression in Python using Stochastic gradient descent as the solver. My code for SGD is as follows:
def fit(self, X, Y):
# Convert to data frame in case X is numpy matrix
X = pd.DataFrame(X)
# Prepend a column of 1s to the data for the intercept
X.insert(0,... |
After using the bivariate model I got a pooled sensitivity and false positive rate. How do I calculate the likelihood ratios, specificity etc with confidence intervals from here on? Can it be done using MADA on R or do I need to use something else?
|
I need to carry out a comparison test for the measures of absorbance between 2 types of tank: glass tank and plastic tank. The technician in the laboratory took randomly 5 plastic tanks and 5 glass tanks for the measurement. The absorbance in each tank will be measured 6 times. So i will have in total 60 measures of 10... |
I would like to figure out which hyperparameters/network architectures work best on a specific binary dataset. To compare them, I do k-fold cross-validation, use different MLP or ConvNet architectures and tune hyperparameters for both. For each, I compute the ROC-curves and am supposing that the iterations with higher... |
Just as how Principal Component Analysis tries to "decorrelate" the signals,
is there a way, given a time series potentially with autocorrelation with unknown lag length,
to transform that time series without autocorrelation?
|
I am currently working on the LARS (Least Angle Regression) method.
I know it is a regression method, but I wonder if, like LASSO or Ridge techniques (e.g. the package gmlnet in R), it can be modified in order to achieve classification rather than regression.
|
Is it true that the LR statistic and the Wald statistic are numerically equivalent when testing a nested hypothesis in a linear regression when the error variance is known? Hence, is a squared t-statistic equal to the corresponding LR statistic?
|
I am working on a data set which has a 84 variables recorded for a number of individuals. True to "real" data sets, there are many missing variables, NaN values and previous values carried forward (when looking at longitudinal data).
I am trying to find a way to maximise the number of variables present for the largest ... |
I am struggling to form a regression model as I have to explain financial performance of a company.
The problem is that I have a variable like Return on assets $\frac{ebit}{total assets}$ as a dependent variable and I would like to control for total assets. I understand that if I include "total assets" as Independent ... |
BIC has a log(N=114) = 2.05 penalty. So, why do i get this result???
Package name: lmridge
|
I'm writing my dissertation right now and in it I've used a regression model. With one independent variable and 4 dummy variables.
Y = b_0 + b_1STAR1 + b_2STAR2 + b_3STAR3 + b_3STAR4 + b_3 STAR5 + e
Were the beta parameters are OLS estimators and STARi are the dummy variables i.e( value 0 or 1).
Now i know what the 5... |
I am going through the YOLO paper by Redmon, Divvala, Girshick & Farhadi (2015),
"You Only Look Once: Unified, Real-Time Object Detection" (arXiV page here )
On the fourth page it mentions the loss function. It's a combined regression loss function.
What I don't understand in how to get the classification error or to... |
I want to understand and extract a codeable back propagation algorithm. I'm mostly pure ignorant coder and my math skills are very weak. And that what I want to go further with is an extendable abstraction for back propagation algorithm and as deep as possible understanding of it's internals.
Most of tutorials start f... |
Question:
A leading optometrist claims that $40\%$ of people wear contact lenses. You decide
to test the claim by surveying a sample of 12 students.
How many students in your sample would need to reply that they wear contact
lenses for there to be significant evidence at the $5\%$ level that the true
percentage is les... |
So for the last week or so I've tried to implement a Feed Forward network with multiple types of layers (Fully Connected, MaxPool, Convolution), multiple types of non-linear functions (tanh, sigmoid, relu), using the gradient descent optimizer and 2 errors types (sum of squared errors and logistic error). It should be ... |
I have run a multiple non-parametric regression using the gam function, my output is below. My question is - what can I conclude from the estimated degrees of freedom of USGDP compared to Rr (Rr is the Dollar price in South African Rands) as they relate to estimating Manufacturing?
model.np = gam(Manufacturing ~ s(Rr) ... |
I'm trying to do a comparative analysis using synthetic control to compare a country that went from a dictatorship to democracy to it's dictatorial synthetic twin.
As I understand it, synthetic control has been used for some of this issues, but only when the dictatorship began. Is it appropriate to build the synthetic ... |
First of all, I would like to give you a brief introduction of mine. I am a student of MS in Management Sciences with major in Supply Chain Management.
For my thesis, I have selected topic "Demand Forecasting Of Pharmaceutical Industry".I am using R package for demand forecasting and used arima model for forecasting. I... |
I'm trying to use LIME to locally explain black-box models predictions. It works by generating 5000 neighbors for an instance by perturbing the features. Then it does forward-selection by iteratively fitting a simple Ridge model over that local neighborhood, where the label is the black-box model prediction. After
n i... |
From what I understand, maximum likelihood is used to estimate a parameter alpha in a way that maximizes the probability P(Y=|x,alpha) for example. It is used for logistic regression in order to get better estimation. I'm using weka and I read that, without the user making an explicit choice, the maximum likelihood al... |
I am a graduate student reading classic papers on methodologies. The following is captured at the top of page 6 of the original paper for the t-SNE method (link).
My question is what does the label $l$ stands for? i.e. what are $x_l$ and $y_l$?
|
I have a set of data (specifics not important) where the outcome is a count, a set of predictor variables (categorical and continuous), a offset variable and a two level hierarchical structure. I first used Poisson regression to model the outcome, using a random intercept which fits the natural structure of the data.
... |
Some time ago I read a term (or compact expression) used to encompass all the different classification algorithms that do not consider the ordering or spatial relation of features (eg SVMs, Multilayer Perceptrons, Logistic Regression, Naive Bayes ...). Unfortunately, I can not remember the expression. Can you help with... |
I am studying a data set with one continuous response variable and 4 continuous predictor variables. The two predictors most correlated with the response also have a high (but not perfect) correlation with each other. A more parsimonious model might rely on 3 predictors, but I don't want to drop any of the variables. ... |
Coefficients and significance of lasso/ridge
I had 628 predictors after forming dummy of all categorical variables. When I ran lot many iterations traditional logistic regression iteration, I came across 15 variables that was giving me pretty good model with good ROC, recall & precision(for certain cut-off) values on t... |
For our foray into geostatistics we got data that consists of measurements taken from the soil. The dataset has like concentrations of various different minerals.
We were divided into a number of groups that try to explore different types and methods of interpolation. We got saddled with kriging, more specifically som... |
Trying to wrap my head around the impact of variables with different distributions on Random Forests versus Stochastic Gradient Boosting. Specifically:
-How would variables with long tails impact trees in random forests versus stochastic gradient boosting, and what might that mean for results?
-How would variables with... |
Reading this answer about p-values https://stats.stackexchange.com/a/130772/137921
"Likelihood ratios" are referred to, but there's no definition of what this is there and searching for these gives lots of results relating to medicine and such, but I can't seem to find a clear plain english explanation of what is meant... |
Every autumn, about 3-7 animals were located and tracked with GPS, and responses $y$ were assembled.
This happened 5 years in a row.
Plotting, I can see some obvious differences between these 5 groups. However, they belong to the very same population of animals.
So, do I model this as a random effect? Or a fixed effec... |
I have a data set where the outcome is binary, and is fit as a function of two categorical variables (3-level location and 2-level status) and their interaction. I am interested in two things:
whether there is an interaction effect between location and status, and
whether the outcome differs across the 3 locations wit... |
A committee consists of five Mexicans, two Asians, three African Americans, and two Caucasians. A subcommittee of 4* is chosen at random. What is the probability that all the ethnic groups are represented on the subcommittee?
Note: original posting said 5 but I meant 4. Also, I know, the race thing is weird, but it w... |
I have been using model averaging and model selection bases on AIC and BIC for a while. I have recently discover the stepwise regression technique and I found a lots of people critize this methods.
Why stepwise regression is to avoid ? Is it just only because you may not capture interaction between variable and theref... |
Let's say I have two variables $A$ and $B$ and I want to write the probability that $A=2$ conditional on $B=1$, which of the two ways would be correct:
$$P(A=2 | B=1) $$
or
$$ P(A=2 \cap B=1) $$
|
I apologize for the vague title, but it's quite hard for to me see how I can succinctly explain what I need.
So, for example there is a sentence that was coded 10 times by 10 different coders. That is, one sentence is 10 different observations. The scale is ordinal from 1 to 5. Now, I have 100 sentences (100 * 10 = 100... |
What sort of tests are available in SAS that allow you to figure out what the probability of an event occurring is? And I do mean probability, not odds.
Specifically, I would like to know what is the probability a person might say yes vs. no to a particular type of surgery based on their age, insurance status, or other... |
I have a forecasting problem and already built a decently working VAR model which provides forecasts as $\hat{Y}_{iT}$, for $i = 1,..n$ and $T$ is forecast time period.
But now I have an additional constraint that the sum of my forecasts should add up to constant,i.e, $\sum_{i=1}^n{\hat{Y}_{iT}} = c$
One easy way to e... |
I'm running a logistic regression for an alumni population to indicate what factors relate to odds of giving. For gender I have a variable that I coded (1,0) so it's binary. If I want to include degrees (i.e. BA, BS, MBA, and PHD) do I create 4 binary variables so that if someone has a BA then they would have 1 in the... |
Take two random variable $X,Y$ and suppose $X$ is distributed uniformly on $[0,1]$ conditional on $Y$. Does this imply that $X$ is independent of $Y$? Could you make an example?
|
I'm a student that is new to this field, I've played with the GUI version of Weka and made Neural Nets in that with premade datasets but now is the first time I've implemented one using Keras (Theano Backend) in Python. What I'm trying to do is create a model that will find a correlation between Tweet sentiment and Sto... |
Consider the real-valued random variables $\{X_{ij}\}_{\forall (i,j)\in \mathbb{N}^2, i<j}$ and the real-valued random variables $(\xi_0, \{\xi_i\}_{\forall i \in \mathbb{N}})$, where $\mathbb{N}$ is the set of natural numbers without zero.
In what follows $Be$ denotes "Bernoulli distribution".
Suppose that, $\forall ... |
I have a scatter of points (longitude, latitude). There is a lot of spread obviously, but also a certain degree of congestion. Any idea how I can estimate something like a 95 % region where I expect the points to lie?
Just looking for reading material here. The word "kernel" is being thrown around on the internet,... |
I'm analyzing a data set in R and I would like to have some advice on how to build my analysis to get the proper answer to my question.
I want to know if the animals stayed longer in an area, outside the area or if there's no significant difference. I also have data on the sex and size of each animal, and I want to kno... |
All the random variables in what follows are defined on the same probability space $(S, \mathcal{A}, P)$.
Let $W, Z, Q$ be Borel measurable random variables on $[0,1]$.
Assume
(*) $X|W, Z, Q \sim Be(t(W, Z, Q))$, where $Be$ denotes Bernoulli distribution, and $t:[0,1]^3\rightarrow [0,1]$ is a Borel measurable functi... |
Consider the random variables $X,Y,Z$.
Assume
$$
X\perp Z
$$
$$
Y\perp Z
$$
$$
X\perp Y
$$
Can we say
$$
(X,Y)\perp Z
$$
My intuition is that we can't because
$$
p_{X,Y}=p_X\times p_Y=p_{X|Z} \times p_{Y|Z} \neq p_{X,Y|Z}
$$
Could you provide also some example?
Viceversa, suppose for some random variables $Q,A,B$ we ... |
I am quite confused about a question that came up in my exam.
Question: The travel times on two alternative routes through a network are recorded on 20 working days during a month. The results of this are given in Table 4.
Perform an appropriate hypothesis test to investigate the difference between the mean travel time... |
What methods are appropriate to identify groups of similar variables in a time series? For example, in the following dummy dataset, I'd like to identify (a,b,c) and (d,e) as clusters of similar variables.
library(reshape)
library(ggplot2)
a <- c(1,2,3,2,1)
b <- jitter(a, 2)
c <- jitter(a, 2)
d <- c(5,4,3.5,4,5)
e <- j... |
First off, I would like to mention that I am by no means a statistician/mathematician, so I hope this question makes sense (my formal background is in physics).
I was wondering about optimal parametrization in nonlinear least squares fitting (as the question title gives away). Basically, if I start with a nonlinear mod... |
I have just learned GARCH model. One condition distribution of it is "sstd". One question of my coursework is to justify if the conditional distribution is skewed. I have seen another example sheet and it says the skew parameter must equal to one if the distribution is symmetric. I don't know why it is equal to 1 and I... |
The Back-Propagation Algorithm as described in this guide/introduction is confusing, the final formula generated for del(w)(change in weights) is
del(wji) - Change in weights of synapse from j to i;
eta (n) - learning factor;
Oj - Output of previous layer j;
dj - Desired output from previous layer j;
xi - Input
I h... |
I have my data like this. 100 patients are asked 3 sets of questions every year (for 5 years) and they were given a score for each sets of question. So I have data like this
id year s1 s2 s3
1 1 60 30 50
1 2 65 30 45
1 3 40 25 50
1 4 34 20 40
1 5 32 23 45
2 1 32 43 32
...
I want to fit a mixed... |
Let $X$ and $Y$ be 2 continuous random variables.
Then, the conditional PDF of $X$ given $Y$ is
$f(x | y) = \frac{f(x, y)}{f(y)}$.
1) What is the definition of the conditional CDF of $X$ given $Y$?
2) How do I differentiate the conditional CDF so that I get the conditional PDF? I think that I should differentiate with... |
I have a model that is roughly: $y \approx \beta_0 + \beta_1^x$.
I'm trying to figure out if there is a transformation I can do on either y or x to make it linear.
The only thing I can think of is making $x' = ln(\beta_1^x)$ -- but that's not a transformation on x solely... eg (if I don't know $\beta_1$ ahead of time... |
Is there an easy algorithm for generating a random distribution within a range but skewed toward the ends?
I guess I am looking for some random distribution $x$ that is parameterized with some parameter $p \in [0,1]$ that might have the following properties, or at least something close to it:
$-1 \leq x \leq 1$ (I can... |
I am attempting to test the correlation between two variables:
Predictor: Count data (not ranked)
Response: Continuous
Because my predictor variable is not continuous, I cannot use Pearson's, correct?
However, because it is also not rank data, I cannot use Spearman's, yes?
What test for correlation would you guys sugge... |
My data set tracks a bunch of animals throughout a period of a couple of months.
But, it's a messy data set. It's not like I have responses from week 1, week 2, week 3, week 4, and so on.
Instead, I have responses from random dates. Some animals have a response every day during these months.
Others, have a response her... |
I'm afraid my awareness of the Rao–Blackwell theorem has been limited to textbook accounts and exercises, and those deal only with its application to unbiased estimators. Maybe it's properly called the Rao–Blackwell theorem only when it's a statement about unbiased estimators. (?)
Is there anything of interest to be sa... |
I am trying to wrap my mind around the variance definition.
Given a set of values S and n = #(S), the variance is defined as:
$$
\operatorname{var}(S) = \frac{\sum_{i=1}^n( S_i - \operatorname{mean}(S) )^2} n
$$
And the square root of that (standard deviation) measures how far away the values are on average from the me... |
I'm new to the concept of utility and I'm struggling to understand an important idea. Say we have some bet. I don't understand how the utility of the expected value of the bet differs from the expected value of the utility of the bet. In my mind, both correspond to what I would expect to get out of the bet on average, ... |
I'm training a simple neural network using keras with the tensorflow backend. As I don't know much about what I'm doing, I'm exploring things a little bit to try to get the hang of it and to try to figure out what is going on. My model is a GRU based RNN. I'm training it on multi-variate time-series data (4 input ti... |
So I have a set of Tweets with a few columns such as Date and the Tweet itself and a few more but I want to use 2 columns to build my model(Sentiment & Stock Price) Sentiment analysis is performed on each tweet, and a stock price next to them like so in my DB:
+--------------------+-------------+
| sentiment |... |
In trying to get some sort of intuition into what goes on inside an LSTM, there is a step that has the potential to make things fall in place nicely.
Here is a diagram from this tutorial illustrating the step in question with nomenclature notes added (feel free to correct mistakes):
I understand $[h_{t-1}, x_t]$ as t... |
I'm reading a book called soccernomics. There is data for Home/Away wins in case a penalty is awarded or not awarded in football (soccer) games. Data is as follows:
| Result | Pen. Not Awarded | Pen. awarded | Total |
|---------- |----------------- |------------- |------- |
| Home Win | 557 ... |
For the pdf $$f(x\mid\theta)=e^{-(x-\theta)}\exp(-e^{-(x-\theta)})\,,\qquad-\infty<x<\infty,-\infty<\theta<\infty$$, let $X_1,\cdots,X_n$ be i.i.d observations. How to find the sufficient statistic and show the complete statistic does not exit?
The answer of it is that the order statistics are minimal sufficient statis... |
I am training a residual data with negative values through ANN. So I partition my data with 20 values for testing. But what I get in my MAPE is a negative value. Here is my data:
ACTUAL PREDICT ABS ERROR MAE
0.75580171 -0.007975448 0.763777158 1.010552303
-0.514778164 0.032106205 ... |
In order to help myself understand neural networks better, I'm attempting to write the code for a multilayered neural network in Python.
I've written the code for predicting the output, given a set of inputs; however, I'm a bit unsure about how to write the code to do the training.
I know that I need to use the inputs ... |
In Casella-Berger Statistical Inference page 234 Example 5.5.8, they define a sequence of uniform random variables $X_1, X_2, \cdots, X_n, \cdots$ such that $X_i \sim U(0,1)$ and $s \in [0,1]$ and :
$X_1(s) = s + I_{[0,1]}(s)$, $X_2(s) = s + I_{[0,\frac{1}{2}]}(s)$, $X_3(s) = s + I_{[\frac{1}{2},1]}(s)$
$X_4(s) = s +... |
I've been doing machine learning. I have done lots of learning related to data analysis and ML algorithms, and I've got very good results and I understand the algorithms. However, my approaches are normally getting datasets, writing scripts or notebooks to play around with the data to try to build a relatively accurate... |
I am training a convolutional neural network on colored images and am trying to understand how and when the parameters of the neural network get updated.
Suppose I have 1000 images. While creating the network, libraries like Keras take the dimensions of one image as the input layer dimensions (suppose 28 x 28 x 3) here... |
I have users rate recommendations on a scale of 1 - 5. The recommendations come from 2 different algorithms A and B. Let's say that A has got 300 ratings whereas B has got 160. Their means are pretty close. I want to check if they are statistically different. I know I can use the Students T test to test this, but it a... |
I have gene expression data from cells grown in a dish over time - 5 time points, from 2 conditions: control and treatment.
Originally, I was interested in fitting a regression with treatment x time interaction. However, performing a PCA on the control data shows that the first PC explains 97% of the variance. I imagin... |
I was trying to understand why the nonnegative least squares (NNLS) algorithm of Lawson & Hanson converges to a solution of
$$
\min f_{0}(x) = \| Cx - d \|^{2}, \\
\text{s.t.} \ x \geq 0.
$$
Pseudocode can be found here: https://en.wikipedia.org/wiki/Non-negative_least_squares or in the references below.
Useful refere... |
My dataset consists of ~800 observations. This is the distribution of my response variable:
I'd like to model the response with a generalised linear mixed model with 1 random effect and 8 fixed effects. I've tried different families and links but in any case when I compare observed vs. fitted values I can see that the... |
How do you deal with missing values when scoring a model? Can I use multiple imputation when building the model?
|
I have a set of traces (1D array), and i need to align them, the problem is that, using generic methods ( cross-correlation, dynamic time wrap), would be very slow to align 1 million trace, each with 10 million point,so one of the usual ways of doing that is to use synchronization methods on periodic bases, (once every... |
I tried googling, but no luck in finding it.
Who was the one to pioneer these ideas? Also, I'm trying to find when Gauss first started doing some real pioneering work on normal distributions.
|
I have a binary variable (sold/not sold) and I have used the CART algorithm in R (rpart) to build a classification tree to predict if this product is getting sold or not.
Now I would like to add a probability to this. How can I do this?
Can I just take the same Test/Trainingsdata from before and just build a regression... |
I've got a gamma likelihood $\Gamma(\tau_c | \alpha_k, \frac{\alpha_k} {\tau_k})$ (parameterized with shape and rate)
with an InverseGamma prior $IG(\tau_k|a_0, b_0)$.
I know that the resulting posterior $P(\tau_k|\tau_c, \alpha_k, a_0, b_0)$ should have an InverseGamma ($IG(\tau|\alpha, \beta)$) form but I cannot mana... |
I am getting confusing results from the below model when backtesting.
The code splits the dataset into a training and a testing set (70/30) and as far as I can tell keeps the data separated so that the results found in t are in fact representative.
However, when testing the model against a real life progression of the ... |
I would like to know if it is possible to express the density $f_Z(z)$ of a function $Z = g(X,Y)$ of two continuous "nice" random variables $X$ and $Y$ only using the joint density $f_{XY}(x,y)$ and the gradient $\bigtriangledown g(x,y)$ asuming that the function $g(x,y)$ is "nice" (I mean, I don't care about complicat... |
As part of my M Tech Thesis, I have to find the correlation between the Rank in Engineering Entrance Test and performance in 1st Year Engineering in terms of GPA i.e. Gross Performance Average. Can someone explain how this can be done ...
|
I have a dataset with a single continuous response variable, z, dependent on two categorical variables: x and y. x and y are applied individually, and together, and I interested in both the individual effects and any interaction effects.
I am hitting collinearity in my predictor variables, but I can't see it -see below... |
I have a data set where I try to analyse a continuous variable according to 10 categorical variables and I would like to perform a ANOVA analysis. How should I proceed ? I'm able to interpret the results but I have no clue how to operate :
An anova with all the variables at once : summary(aov(Cont ~ . , df))
An anova... |
There are a number of sources that mention that the reference prior is equivalent to Jeffreys prior for $d = 1$ (see e.g. https://people.eecs.berkeley.edu/~jordan/courses/260-spring10/lectures/lecture7.pdf).
However, I found no proof in these sources. So, the question is how to prove this statement. It seems to be som... |
I have the following example, where I fit a spline to a simple data set using the mgcv-package in R and plot it afterwards:
dev.off()
dfOne <- data.frame(1*(1:20),
c(1,6,2,8,7,4,9,8,5,4, c(1,6,2,8,7,4,3,8,5,4)/2),
3*(1:20))
colnames(dfOne)<-c("one", "two", "three")
fml <- as.... |
I am testing two predictive models,
Each of them in 10 experiments.
I therefore have 10 ROC curves (with AUC) for first experiment and 10 ROC curves for second experiment.
How to compare these series and see if difference between them is statistically significant ?
How to get confidence intervals / P value ?
|
Suppose we are to study a non-homogeneous Poisson process of 3 hour cycles in which:
At the first hour, the arrival rate is 1.5 events / hr.
At the second hour, the arrival rate is 2.1 events / hr.
At the third hour, the arrival rate is 3.4 events / hr.
I would like to generate the time points (not inter-arrival time... |
I understand k fold cross validation has been discussed many times here and I read some of them. I understand how k Fold works, but what confuses me is the following:
Cross validation in my understanding is used for model validation, which validates an existing model. For example, a model builds on full dataset. But wh... |
I have a multiclass classification problem with more than 1,000 classes. I've trained several classifiers (SVM, kNN, Random forests, etc) for 10, 100, 500 and 1000 of the classes to estimate the tendency of classifier's accuracy as the number of classes increases.
I have around 100 samples per each class and do 10-fold... |
I have an experiment where I have several subjects that I am analyzing a response for (call this RESPONSE). I am interested in the overall effect of temperature on RESPONSE. RESPONSE is measured once daily for each subject over the course of several weeks. Each subject also belongs to one of two levels of a factor (cal... |
I have an optimisation problem, in which I use a $\chi^2$ test statistic between model and data to define a goodness of fit. The numerical optimum of this is (with technical tricks) easily found, but I also want to derive statistically well-motivated variations from the best-fit configuration in order to e.g. cover 68%... |
I have a very interesting topic to investigate but face problems on econometric identification strategy. I need no fancy estimations but just a way to deal with the issue.
For a snacks producer I have data on quantity, prices and revenue (q*p) by 6 different retail chains. In the data are a portfolio of existing produ... |
I have performed a multiple linear regression with R and there is heteroscedasticity in the data
https://drive.google.com/file/d/0B_Crh5XPwxTeWWRyWDFCU0FMbXM/view
Even if I log transform the dependent variable:
https://drive.google.com/file/d/0B_Crh5XPwxTeQWVXcFRMaVh4SjQ/view
Is it possible to just apply MARS as a non... |
I am a master student doing an intersnship on homeranges of domestic cats.
Our data has somes individuals in 3 locations and we have a few females and males every time. For each individuals, we have sometime 1, sometime 2, sometime 3 and sometime the whole 4 seasons but it depends. It seems that my data is paired and n... |
I have the following set of qualitative data:
______________________________________________
| Observations | City | Transportation mean |
|______________|_________|_____________________|
| Individual#1 | Paris | Bicycle |
|--------------|---------|---------------------|
| Individual#2 | London | Car... |
I am following the paper on xgboost and got stuck at equation 6 ($3^{rd}$ page), where the authors say that for a given tree, "we can compute the optimal weight $w_j^*$ of leaf $j$ by"
\begin{split}w_j^\ast = -\frac{G_j}{H_j+\lambda}\end{split}
Here, $G_j$ and $H_j$ are the first and second derivatives of a loss functi... |
I am trying to fit a beta regression model using GAMLSS.
The data:
For each $y$, we have an indication of what patient $p$ it is, an indication of what month $m$ the observation took place, and at what location $l_1, l_2$ (longitude and latitude) the observation took place. We then further have covariates such as sex.
... |
I performed a therapeutic study with mice. Mice were divided into 5 group. The dependent variable of my study is tumor volume which is I measured every 2 days. The result is this.
After that, I performed multiple linear regression using variable group (e.g. control, Ab only, etc.) and day.
Call:
lm(formula = Volume ~ ... |
I want to compare the grades of two cohorts A and B (of unequal size). I have the grades for a certain course 1. The grades are not normally distributed. I used the following code (in R) to compare:
wilcox.test(gradesA, gradesB, paired=FALSE, conf.int=TRUE)
However, I am not sure whether cohort A was better overall th... |
I would like to know how can I be able to interpret the results from fitting splines with the scam package.
My data points are taken from the chileancredit dataset available in the package smbinning.
Here are my x and y data points:
library("scam")
library("zoo")
data(chileancredit, package = "smbinning")
chilean_clea... |
$A^TA$ need not be invertible. If columns of a matrix A are linearly independent, then $A^TA$ is invertible.
Let's say $A^TA$ isn't invertible:
Gauss-Markov seems to hinge on $A^TA$ being invertible.
Suppose that A is $mxn$ real matrix.
If $m<n$, then the inverse of $A^TA$ does not exist.
But you can minimize the sum o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.