instruction stringlengths 9 38.7k |
|---|
Note: I am dealing with a state space model/hidden Markov model, where process $x_t$ is only dependent on $x_{t-1}$ and $y_t$ is only dependent on $x_t$.
\begin{equation}
\begin{split}
p(x_{0:t}|y_{0:t})& = \frac{p(y_t|x_{0:t},y_{0:t-1})
p(x_{0:t}|,y_{0:t-1}) }{p(y_t|y_{0:t-1})} ~~~\mbox{(bayes)}\\
& = \frac{p(y_t|x_... |
I have a data set I would like to do a regression analysis for. There are many features of both categorical and continuous types. One of the categorical features has many (>75) levels so this is an issue. I have reason to believe that some of the levels are essentially the same. I intend to use decision trees with some... |
I am conducting a cfa (two level, with meaning of level 2;it is staff rating organizations and we care about organizations).
My question is what is the difference is in mplus between type=complex (mlr with sandwich) and type=twolevel if mlr is selected as an estimator with no covariates in the model?
These should be t... |
Consider the following model:
$$Y = \mu + (1+\beta X)\epsilon,$$
where $Y$ is the dependent variable; $X$ is the independent variable; $\epsilon$ is such that $\mathbb{E}(\epsilon) = 0$ and $\mathbb{V}(\epsilon) = 1$; and $(\mu,\beta)$ is the parameters vector.
I wonder if anyone would have a suggestion for a estimatio... |
1) How do we statistically interpret a situation where the correlation coefficient r=0.87, denoting a strong relationship between the independent var and the response var, but p-value >.05 (not-significant)?
2) In a different scenario, if the p-value is significant (p<0.05), while r=0.286 (weak correlation), can we say... |
I am testing a hypothesis that a training program impacts employee performance.
My dataset consists of employee performance as measured by a unit output (e.g. 150 units, 201 units, etc.) in two consecutive periods (before (p0) and after (p1) training), as well as a binary flag of whether the employee received the train... |
So, I'm taking a Binary Logistic Regression Course, and I'm modeling. Specifically we're modeling default for subprime credit accounts.
But that's neither here nor there.
I'm looking at what exactly the C-Statistic is. I understand it's the area under the ROC curve, but I'm watching a YouTube video that defines c as f... |
From my understanding the correlation coefficient is r (the correlation between two variables) and ranges from -1,1 to tell the strength of a linear relationship. and is estimated as: $$r_{xy}=\frac{COV_{xy}}{\sigma_x\sigma_y}$$
The regression coefficient is simply the beta in a regression analysis. It tells the streng... |
My question is are all ARIMA processes also unit root processes? My guess is yes because $\{X_t\}$ is ARIMA(p, d, q) if
$(1-B)^dX_t = a(B)\epsilon_t$
is stationary ARMA(p, q).
The characteristic function for $(1-B)^dX_t = a(B)\epsilon_t$ is $(1-B)^d$, which clearly is unit root.
Also, I suppose not all unit root proces... |
$t$ is a binary target variable equal to $0$ or $1$, and below are the binary distribution and the log-likelihood error function.
$p(t|x,w)=y(x,w)^t(1-y(x,w))^{1-t}$
$E(W)=-\displaystyle\sum_{n=1}^N (t_n \ln y_n + (1-t_n) \ln (1-y_n))$
But how should I write down the error function if there is a misclassification probl... |
When performing chi-squared independence tests, why do 2x2 tests always have every residual value (o-e) equal?
Why is this not true for tests with unequal amounts of rows and columns?
|
I came across a proof for one of the properties of the ARCH model which says that if $\mathbb{E}(X_t^2) < \infty$, then $\{X_t\}$ is stationary iff $\sum_{i=1}^pb_i < 1$ where the ARCH model is:
$X_t = \sigma_t\epsilon_t$
$\sigma_t^2 = b_0 + b_1X_{t-1}^2 + ... b_pX_{t-p}^2$
The main idea of the prove is to show that $... |
Let's say we have a random variable $Y$ defined as the sum of $N$ Bernoulli variables $X_i$, each with a different, success probability $p_i$ and a different (fixed) weight $w_i$. The weights are positive and between ~0.001-1,000 with a handful of outliers.
If it would make the problem more tractable, it would be OK t... |
I would greatly appreciate if you could let me know how to do discrete time survival analysis with time varying covariates.
Some part of my data set is as follows:
ID TIME EVENT x1 x2 x3 x4 x5
1 1 0 1.28 0.02 0.87 1.22 0.06
1 2 0 1.27 0.01 0.82 1.00 -0.01
1 3 0 1.05 -0.06 0.92 0.... |
I am analyzing a very large dataset featuring scores in a sport. The only information I have is the scores of many athletes in various locations, which are organized in the following way:
Location X: Athlete 1: Score A | Score B , Athlete 2: Score A | Score B (5 scores: five judges giving each a score A and a score B f... |
I noticed that software packages sometimes use the function:
.5 + abs(AUC-.5)
when the AUC is less than $0.5$. In other words, it has:
$$
0.5+|AUC-0.5|
$$
as a way to report AUC's under 0.5. Is this just a result of an AUC under $0.5$ being a worthless predictor and is the function above just reversing the labels to w... |
On stattrek, there's a calculator that computes the t-score given the
degree of freedom
cumulative frequency
The formula is given on the page as:
Without the population mean, how did the calculate on the top of the stattrek page calculate t-score? http://stattrek.com/online-calculator/t-distribution.aspx
|
I have the following dataset:
5 3 3 5 10 10 3 8 2 12 8 6 2 5 6 5 10 4 3 5 4 3 3 5 8 3 5 6 6 1 10 3 6 6 5 8 3 4 3 4 4 3 2.5 1 4 2 2 3 5 10 4 4 6 3 2 3 8 3 4 4 3 3 4 8 4 4 2 4 4 3 2 10 6 ... |
Suppose $X$ and $Y$ are independent and identically distributed non-negative random variables.
How can I calculate $\mathbb{E}(X|X+Y=a)$?
|
Assume the matrix contains one dense column, which consists of continuous values between 1-100. The other columns are binary values and are sparse. When applying Kmeans to such as matrix, does the clustering tend to be dominated by the dense columns? What if I want to avoid such domination and also take the sparse colu... |
I just estimated a Vector Autoregressive Model with 6 lags and 10 variables in R. My goal is to simulate the given original time series (on which the model parameters were estimated) to see how the model fits.
As the simulation in R doesn't work (but this is not the problem) I'd like to do the simulation with excel. ... |
$\newcommand{\Var}{\operatorname{Var}}$My weighted linear regression turned out to be as follows:
$\vec{m} = \left(A^TW^TWA\right)^{-1}A^T\left(W^TW\right)\vec{y}$
$\vec{m} $ is a vector of coefficient
$A$ is a design matrix such as $A = \begin{bmatrix} \dots & x_1^T & \dots \\ & \vdots & \\ \dots & x_n^T & \dots\end{b... |
I have an estimator $\theta$ for the mean $\mu$. I understand consistency such that $\theta$ converges in probability to $\mu$ as $n$ goes to infinity.
Now, I encountered another concept, consistency in mean sqaure.
$\theta$ is consistent in mean square if:
$\mathbb{E}[(\theta-\mu)^2] \rightarrow 0 $ as $n \rightar... |
My intuition suggests that if a random process is not stationary in the mean, since it is not WSS there is no practicality in looking at other stationarities in the engineering sense. But I am mathematically curious anyway.
|
I am using the Mahalanobis-Taguchi method to identify anomaly from a multivariate dataset. The dataset has 30000 data each with 1024 features. Should my data follow a multivariate normal distribution for the method to be effective in detecting anomaly ?
|
I have some data representing times series about houses costs in specific areas. Some of the values along the times series (30 points = 30 months) are missing or are totally wrong (huge spikes).
What I am doing right now is to calculate the average and the standard deviation to eliminate first zeros and spikes and repl... |
Context: I have some hazard ratios defined on pCR expression data. Since I have to perform some external validation of my predictions I thought to use RNA seq data.
The reasons are two: (1) there's more availability of RNA seq data with respect to pCR on large cohorts of tumor samples, and (2) this will also prove tha... |
I'm new at learning random variables and stuck in this example. Can anyone help me solve this?
"The RV x is N(5,2) and y=2x+4. Find mean, standard deviation and density function of y."
|
I wish to forecast Y for year 2018 but I only have two data points of Y in years 2006 and 2012.
I already did multiple linear regression (since I have a lot of predictors) but multiple linear regression does not consider the time aspect so my predictions are limited.
I was advised to do causal forecasting instead, whi... |
Here is the statement that I have read (source pp. 21-23):
Since we are selecting the furthest outlier, it is not legitimate to
use a simple t-test(for studentized residuals) for detecting outliers. To remedy this we can make a Bonferroni adjustment to the p-value
Questions:
(1) Why can't we use simple t-test?
(2) ... |
I have some experimental data that I am trying to analyze. I will try to explain the data: I have three different reading tasks, in each one I have six blocks of presentation, and manipulated the length of the words (short and long). Children from two different grades made one of the tasks, and the items were the same ... |
Say I have 20 individuals:
2 of them did event $A$
8 others did event $B$
10 did both events $A$ and $B$
Therefore, I can build the following table:
Did 1 action Did 2 actions
A 2 10
B 8 10
Here is how I want to interpret this:
Given that someone did event ... |
Context: I have an observed data set, denote it by data set $A$. I simulated a multivariate normal data set, denote it as data set $B$.
When I plot the ACF and PACF of both data sets I received a very similar result. I applied all joint test of multivariate normal test on the data set $A$, and I accepted that the null ... |
I wonder if someone can help me. I'm running a multiple mediation (parallel model) using the preacher and hayes process script. I am no expert but it seems to be that the $a$ paths (IV to mediators) are essentially correlations, whilst the $b$ paths (mediators to DV controlling for the IV) are essentially a linear regr... |
I'm pretty new to statistics and need advice on how to analyse zero-inflated, thick-tailed, panel distributions. My sample is a count of enterprise births per city and per year across U.S. cities and 14 years. Many cities have 0 counts. A few cities have very high counts, i.e. the distributions in any given year are z... |
I am building a recommendater system using Collaborative Filtering. I have implemented Alternating Least Square method following this tutorial. Now I want my algorithm to adapt new ratings for movies that were previously not rated. Should the algorithm run again with same number of iterations to adapt new ratings. Or n... |
I am trying to forecast time-series in a very "applied" sense.
Ideally, what I would be looking for was a time-series model (à la ARIMA models), which could capture the dynamics of the growth data of an index. However, I have strong a priori ideas about how to series will/should behave over the long term (justified or ... |
In the book Time Series Analysis by R, the author mentions the use of moving average to smooth out the white noise.
Can moving averages be used to remove white noise or are there better methods?
|
I would like to tune the hyperparameters of a random forest and then obtain an unbiased score of its performance.
As I understand, the natural way would be to use nested cross validation. However, it seems to me that with this method the best hyperparameters found in each inner loop might differ across loops, which th... |
I am estimating a mixed model using lme4. I need to have varying intercept terms (because I am post-stratifying my results to census categories).
However, I also want to add a random slope term for the effect of income (allowing it to vary by state). This is the model that I estimate:
dependent.var ~ (1 | state) + (1 |... |
For my application, I am classifying sensor signals. I wrote a 'Rapid Prototyping' script to quickly build machine learning models and return their cross validation performance.
My pipeline is the following: feature computation, feature selection, training a model, compute cross-validation score.
So far the tunable h... |
I'm having trouble to understand the Stein's identity in Theory of point estimation
Let $X$ a random variable with density in canonical form given by
$$p(x|\eta)=\exp\Big(\sum \eta_iT_i(x)-A(\eta)\Big)h(x)$$ where $\eta$
is the natural parameter, and $T(x)$ is some statistic. Take some
differentiable function ... |
I have an ordinal dependent/response variable with 9 levels. I have 26 independent/predictor variables that include nominal, ordinal, interval, and ratio data types. Should I use stepwise ordinal logistic regression?
|
I only have 2 available points and I wish to forecast its value for the next year. I'm currently looking into exponential smoothing, and econometric input-output model. Which one would be more appropriate? This is about poverty.
|
Let $X_i$'s be independent random variables such that $X_i$'s are symmetric about 0 and $\mathrm{Var}(X_i) = 2i - 1$, for $i \ge 1$. Then,
$$\lim_{n\to\infty} P(X_1 + X_2 + \dots + X_n > n \log n)$$
does not exist.
equals $\frac12$.
equals 1.
equals 0.
Attempt:
(I tried to use Strong-LLN but couldn't figure it ou... |
This is a followup to the answers here and here. I have not seen this term in any textbooks I have or many online resources. It is not, for example, present on the SVM wikipedia page.
What is a hypothesis class in the context of SVM? How do the support vectors relate to the hypothesis class(es)?
|
I've been working on using the Dirichlet clustering algorithm to cluster users based on their behavior.It's an unsupervised task. While the Dirichlet clustering algorithm does a good job of overcoming the problem of predetermining the number of clusters, I still don't see how I can evaluate the quality of the clusterin... |
I have a 'portfolio' of players that I need to evaluate and compare across many games. There is a common metric,let's call it value, I am using to evaluate a players performance in a single game.
However, not every player plays in each game and not every game has the same weight across players when computing value (i.e... |
So I'm developing an implementation of the NEAT algorithm. I understand how it works. But during my testing phase I saw something interesting, related to this quote:
In the add node mutation an existing connection is split and the new node placed where the old connection used to be.
Clear. Let's assume we have a netw... |
I am interested in estimating the correlation between 2 traits and the effect of a variable (treatment) on each of them. I am using the MCMCglmm package to perform a bivariate linear mixed model, but this question doesn't concern bayesian models in particular.
For those knowing MCMCglmm, the formula is:
cbind(trait1,t... |
I would like to know how to handle missing data in predictive analysis:
In my case, missing information has been decided not to be omitted, however, certain predictive models such as logistic regression, random forest, couldn't handle missing data. So for this reason I have decided to do some data imputation before mod... |
I have been working in a project in which I have to collect the following data over a timespan:
Temperature of a room
Humidity inside the room
Amount of CO2 present in the room
Number of persons in the room
I have already conducted the experiment and have built a datasheet having data of CO2 ($C$) , Temperature ($T$)... |
I need some guidance on applying PCA analysis to my data. As a novice in statistics I'm not sure if PCA is suitable and profitable in my case. I have daily gridded SST data for a 35 years (1982-2015) in a single file with columns "date","SST at point 1",....,"SST at point n"
These are temporal series for 4248 points th... |
I have this simple example consisting of
5 data points X = {A,B,C,D,E}
the following proximity matrix (higher value = higher similarity)
| A | B | C | D | E
A | - | 9 | 0 | 9 | 3
B | 9 | - | 8 | 4 | 0
C | 0 | 8 | - | 5 | 0
D | 9 | 4 | 5 | - | 7
E | 3 | 0 | 0 | 7 | -
Given the first row of the matrix... |
Suppose here is a market for softwares. The softwares can be free or paid, which is captured by dummy variable paid. At the same time, we have another variable, price, to measure how much the softwares are charged. Of course, price=0 refers to paid=0. The outcome variable of interest is the number of installations.
I w... |
I have a very basic question. I'm understanding Pearson Correlation right now and that is given by:
Given that, I'm trying to understand the Covariance. Wikipedia says:
In statistics, sometimes the covariance matrix of a multivariate random variable is not known but has to be estimated
And indeed, the formula I'm ... |
The variable I am interested in is "time living in the area". This only applies to people who were born elsewhere and then migrated to the area in question.
My intuition tells me I would model "migrant" as one variable and "time living in the area" as another, then only place the interaction term into the regression. T... |
Wahba (1983) and Silverman (1985) show that the quadratic penalty term on a smoothing spline is akin to a bayesian prior on the smoothness of the model. Nychka (1988) is another key reference. This is made a little less-arcane by Simon Wood (see section 4.8). Consider the model
$$
y = \mathbf{X\beta} + \epsilon
$$
w... |
I am wondering how I can simulate a dataset so that when you run a linear model on it (y ~ x1 + x2 + x3, for example), it will have a fixed $R^2$ (variance explained).
|
I have a simple question whose answer I couldn't find in the manual of the R package 'survival':
What optimization method does the command 'survreg()' employ to obtain the maximum likelihood estimators?
https://stat.ethz.ch/R-manual/R-devel/library/survival/html/survreg.html
|
Compositional data looks like this: $[p_1, ...., p_n]$ where $\sum p_i = 1$.
My question is, I know that we can analyze this using log-ratio analysis but ...
Why not just use anova? Take each of the $n$ components, and use them as factors. So each data row is turned into $n$ rows, with response $p_1, ...., p_n$, and t... |
From The Elements of Statistical Learning I know that logistic regression parameters can be fit using the Newton Raphson (NR) method on the likelihood function. So then why would you ever want to use MCMC?
|
So I'm reading Python Machine Learning by Sebastian Raschka, but I'm getting a little lost on an equation that appears multiple times in the book in two different forms.
Here it is with (y) and (1-y) as indicator functions:
It then appears in this form with the initial (y) indicator missing. Where did it go?? Is it n... |
I'm new to cross validated and even though I have a "decent" (at least for a biotechnologist) non-formal training (mostly self taught) in statistics I have problems with an issue.
In my lab we analyze pathology slides stained with several different markers. We run single-cell analysis for several variables.
I want to ... |
I am studying (mainly using Mathematica) some constrained integration problems in which the six-dimensional convex set of $4 \times 4$ correlation matrices plays a central role. In light of this, I would like to proceed using alternative parameterizations of the matrices that might facilitate analyses. I am aware of pa... |
I'm looking for a term describing measures that relate to the importance of nodes/vertices in a graph in controlling flow. Nodes that sits in between dense clusters would be scored highly while highly connected nodes in the centre of clusters would be scored lower as there're lots of alternative routes around them. A m... |
I've been reading a lot about $t$-sne algorithm for dimensionality reduction. I'm very impressed with the performance on "classic" datasets, like MNIST, where it achieves a clear separation of the digits (see original article):
I've also used it to visualize the features learnt by a neural network I'm training and I w... |
I have the following model
$y_i=\beta_1+\beta_2x_i+\epsilon_i$ with $E(\epsilon^2)=\sigma^2\exp(x_i)$
And I have to use the proper transformation to obtain a model where the variance of the error is $\sigma^2$.
My guess:
I do not have any guesses because I do not know how to proceed.
|
I want to analyse the time to disease with a competing event with an accelerated failure time model (AFT) with Weibull distribution. I wonder how exactly we can interpret the resulting coefficients for the main event considering we have a competing event.
As an example using the dataset in library(mstate), I have patie... |
I have two groups of participants ($A$ and $B$) who have been measured at two points in time ($T_0$ and $T_1$) for a continuous variable (a biomarker in the blood).
If I wanted to know if the change over time in the biomarker ($T_1-T_0$) was different between the group $A$ and $B$ I'd compare the change in each group ... |
Suppose we are interested in testing the null hypothesis that the mean of a normal population is 10 against the alternative that it is greater than 10. A random sample of size 20 from this population gives 9.02 as the sample mean and 2.22 as the sample standard deviation.
My question is two part:
I know that I'll have... |
Currently, I'm using Scikit-learn in Python 3.6 to classify data with a 7-8 classes (e.g. [C, A.1, A.2, B.3, B.1.1, B.1.2, B.2.1, B.2.2] represented by dark borders below) but I started realizing that there is an inherent hierarchy in these groups that could be used during classification. I was going to write my own a... |
I'm trying to calculate the sample size for a 2x2 Mixed ANOVA using G*Power 3.1.9.2
I have entered the following values in F tests ANOVA: repeated measures, between factors - A priori:
Effect size = 0.5, alpha error = 0.05, Power = 0.95, No. of groups = 2, No. of measurements = 2, Corr = 0.5
The total sample size was 4... |
I have a database in which I'm comparing the habituation rates of crabs across a period of time. I have created a database containing the regression slope values for each individual. I have run an Anova comparing my slopes. However i am unsure of which post-hoc test to run (i believe a tukey-kramer), and how to code fo... |
I want to show that the sample median $\tilde{x}$ minimizes the sum of absolute deviations,
i.e., $\tilde{x} = \underset{a}{argmin}\sum_{i=1}^{n}\begin{vmatrix}
x_i-a\end{vmatrix}$
To show this, so far I have:
Sum of absolute deviation about a is
$=\sum_{i=1}^{n}\begin{vmatrix}
x_i-a\end{vmatrix}$
Assume that $x_1\leq... |
I start with 9 independent variables in my linear regression. However, I find that the overall F test value is not having significant P value and some variables are highly correlated.
Thus I discarded five independent variables and get both significant P value for the overall F test and no multicolinearity.
However, I ... |
Say we have a bag of chocolate balls. There are $I$ different unique colors. Our bag has an unknown number of balls for each color.
We want to get a sense of which color people like the most and rank them accordingly.
We find $P$ people who volunteered to test our chocolate balls. Some of them are hungrier than others... |
I use R package fitdistrplus to fit distributions to my data. Function fitdist does the job and brings point estimates and standard errors of distribution parameters (examples of code are bellow).
Is there a general rule how to calculate confidence intervals of parameters when estimated parameters and their standard e... |
I have n (much larger than 2) coins that can give Head or Tail in a toss. For each coin, I have one sequence of trials which may have different lengths. For example, a conceptualized dataset could look like:
Coin 1: HHT
Coin 2: HHTTHHTHTTHHHTTHTHHHHH
Coin 3: THHHTTHHTTTTTTT
I would like to test whether all coins are id... |
I ran an experiment with 4 factors A, B, C, and D.
Factor C is nested within B.
The results of the ANOVA show:
C had a significant effect
and
AxB had a significant interaction
D had no significant effect, but in this case, D is species, and I want to compare these two species side by side.
So when I want to present th... |
I'm working with a time series data set in R. I've removed the trend and the seasonality but the ACF of the residuals has a "periodical" shape:
What does this mean? I've tried with both a multiplicative model and an additive model. I'm trying to identify what ARIMA process my time series could correspond to.
I'm sorr... |
Given data $D$ and models $M_i$ for $i=1,2,\ldots,n$ with parameter $\theta$, in a Bayesian setting why do we integrate over the parameter space
$$
\mathbb{P}(D|M_i) = \int p(D|\theta;M_i) \text{ } p(\theta|M_i) \text{ } d\theta
$$
when computing the Bayes Factor whereas in a frequentist setting we maximize over the pa... |
How does the dlmMLE in package dlm in R work?
Are the maximum likelihood estimates coming from the Kalman filter or by numerical optimization. If it is using numerical optimization,what is the algorithm being used? In the code that follows,dlmMLE is used prior to dlmFilter,so I would think that dlmMLE does NOT use the ... |
From what I know, Recurrent NNs perform very well in case of sequential data. However, I have also read at many places that it can be used for non-sequential data as well. For instance in the article 'The unreasonable effectiveness of Recurrent Neural Networks' by Andrej Karpathy:
Sequential processing in absence of s... |
While studying variational inference, I am told that it is to make an inference from conditional probability from joint probability, directly. Somehow, it is kind of hard to understand why it is so, and I am also told that the reason why we do this is that sometimes it is very hard to do integrals. What can be the case... |
Given the fact that A, B C, D are the input nodes and Quality is the output node. value of all input nodes can vary from 0 to 1.
|
In matlab example, The hypothesis is: the series is a random walk.
The following is vratiotest results for DataTable.SP and log(DataTable.SP)
>> flag = logical([1 1 1 0 0 0]);
>> [h,pValue,stat,cValue,ratio] = vratiotest(DataTable.SP,'period',q,'IID',flag);
h =
0 0 1 0 0 0
pValue =
0.60... |
I'm trying model stacking in a kaggle competition. However, what the competition is trying to do is irrelevant.
I think my approach of doing model stacking is not correct.
I have 4 different models:
xgboost model with dense features (numbers, that can be ordered).
adaboost model with sparse features (non-numeric featu... |
I'm provided with the following dataset: Dataset. I'm meant to use sklearn to create a Support Vector Machine that can predict it.
I load A and B from my dataset into a 2 dimensional array called input_data and load the label from my dataset into an array called label.
First of all I'm scaling A and B to fit in the ran... |
The straightforward null hypothesis for the Mann-Whitney U test is that the two distributions are identical. However, many documents (including Wikipedia) also indicate that it is equivalent for comparing the medians of two distributions.
Suppose that two distributions have the same shape, when the null hypothesis is v... |
Let's say I am trying to learn a classifier. I have a set of observations, with output $y_i$ and features $a_i$ and $b_i$. But for each observation, I know that if I have output $y_i$ for features $a_i$ and $b_i$, increasing $b_i$ while keeping $a_i$ fixed will also yield the same output $y_i$. I know this from domain ... |
I want to code by hand in R, for a data analysis project Manhattan distance and Mahalanobis. I already coded Euclidean distance as the following :
euclideanDist <- function(a, b){
d = 0
for(i in c(1:(length(a)-1) ))
{
d = d + (a[[i]]-b[[i]])^2
}
d = sqrt(d)
return(d)
}
I want to do the same with the Ma... |
I am working with a dataset of 5298 women with DXA-scans (Dual-energy X-ray absorptiometry) in which three different machines were used for measurement: HOLOGIC_2000 (n=2275), HOLOGIC_4500 (n=1485) and LUNAR (n=1538).
The three populations have the same distribution in terms of age, weight, height, BMI. Therefore, I wo... |
Could we say that linear SVM and logistic regression are the exact same models optimized using different losses, respectively hinge loss and logistic loss?
|
In my model I have clear reverse causality between two predictors. I am mainly interested in esitmating the interaction between the two predictors mentioned above.
I am wondering how this form of reverse causality could affect the interpretation of the relative coefficients, especially the interaction.
Y = B0 + B1 ... |
We are applying feature selection for train data.
Assume that we are having 1000 selected features.
The testing data contains more than 1000 features.
It results in prediction error "The number of features at training time in scikit learn".
How can we reduce the number of features in testing data?
Should we apply featu... |
A previous post has discussed model discrimination very nicely. The post also briefly discussed calibration:
"When evaluating a risk model, calibration is also very important. To
examine this, you will look at all patients with a risk score of
around, e.g., 0.7, and see if approximately 70% of these actually were
... |
I have data on exchange rates, where I have calculated the mean and the standard deviation of the payoff. I am able to run a regression (payoff regressed on a constant) and get the standard error of the sample mean.
Is it possible to either do the same with the standard deviation or calculate from a formular and get t... |
My research question is: how does democracy affect infant mortality rate?
I have controlled for confounders such as GDP per capita etc
in this case, when run interactive model, can i use GDP per capita again as a interaction?
thanks
|
I have the following table of conditional probabilities.
| pre work | positive outcome based on pre work type
group | done | multi choice | symbolic
-------|----------|--------------------|--------------------
A | YES | 0.51 | 0.33
B | YES |... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.