instruction stringlengths 9 38.7k |
|---|
I have a problem with computing the ridge regression estimator with R.
In order to calculate the regression estimator of a data set, I created three samples of size 10.
V = c(4, 3, 10, 1, 7, 10, 2, 6, 1, 4)
W = c(16, 11, 16, 13, 12, 20, 11, 20, 16, 20)
Y = c(26, 28, 27, 29, 24, 26, 22, 23, 28, 23)
Now, one can easily... |
Why I am getting different predictions for manual polynomial expansion and using the R poly function?
set.seed(0)
x <- rnorm(10)
y <- runif(10)
plot(x,y,ylim=c(-0.5,1.5))
grid()
# xp is a grid variable for ploting
xp <- seq(-3,3,by=0.01)
x_exp <- data.frame(f1=x,f2=x^2)
fit <- lm(y~.-1,data=x_exp)
xp_exp <- data.frame... |
Suppose I have $y = \beta_1x_1 + \beta_2x_2$, where $x_1$ is endogenous but $x_2$ is not. I have a relatively weak exogenous instrument for $x_1$ (call this $z$).
If I use instrumental variables, the standard error for $\beta_1$ will be large relative to the OLS estimator (the well known weak instrument problem). What... |
I'm trying to use SVM to predict whether the price of a security will go up in the next 7 days using a prediction of the last 14 days of data. So far, I have extracted a dataset with 15 features and around 3000 samples (dates). However, I'm a little confused on how I should split my data for the x training set and y tr... |
I have two different p-values here, do I use the Pr( t ) or the regular p-value?
Call:
lm(formula = ddd ~ CON, data = data)
Residuals:
Min 1Q Median 3Q Max
-0.5726 -0.4859 -0.4570 0.5141 0.5430
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.60144 0.09117 ... |
Consider this scenario, if I have a predictor, gender, and another predictor, age, and I know that age only matters when the subject is a Male and age makes no difference when the gender is Female, should I use a tree model in place of logistic models?
If I use a logistic model, would the correlation between age and g... |
I would like to understand how Prism does its data normalization to Percentage „magic”. Here is the user guid to do it:
http://www.graphpad.com/guides/prism/7/user-guide/index.htm?using_normalizing_data.htm
I understand what it does with the average values.
But I’m interested in what it does with the SD and SEM values.... |
The rule of thumb on choosing the best k for a k-means clustering suggests choosing $k$
$$
k \sim \sqrt{n/2}
$$
$n$ being the number of points to cluster. I'd like to know where this comes from and what's the (heuristic) justification. I cannot find good sources around.
The only references I can find about this are a ... |
I'm reading a textbook and I see this question:
So there are 200 women, and the DF is 196, implying that the equation for DF is $n - k - 1$. There are 3 variables: bp, age, and type so $k == 3$.
What's the intuition behind this?
Also, why is the degrees of freedom for linear regression n - 2?
|
I have a few gaps in my understanding:
I know that PCA does dimensionality reduction. It does so by finding transformations such that the projection of the data points onto certain lines minimize the error of such projection (the Frobenius norm). PCA finds these lines, and these lines are linear combinations of existin... |
I found GANs very very powerfull and start reading the papres around it.
This is the algoritm used in The original paper to describe the steps of updating Descriminator and Generative parts of the network.
I underestand that the log(1-D(G(z))) must be minimized but why should we maximise the log(D(xi))+log(1-D(G(z)))?... |
I want to optimize KNN.
There is a lot about SVM, RF and XGboost; but very few for KNN.
As far as I know the number of neighbors is one parameter to tune.
But what other parameters to test? Is there any good article?
Thank you
|
In the context of a discussion of consistency of an estimator $\hat{\theta}_n$ (where n is the sample size), what is the meaning of its pdf? Is it the same as its likelihood function?
|
I am reading a paper on Chimeric Alternatives which introduces what it calls contiguous alternatives. Namely, we have a sequence of random variables $[X_i]_1^n$ which follow some distribution $f$ under the null hypothesis, and we wish to test this against a "class of contiguous alternatives" where the distribution of e... |
I have been trying to compare rankings between 2 lists. The list components are random effects from a mixed model, so they are shrunken towards zero and mean-centered as well.
R's base function:
cor(x,y,method = "spearman")
relies on another base function, rank(), which appears to first convert everything to an inte... |
Is anyone here familiar with Hansen & Lunde's Model Confidence set? If yes, can you briefly explain how it is linked with loss functions? I basically have to calculate Quasi Likelihood loss functions for different volatility forecasting models (QLK basically compares each forecast with a volatility proxy) however, I ca... |
I have a residuals plot that looks like this:
The question I have is this:
Why is that answer correct? Reading the scatterplot, how do I know it's right skewed? It looks like there are more extreme residuals to the negative... so it's left skewed right? Is that's what's false?
Is a scatterplot of the residuals like t... |
Here is the structure of my data set: group A and B rated 256 items (each group used a different dependent measure) and I found a significant correlation between their ratings.
Now I want to do a cross-validation on this data set but am not sure whether I should set aside some items (e.g., 30%) or some participants fr... |
Let's say $X \sim D$, ie. $X$ is a random variable following some distribution $D$.
Then the first moment of $X$ is defined as $E[X] = \int x\hspace{1mm}f(x)\hspace{2mm}dx$
And the first moment of $X$ is defined as $E[X^2] = \int x^2\hspace{1mm}f(x)\hspace{2mm}dx$
Looking at this, I'm interpreting the notation as "ther... |
Context: I want to run a MFA on a data-table where one group of variables only is active, the others being supplementary.
Example: I indeed want to study if the spread of observations can be explained by their belonging to one or the other supplementary group. (Say that I want to study if the physiological and the nati... |
Suppose that we are interested in non-linear regression where we have the pairs $(X_i, Z_i)_{i=1}^n$ observed and consider the regression of $Z$ on $X$:
$$
\forall i \in \{1, \ldots, n\} \ \ Z_i = f_{\theta}(X_i) + \epsilon_i
$$
for generic functions $f_\theta, \theta \in \mathcal{H}$, where $\mathcal{H}$ is the parame... |
I'm following Google's deep learning course on Udacity. Assignment 2 is to turn a logistic regression network into a 1-hidden layer neural network with rectified linear units and 1024 hidden nodes using Tensorflow.
To do this I've change this:
logits = tf.matmul(tf_train_dataset, weights) + biases
into this:
logits = ... |
I was asked today if there was a master list of machine learning algorithms broken down by type. I searched for one, but didn't find a good list. I was going to write one for my friend, but decided I would ask here first if someone has a good reference for a list like this. I didn't just want to direct him to Andrew Ng... |
The usual conditions for a Markov chain to have a limiting distribution includes aperiodicity https://en.wikipedia.org/wiki/Markov_chain#Periodicity
However, in some contexts it would be convenient to generalise the concept of limiting distribution to also apply to periodic Markov chain. The generalised limiting distri... |
I'm build a model where I need to account for seasonality, but the variable nature of Easter in particular is problematic.
I have about 7 years of sales data (at a weekly level), for 400 stores.
I'm not sure which approach would be best. ARIMA seems like a good option for accounting for Seasonality, but I'm struggling... |
Today I started reading about Helmholtz machines. So far they seem very similar to - though clearly not the same as - Boltzmann machines, and I feel that my learning process would be much easier if I clearly understood what the key differences were. I come from a statistical physics background and understand Boltzmann ... |
I am new to EM algorithm and copula. I was reading a paper in mixture pair-copula. The authors use $u=(u_r, u_s) = (u_r^t,u_s^t), (t= 1,...,T)$ to indictae to the vector of copula data. Then, they identify the E-step to be the colculation of the conditional of $Z_{it}$ (it is the indicator variable that define from whe... |
Suppose that we have a mixture model:
$$
p_\theta(y) = \sum_{k = 1}^{K}w_k \phi(y;\mu_k, \sigma^2_k)
$$
where $\phi(y;\mu_k, \sigma^2_k)$ is the normal density at $y$ with mean $\mu$ and variance $\sigma^2$. $\theta$ contains the weights, means, and variances.
In this case and in more general cases aside from the Norma... |
Suppose $Y_1,Y_2,\ldots,Y_5$ is a random sample of distribution with Probability function $$\mathbb{P}(Y=y)=\frac{1}{3} , \quad y=1,3,5.$$
How can I calculate $\mathbb{P}\left(\sum\limits_{i=1}^5\left[\dfrac{Y_i}{3}\right]=3\right)$?
Here $[y]$ denotes the greatest integer less than or equal to $y$.
|
I'm a beginner with neural networks. I get that the error should be low. But what does that number really mean?
I created a simple neural network which has a error of 1.5. Is that too high? What are the consequences?
|
Has there been any systematic research on the opinion polls in which each voter can see the accumulated result up to the time of his/her vote? Many online polls show the live result, and new voters may be influenced from the result. I'm curious about the effect of the influence.
|
We are counting the numbers of cells (oligodendrocytes) that develop in mutant mice versus littermate controls, and wish to know if the numbers are different. Typically we can get 2 mutants and 2 controls in each litter (of ~8 pups; mutants are compound). The ratio mutant/control within each litter is consistently ~0... |
How to interpret the R2 in univariate regression analysis ?
|
I have data with about 1250 rows and 97 features. Using random forest for classification in caret R package, I've trained a model and now, I want to plot the learning curve using the learning_curve_dat funtion:
learning_curve <- learning_curve_dat(data, "obs",
c(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9,... |
I'm a beginner at machine learning and have a question regarding time series.
I have a data set dependent over time, with a single feature and I am trying to predict the future value of this. This far I have used what I think is a sliding window. I model my data as:
W Value
1 10
2 40
3 60
4 80
5 110
gives
W-2 W-1 W
10... |
I am examining a time series which clearly has two "regimes" (by visual inspection), separated by what appears to be a structural break. I'm trying to get as much information as possible out of the series without relying on parametric models. Is there a way to test for this structural break without having to fit a time... |
I think this question would be easy for some of you but I'm struggling to find an answer. I've looked across so many threads that I now feel info-drunk, as nothing quite helps enough.
Basically, I'm trying to run a simulation of, say, 10,000 trials for three financial series. As much for context as anything else, if al... |
I would like to do a HSD.test. I have found an example of this and this example is working fine. This is the example:
library(agricolae)
data(sweetpotato)
model<-aov(yield~virus, data=sweetpotato)
out <- HSD.test(model,"virus", group=TRUE,console=TRUE,
main="Yield of sweetpotato\nDealt with different virus"... |
Can weights decay in neural network be negative?I know that usually it takes a value slightly less than 1.
|
The data: Each year, during the months from January to July, a select number of plants had a certain "thing" measured. Each month, this was done almost every day for some plants, and maybe weekly or so, for other plants. This was done for 5 years, and for each year, a new selection of plants were measured (since the on... |
hope you can help me out, I've searched through earlier answers but still haven't been able to solve my problem. This is for an assignment.
I need to find
$
P(A|C,~B)
$
I know that:
$
P(A|C,~B)=\frac{P(C|A,~B)P(A|B)}{P(C|B)}
$
I've calculated from the information provided
$
P(B)
$
,
$
P(not~B)
$
,
$
P(A)
$
,
$
P(B|A)... |
I am trying to implement the Fisher Scoring Algorithm for feature selection. From "Data Classification: Algorithms and Applications":
On Page 44:
The score of the i-th feature $S_i$ will be calculated by Fisher Score,
$\ S_i = \frac{\sum n_j(\mu_{ij}-\mu_i)^2}{\sum n_j * \rho_{ij}^2} $ where $\mu_{ij}$ and $\rho_{ij... |
Hello I hope someone can give me some valuable insight.
Prior to my analysis/regression, I checked the average market shares over a six year time period over different (countries) regions.
Region A: highest share
Region B: 2nd highest share
Region C: 3rd highest share
Region D: 4th highest share
Region E: 5th highest ... |
I am running a fixed effects regression with multiple IVs. One of the IVs has a negative coefficient (which is what I expect from theory) and is significant.
The Stata code would be
xtreg DV IV1 IV2 IV3, fe
However, I suspect that the relationship is not really linear, so I took the log of that IV and entered it into... |
I am trying to understand the logic behind forward-backward selection (even though I know that there are better methods for model selection). In forward model selection, the selection process is started with an empty model and variables are added sequentially. In backward selection, the selection process is started wit... |
I know there are different reasons for choosing a particular model (e.g. log log, semi log, lin log).
I read somewhere that the semi log (where only the log of Y is taken) corresponds to a multiplicative/additive relationship.
My dependent variable are market shares which growths/operates multiplicatively (I believe)... |
I have a process that generates integer values following a binomial distribution (n,p). I would like to know what the expected number of distinct integer values given T trials is. Can someone provide the relevant theory?
For instance, let's say our distribution's mean is 450 with a variance of 50 and we request 10 tria... |
I have a pretrained net(vgg16) which is trained with Imagenet, where each input is standardized by subtract the mean of Imagenet dataset.
Now i want fine tuning the net with another dataset (Parse27k), and my question is:
which mean i must subtract for the standardization during the fine tuning, the old one or the mea... |
I have been working with face recognition with neural networks. My dataset has images which fall short of pixels on one axis, as required by the chosen face alignment method. These short pixels may vary from 4 to 7% of pixels on that axis. Which ends up causing black borders on the images.
I would like to know if this ... |
I am in the process of estimating a Vector Error Correction Model for a set of ten variables. I have confirmed that all the series are I(1), however I have become confused by the results of my Johansen test/VEC specification.
My Johansen test has found that four cointegrating relations exist, which I have used in my V... |
I am running a bivariate regression with fitted equation given by
$$\hat{P} = b_0+b_1X+b_2Y+b_3X^2+b_4Y^2+b_5XY$$
It is easy to obtain the 6 coefficients given $X,Y$ and $P$. However, I want to reparameterize the formula as
$$\hat{P} = \alpha + \dfrac 1 {σ_{xx} σ_{yy}-σ_{xy}^2} \Big[σ_{yy}(X-μ_x)^2-2σ_{xy}(X-μ_x)(Y-μ_... |
I'm currently doing the statistical part of my final thesis and I am having troubles with correctly interpreting my regressions results.
The models I am using (with the plm package in R) are pretty simple:
(1) Ln(Emissions) ~ Treatment + Post + Treatment*Post + TimeFE
(2) Ln(Emissions) ~ Treatment + Post + Treatment*Po... |
I'm new to Cross Validated and have read some posts but I'd like to ask if I have set up this study and chosen the correct significance test.
A quick rundown:
Four week study
Same 11 Students all four weeks
Two weeks in condition 0
90 incidents
Two weeks in condition 1
18 incidents
Measurements are in minut... |
I want to fit a scatter plot with a polynomial, and find the correlation between two variables.
1) How can I define and remove outliers from data points?
(in the figure the outliers on the right misled the polynomial fit, which didn't capture the linear relationship)
where SE is the squared error, R is the Pearson co... |
Poisson regression can be conducted using Grouped and ungrouped data. There should be some differences between these two methods. To be sure about it, I have tried to study the differences using a set of simulated data. The result I found was that the estimated parameters will be the same for both methods, but the resi... |
I'm evolving neural networks, partly by mutating connection weights and neuron biases. Right now i'm mutating weights as follows:
modification = random() * 2 - 1; // number between -1 and 1
weight += modification
But I realised that for smaller weights (e.g. 0.03) this modification might be too big. Should I change th... |
There's a step in the Wikipedia article regarding the formulation of the Gini Impurity that I can't understand.
They state that:
I follow everything up until this point
$1-\sum_{i=1}^Jf_i^2 = \sum_{i\ne k}f_if_k$
There is a related thread that gives an intuitive explanation, but I'm wondering if anyone knows the actua... |
I have collected data using two questionnaires for depression and eating habits - I have added together the variables for each construct and have one number for each variable for each participant.
Am I right in saying that now my data is interval? and carry out parametric testing
Or is still ordinal and I should carry ... |
I am a medical doctor not a statistician. I have 60 patients who were assessed by 400 doctors (each doctor individually evaluated the clinical data on each patient). The doctor was then asked to say whether the patient would die or not based upon clinical information provided. I have the survival time and vital status ... |
This question is addressed to expert in econometrics. I generally fit econometric models and statistical learning models to financial time series and some discretionary traders usually asked me if I try to "catch momentum or mean-reversion" and I always reply to them "both". Am I right?
Using the best fit, for instance... |
I'm new to conducting CFA, and would be appreciative of any feedback users could provide. I've seen a few questions on here in the past that are similar but not quite the same to what I'll pose. I'm trying to implement an approach used in a paper by Biderman, Nguyen, Cunningham & Ghorbani (2011) where they examined t... |
From my understanding, Online Learning, as opposed to Batch Learning, takes actions at each time step instead of accumulating computation over entire (or a large epoch) dataset; Streaming Learning refers to having limited time and space constraints, as well as number of passes run on data.
From my professor's lecture s... |
I am have been wondering why people use Gaussian processes (GP) to model an unknown (sometimes deterministic) function. For instance consider an unknown function $y=f(x)$. We have three independent observations from this function :
$$\big(x_1,y_1); \big(x_2,y_2); \big(x_3,y_3) $$
To learn the underlying function, the G... |
Assume n samples from Bernoulli distribution with unknown parameter p,
i. e. $x_{1},....,x_{n}\underset{iid}{\sim}Ber\left(p\right)$
It is known that the confidence interval is given by:
$CI=\hat{p}\pm z_{1-\frac{\alpha}{2}}\cdot\sqrt{\hat{p}\left(1-\hat{p}\right)/n}$
where $\hat{p}=\frac{1}n\sum_{i=1}^{n}x_{i}$
This ... |
Given the following data array :
$$\begin{array}{|c|c|c|c|c|c|c|c|c|}
\hline
J/I&1 & 2 & 3 & 4 & 5 & 6\\
\hline
x & 1 & 0 & 0 & 2 & 1 & 2\\
y & 0 & 0 & 1 & 2 & 0 & 3\\
z & 0 & 1 & 2 & 1 & 0 & 2\\
\hline
\end{array}$$
I can get the following values for the centered data $Y$ along with the variance
$$\begin{array}{|c|c|c... |
k-statistics are unbiased estimators of cumulants. In the large-n limit, the formula for the $r$th k-statistic is just the formula for the $r$th cumulant in terms of central moments. But what, in the large-n limit, is the formula for the $r$th k-statistic's variance?
For any given $r$, I know how, with a lot of math an... |
I am testing my estimation procedure on simulated series of a Markov-Switching Vector Autoregression (MS-VAR), meaning a VAR where the parameters switch via an underlying Hidden Markov Chain.
I simulate data of length $K$, $N$ times from a model where I know the parameters. And then run MLE on each simulated data set.... |
Suppose that you made a webpage and you are collecting the statistics from
the visitors. There are m types of visitors (students, company recruiters, etc.). Each visit is
equally likely to be any of the m types, independent of the types of previous visitors. Find
the expected number of visitors needed in order to have ... |
We have comprehensive coverage on the topic of perfect separation in logistic regression. When it happens in R we usually see two warnings:
Warning messages:
1: glm.fit: algorithm did not converge
2: glm.fit: fitted probabilities numerically 0 or 1 occurred
Is it possible that the algorithm did converge and fitt... |
I have been trying to create a program for training Neural Networks on my computer. For the Network in question, I have decided to use the Cross Entropy Error function:
$$E = -\sum_jt_j\ln o_j$$
Where $t_j$ is the target output for the Neuron $j$, and $o_j$ is the output of that neuron, attempting to predict $t_j$.
I w... |
I would like to fit a model to data that has the form,
$$f(x)=e^{a+bx+cx^2...}$$
The data is Gaussian distributed, and I was going to use a nonlinear least squares method (probably something in scipy). Each $y(x)$ has and associated $\sigma$ so I would like to do a weighted nonlinear least-squares.
The standard method ... |
Does anyone have suggested methods for running a power analysis for a serial multiple mediation model? I am running the model in SPSS with the PROCESS macro. G*power does not appear to have the capacity to run a power analyses for a multiple mediation model, wherein the mediators are sequential.
|
I have a quite big dataset (380k samples), and I am try to do model selection over my validation set (3K samples). Since to run a single model requires days, I have subsample my training set (taking 10k samples) and use it to find the best model (the one with the lowest).
Now the questions are:
Is this a good practice... |
I am creating a neural network to play tic tac toe. I have it play 1000 random games to gather the training data and append the winning data into a list of the board before the move as the X value and the move as the Y value. I am training the data with this line:
model.fit({'input': x}, {'targets': y}, n_epoch=50, sna... |
I would like to create a model in order to predict the demand of a certain variable according to some historical data.
I am working with Python and I am facing some problems.
1) My time series does not have a defined frequency. I have been working with R and time series in the past, and I used to specify a frequency fo... |
Imagine some data set where subjects $1, ..., K$ had a response $Y$ measured repeatedly over a period of time (say, 2000-2015).
Now, in order to study effects like "does the month of the measurement matter?", or "is there a trend over the years?", or "does the day of the week matter?", we can of course use these varia... |
I am new at the field of machine learning. I have non-linear 6 dimensions, and I want to understand the relationship between 5 dimensions first. And, then understand how these 5 dimensions behave related to the sixth. dimension. Can I ask if there is any techniques in machine learning can help?
|
After having run a factorial experiment, I have a regression table with the estimate, std error, t value and p value for two factors and their interaction. My analysis showed that the effect of one factor was larger at the lower level of the other. Is there a way to use this table to show whether this effect is signifi... |
I have a training data for training a classification model. However, i know that this data contains columns (features) that will not be available at test time when I want use the trained model to predict. I do not see any value add from using such features at training time. Note that this is different from a situation ... |
Have there been any efforts made to classify images with multiple characters in them using deep learning? I would be particularly interested in a model that generates new strings rather than attempts to segment them. Thanks!
|
I want to run ICC on my data set, but the label of each point matters.
In regular ICC, these data sets would be equivalent:
| X | X
| X X | X X
| X X | X X
| X | X
| X | X
|___________ |___________
However, let's label each point. This essent... |
I am trying to implement Andersen-Gill model for recurrent analysis. I wrote the following command
AG <- coxph(Surv(tstart, tstop, status) ~ trt+size+number+cluster(id), data=bladder_AG.dat)
but I got the following error :
Error in cluster.default(id) : only implemented for resamples objects
can you please explain why ... |
I have two regression Models:
the first model with one dependent variable (Logarithm of income), one independent variable (Percentage of a proxy), and four control variables with datatype (nominal, percentage, Logarithm, percentage)
the second model the same as the first model, but with different independent variable.... |
I am trying to understand the EM algorithm, and I see that in the expectation step,we need to compute $E_{Z|X} {\log p(X,Z)} = \sum_{Z} {p(Z|X) \log p(X,Z)}$ where $Z$ is the hidden variable and $X$ is the observed variable. I am understanding that we need to compute the expected value of $\log p(X,Z)$ since we cannot ... |
Let me preface this by saying that I am an applied statistician teaching myself Bayesian regression. If we can do this without Greek letters that would be great.
Suppose I am modeling a continuous outcome on some predictor. We'll assume a jeffrey's prior for the variance. Now I need a prior for my predictor and the c... |
I'm trying to build a ML model to predict sports (tennis, soccer, basketball, football).
I would like to have two models : model A to do the pre-game prediction (given historical matches data, injury data, weather, places, player ages, etc) to predict a game before the game starts.
Second model B to predict the game d... |
I have 4 variables A (continuous), B (continuous), C (categorical-binary), and D (categorical-multinomial) which I need to split into K (known) groups. However, in addition to minimizing the distance between observations based on A and B, the groups need to be as evenly distributed possible by C and D.
I am not sure h... |
For example, there is a matrix
A = [[1, 2, 3, 4],
[5, 6, 7, 8]]
where A is a 2 dimensional matrix with 2 samples of 4 dimensions.
I guess word dimension has different meanings for matrix and data (n-dim space for matrix and length of vector for data).
But I want to know definitions and the exact difference.
Thank... |
Where can I find a proof of Pitman–Koopman–Darmois theorem? I have googled for quite some time. Strangely, many notes mention this theorem yet none of them present the proof.
|
I am trying to prove that $\dfrac {1}{\bar{x}}$ (as per the result in this youtube clip https://www.youtube.com/watch?v=0TSMugiWPc0) is certainly the MLE for geometric distribution.
When I try to confirm by then taking the second order condition. My calculation is that it is not less that zero! I am unsure how to write... |
I have two groups of respondents - Group A & Group B with 10 samples each. During an interview they were asked a question to which the answer is yes or no (recorded as 1 and 0). I wanted to check if there is statistically significant difference between Group A and B as far as that particular question is concerned. Whic... |
How can you compute the confidence intervals for a ratio of risk ratios? For example:
RRa = 0.52 (95% CI 0.25 to 1.08)
RRb = 0.68 (95% CI 0.52 to 0.89)
If I take the natural logarithm of each RR (RRa = -0.65, RRb = -0.39), then my ratio is 0.39/0.65 = 0.6
But I don't have confidence intervals for this number (0.6)...
A... |
In Hastie & al's book Elements of Statistical Learning, there are two subsections covering insample prediction errors and optimism bias (section 7, p.228-230).
Hastie & al explain that defining the insample prediction error as
(1),
we can take the expected value of this quantity w.r.t. $Y$ and given $X$ and get
(2)
wit... |
How do I best model the "right half an inverted U-shaped" relationship in a linear regression?
Including the squared term works (to model a full U-shape), but the extremum is at a very negative value, far outside the range of values observed (or even observable) for the independent variable, so it feels like there shou... |
I have a dataset of student scores in an exam. Its structure is as follows:
Group Subgroup StudentID Score(4 Categories) AssessmentDate
001 001 00001 1 20170401
001 002 00002 2 20170401
There are nearly 10000 students, divided into 10 gr... |
I'm currently trying to do supervised learning with three classes (let's say A, B and C).
I have a ground-truth which is a bit peculiar, because i have 'membership probabilities/compatibilites' distributed between the three classes for all data.
For example, the ground truth for a data '1' may be '0.80 A, 0.15 B, 0.05 ... |
My lecturer wants us to report in APA style the weights we used in a planned orthogonal comparison. I can't find this information anywhere, not in previous journal articles or APA publications. Can anyone help?
|
For a continuous random variable x with CDF F(x), the expected value is x0, can I say F(x0) = 0.5?
If not, does the value x1 that makes CDF(x1) = 0.5 mean anything special?
|
I am a beginner in Machine Learning. I have been inspecting some kernels at Kaggle. Some of these answers use factors in their predictive models while others split them into dummy variables (this happens especially when the code is written in Python). I am using R. Which approach is better?
|
I am solving a large set of nonlinear optimisation problems using different algorithms. I have compared their performance using performance profiles (see Dolan and Moré, 2002). These profiles are figures that indicate the global performance of an algorithm. They indicate what fraction of problems are solved within a fa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.