instruction stringlengths 9 38.7k |
|---|
How do I validate a ridge regression model? Presently I am using both the mean absolute error and the $R^2$ score from python's sci-kit learn, and am plotting the prediction against the actual result.
Is this enough? I am having a bit of a tough time finding information which is written in layman's terms.
|
I can't quite wrap my head around something that should be relatively fundamental. I'm familiar with ROC curves and AUC, but what I'm confused about is using accuracy for logistic regression. My understanding is that a logistic regression model outputs probabilities, and then those probabilities can be classified as on... |
We know that there are two different implementations of Word2Vec: CBOW and skip-gram. The following figure shows these implementations:
My question is about the skip-gram model. We expect that the training samples in the skip-gram model be like $input = w_i$ and $target = (w_{i-k},\ldots,w_{i-1},w_{i+1},\ldots,w_{i+k}... |
I did a simple linear regression of predicted values (by my model) vs. measured values and made confidence interval boundaries (95% confidence) of the fit using matlab functions. I know that a 95% confidence interval means that there is a 95% probability that the true best-fit line for the population lies within the c... |
I have two time series (length N) and I did a t-test to look at the difference between the two time series time point by time point. So I get N p-values from this. Obviously I need to correct for multiple comparisons but I'm wondering what's the best way to do it.
I think most people use FDR, but I wonder if that's too... |
I wonder what cause the correlation between parameter estimates in regression analysis?
Does misspecifacation of model cause such a correlation? Or does multicollinearity cause such a correlation?
In the existence of such correlations between parameter estimates, do we need to search the reason and study on the model ... |
If I am working with a regression model of the form
$$ Y = X \beta + \epsilon,$$
where $X \in \mathbb{R}^{n \times p}$ and $\epsilon \sim N_n(0, I_n \sigma^2)$ and I know that in the population, $R^2 = q$, how do I estimate $\sigma^2$ if all I have are $X \beta$ -- the error-less response variables?
|
in order to avoid losing my backgammon match, I had to avoid rolling a one on both of two successive rolls with two dice on each roll. If I rolled a one once or double ones I was ok, I just couldnt roll 1-x then 1-x on two successive rolls. What were my odds of avoiding rolling a one twice in a row?
|
I am enrolled in Civil Engineering. I need to understand stochastic processes for completion of my project. I have just completed first 9 chapters from the book "Probability, random variables and stochastic processes" authored by Papoulis.
Basically, I understand random processes and distribution theory as an engineer ... |
Here is that I want to achieve: the input is a soccer image frame
Then, I want my model to return a 2D model has following information:
Where player's position in the field are given; and the player's relative distance are well preserved as well.
Here is my plan to achieve this:
First, player detection using some sta... |
The standard definition of stochastic volatility model is:
$dS_t = \mu S_tdt + \sqrt{v_t}S_tdW_t$
$dv_t = \alpha_{v,t}dt + \beta_{v,t}dB_t$
$\langle d W_t, d B_t \rangle = \rho$
(From wikipedia: https://en.wikipedia.org/wiki/Stochastic_volatility)
However, in Kim's paper (http://finance.martinsewell.com/stylized-facts... |
I have data of few children, about 30. They are ridden with some disease. I know age of 30 children. I know since how many years the children have the disease (disease age) for 28 children. How do I impute the disease age of the two children. When I tried I am getting the disease age greater than actual age of the... |
In the case of supervised classification, we wish to predict the label of unseen observation $x\in\mathcal{X}$ by assigning it to some label $y \in \mathcal{Y}$. Specifically, we want to find label $y^*$ as follows:
$$\begin{split}
y^* &= \underset{y\in\mathcal{Y}}{\text{arg max}\;} \Pr(Y=y|X=x)\\
&= \underset{y\in\mat... |
I'm an applied researcher and had a conceptual question about the simple linear regression population.
Background
From some books, I know in simple linear regression population, we assume to have a "subpopulation" for each value of the predictor (see picture below). Each of these subpopulations, is assumed to be a Norm... |
I have been given a task to solve using a neural network and I think that using a neural network is the wrong algorithm to use.
The idea is simple: given at most 3 diagnoses, predict which medication(s) a health professional will prescribe.
The main issue is that each diagnosis can have many valid medications prescri... |
I can imagine that by setting a learning rate per layer (in the gradient descent update rule) it would be possible to manage the vanishing gradient problem better than when using a single learning rate. Are there any specific techniques dealing with this? I've had a look on google scholar but couldn't find any particul... |
I am trying to extract the dependence structure connecting some Categorical (CV), Ordinal (OV) and Interval (IV) variables (definitions). Basically, I am trying to build the structure into a copula, such that I can apply various marginals (mostly obtained from KDE), and create correlated samples. Here is my homework so... |
In a case-control study including men and women of various ages, I wish to investigate if there is a difference in a measured variable (X) between cases and controls. The data are stored in a dataframe/tibble d as such:
# A tibble: 1,103 × 4
CaCo Gender Age X
<fctr> <fctr> <dbl> <dbl>
1 Case Wom... |
In my data I have problems with heteroscedasticity as indicated by the Breusch-Pagan test and the NVC test that are both significant.
Therefore, I would like to follow the method posted by Gavin Simpson here: https://stackoverflow.com/questions/4385436/regression-with-heteroskedasticity-corrected-standard-errors
I used... |
I have done a linear regression of predicted measurements (of my model) vs. observed measurements and plotted the confidence band. Can I draw any conclusions about the points that lie outside the band?
If I am interpreting confidence bands correctly, if a point does not lie within the confidence band it means that ther... |
What's the difference between a logistic regression and an ordinal regression using cumulative logits?
|
log marginal likelihood for Gaussian Process as given by Rasmussen's: Gaussian Processes for Machine Learning equation 5.8 is
$$\log p(y|X, \theta) = -\frac{1}{2}y^{T} K_y^{-1}y - \frac{1}{2}\log|K_y|-\frac{n}{2}\log2\pi$$
where $K_y = K_f + \sigma^2I$ is the covariance matrix for the noisy targets $y$ (and $K_f$ is ... |
Given a data set as follows:
$$\begin{array}{crrrrrrrr}
Classes: & Less\:than\:20 & 20-30 & 30-40 & 40-50 & 50-60 \\
frequency: & 30 & 20 & 15 & 10 & 5
\end{array}$$
The objective is to find a suitable measure of dispersion.
The first thing I thought of was the variance, but can we find out the mid point of a cl... |
We are given a random sample of size $n$ and let the corresponding order statistics are as follows: $$Y_1 \leq Y_2 \leq Y_3.......Y_{n-1}\leq Y_n$$
The distribution of the sample median for $n$ even is required, so if $n=2k$ the sample median is given as : $\dfrac{Y_k + Y_{k+1}}{2}$
Also, the joint distribution of $Y_k... |
I am looking for a function in R which can handle Crossed Random Effects as well as Splines for my Fixed Effects and for the Random Effects. I tried the function gam from mgcv and just specified two different random intercepts. But I am not sure whether the function is really treating my effects as crossed in the backg... |
In the wikipedia page about curve fitting:
https://en.wikipedia.org/wiki/Curve_fitting
The graphic on the right shows:
"Fitting of a noisy curve by an asymmetrical peak model, with an iterative process (Gauss–Newton algorithm with variable damping factor α)."
I would like to do this and I know how the algorithm works, ... |
The bias of an estimator $\hat{\theta}$ is defined as $Bias = E[\hat{\theta}]-\theta$. I want to standardize this value to compare the bias of different parameters. Can I report the following quantity instead?
$$\dfrac{E[\hat{\theta}]-\theta}{\theta}.$$
Does this quantity has another name than relative bias?
|
I would like to know if it is possible to use items with different scales to compute a single variable. For example for the variable "authonomy" I would like to include 4 items for the variable computation.
Three questions are with yes/no answer, e.g., "Are you able to choose your methods of work?", and one question is... |
I have values which approximate the output of pdf(x) for a distribution over a range of x. I would like to determine the parameters of the two-parameter Weibull distribution which best fits these values.
I know how to use the MLE or the graphical method to fit a Weibull distribution to actual values, and I know how to ... |
I implemented dropout on my neural networks. I tried to train the neural network to act as the f(x) = sin(x) function. During normal backpropagation without dropout regularization, it literally needed less than 10 iterations to reach an extremely small error.
However, when I activated dropout, it got stuck at a reason... |
This must be a standard problem, but I can't find an answer.
I'm assuming that particle weights follow a Normal frequency distribution, that is the number of particles with weight < x is given by N(x), which is a CDF, the integral of the pdf n(x).
I want the weight of particles with weight < x. I think this CDF will ... |
If I have a design matrix $X\in\mathcal{R}^{n\times d}$, where $n$ is the number of observations of dimension $d$, what is the complexity of solving for $\hat{\beta}=\text{argmin}_{\beta}\frac{1}{2n} ||X\beta-y||^{2} + \lambda||\beta||_{1}$ with LASSO, wrt $n$ and $d$? I think the answer should refer to how one LASSO i... |
I wonder if it is possible to rewrite the lognormal density function, $$f(x)=\frac 1 {x\sigma\sqrt{2\pi}}\exp\bigg(-\frac{(\log x-\mu)^2}{2\sigma^2}\bigg)$$ so that the mean value, $\exp(\mu+\frac{ \sigma^2}2)$ is part of the expression? I want this since I'm testing the hypothesis $$H_0: \exp\bigg(\mu+\frac{ \sigma^2}... |
I have a dataset in which the target variable has three classes. The approx distribution is as follows:
"-1" - 4%
"0" - 90%
"1" - 6%
I did not find any package in R which can run smote for multilabel classification( Please tell me if there is). So i compromised and did the following
Forget about class "-1", apply... |
Parametric bootstraps are considered the gold standard to compute confidence intervals for linear mixed effects models. I think they also allow for easy re-transformation of model predictions to the original scale if the transformation was needed to meet the model assumptions.
Unfortunately, I have several doubts abou... |
Is there a way to check that the proportional hazards assumption is correct for a Cox model with time-varying covariates ?
|
I have several time series of annual data from which I'd like to calculate a yearly mean (arithmetic or robust).
Am I correct to assume that each of these time series has to fulfill the conditions of having the same mean and being homoskedastic (i.e. stationarity)?
Is it also important to prewhiten the individual seri... |
I consider data {$y_{ij}$} which is a rectangular table of counts, and that follows a Poisson distribution, $y_{ij}\sim Poi(\mu_{ij})$. The mean value, $\mu_{ij}$ depends on a variable $x_{ij}$, which for each pair $(i,j)$ is known. As a model I have the following: $$\mu_{ij}=\alpha_i\beta_jx_{ij}^\gamma,$$ and I want ... |
I am trying to train a Deep Q Network (https://deepmind.com/research/dqn/) for a simple control task. The agent starts in the middle of a 1-dimensional line, at state 0.5. On each step, the agent can move left, move right, or stay put. The agent then receives a reward proportional to the absolute distance from its star... |
I am looking at a relationship between Population and a measure of Accessibility. I have found an inverted-u type relationship:
Unfortunately, the relationship would predict negative population in areas with very high Accessibility. This intuitively makes no sense so I wish for the model to have an asymptote at zero. ... |
Consider I want to visualise the sales figure of 10 products in a dashboard (I will use HTML5 and JS). My data contains product name, total QoQ (Quarter on Quarter) of sales, QoQ of sales in US, QoQ of sales in GB and QoQ of sales in Eur. I want to visualise the data using plots/graphs/charts.
I tried with spyder/radar... |
Basic question - we have data representing the average performance of two sets of hospitals on a quality measure. The denominator for each set is different. Is it acceptable to calculate percentage difference between one average and another? I was always under the impression that such a measure is misleading and you wo... |
I'm using the following probability mass function:
$$P[X=k] = \frac{2}{\cosh(a)+\cos(a)}\cdot\frac{a^{4k}}{(4k)!}\, \text{ for } k∈N∪{0}$$
I have derived the following:
Mean = $a^4/4$; variance = $a^4/4$; skewness = $2/a^2$; kurtosis = $-13/4 + 4/a^4$
I have also constructed an estimator for $a$ by using the method o... |
I have a data set where I have unequal sample sizes and unequal variances. I am trying to see if there is a difference in Means between the group I am testing. The group sample sizes are 30, 59, 148, 77, 56, 29, 29, and 28.
I ran a Kruskal Wallis test but I am not sure how powerful it is against unequal sample sizes. ... |
In the context of diagnostic screening (Positive / Negative) for a given outcome, what is the correct term for FP / (TP + FP)?
Wikipedia calls it the False Discovery Rate. However, when I look for more credible references, I'm unable to find any. Further, the peer-reviewed literature I do find on the False Discovery Ra... |
How does using GAM differ from using multiple polynomial regression? They seem to produce the same result. Below I run a polynomial regression using lm() with
$wage=\beta_0 + \beta_{age}\cdot age+\beta_{age^2}\cdot age^2 + \beta_{year}\cdot year+\beta_{year^2}\cdot year^2 $
Then I do the same with gam() and compare the... |
I am trying to use loess basis expansion on a toy data set. Why the same design matrix for GAM and LM lead to different results?
> library(gam)
> fit1=lm(mpg~lo(wt),data=mtcars)
> fit2=gam(mpg~lo(wt),data=mtcars)
> all(model.matrix(fit1)==model.matrix(fit2))
[1] TRUE
> anova(fit1,fit2)
Analysis of Variance Table
Model... |
I am watching the Neural Network videos by Prof. Geoff Hinton. In there he talks about a high dimensional Weight Space for perceptrons.
In particular, I am referring to following two slides. Also here is a link to the timestamped youtube video where he describes this weight space: https://youtu.be/0T57_yjjB58?list=PLo... |
Let $(X_1,...,X_n)$ be a random sample from an exponential distribution with
pdf $f(x,\theta) = \frac{1}{\theta}\exp{\frac{-x}{\theta}}I_{(0,\infty)(x)}$ , which of the following estimators is the MVUE for $E(X^2)= 2\theta^2$
$$ T_1 = \frac{2(\sum X_i)^2}{n(n+1)}$$
$$ T_2 = \frac{\sum X_i^2}{n}$$ .
Based on the unique... |
I'm trying to figure out optimal values for the variables pH, air velocity and light intensity for eight growth chambers. The factorial design is as follows:
The weight (gram) for each chamber is:
How do I go from experimental design to a linear regression model?
Is it correct to use the same values for the dependent... |
I have two data samples of a value and I want to compute some distance which would represent the difference in their distribution.
I read about Kullback-Leibler distance which could be used for comparing two distributions.
Would it be the right way if I compute the density of both samples and pass it as input to comput... |
Let T be a triangular region with vertices (0,0), (1,0), (0,1) on xy plane. Let X and Y be RVs which have joint uniform distribution on T.
For any fixed z element of R, calculate probability X and Y are both less than or equal to z.
I know that f(x,y) = 1/(area(T)) when (x,y) element of T,
0 ... |
I have a dataset where I have observed counts for a phenomenon for every week in a 5-years period in 10 geographic areas.
We believe that this count is affected by seasonality, but also additively by "input" variables.
I would like model seasonnality using a spline on "weeks". I expect seasonnality to have a similar... |
Given any $n-1$-dimensional linear subspace $U \subseteq \mathbb{R}^n$ orthogonal to a unit vector $p$, how to generate Gaussian-distributed vectors on $U$ with covariance $\Sigma \in \mathbb{R}^{(n-1)} \times \mathbb{R}^{(n-1)}$, centered at the origin?
Something like this in the 3D case:
|
I am comparing observed and simulated acceleration distributions. There are 3 data sets:
1) acco = observed accelerations
2) acc15 = simulated accelerations data 1
3) acc16 = simulated accelerations data 2
I did 2 sample Kolmogorov-Smirnov test with acco & acc15, and then acco and acc16. I want to see which of the two... |
New on the site and could really use some help.
I'm stuck on a problem that should be obvious.
We have two random variables, $\Theta$ and $X$, where the mean of one is the realization of the other:
$\Theta \sim N\left (\mu ,\frac{\sigma^2}{m} \right )$
$X \sim N\left (\Theta ,\frac{\sigma^2}{n} \right )$
We are look... |
In R, I ran multiple configurations. The weird thing is that increasing nodesize improves the accuracy quite a bit. This is the opposite of what I expected.
nodesize determines the minimal size of the final nodes (leafs). So a bigger number would mean a less deep tree used. Correct?
set.seed(23)
Model4 <- train(Myformu... |
I was asked a relatively simple problem and was curious as to how to solve.
Say I had a bomb detector at the airport, and it is 99.99% correct. That being, when the detector goes off or does not go off, it is correct 99.99% of the time. And in the population, 1/10,000 people actually have a bomb.
What is the probabilit... |
I am trying to train a simple neural network for regression, where the underlying function is a quadratic. Training data is generated by this underlying function, and I am just trying to get a network to learn this function.
This underlying function is $y = (x - 0.5)^2$, and I have generated 100 samples with $x$ from 0... |
I have a set of input data X consisting of S&P 500 returns, that provides me with a covariance matrix C that is non positive semi-definite. The reason for the non-semi definite nature of the covariance matrix is that S&P returns data are asynchronous or incomplete. Is it possible to 'correct' this covariance matrix by ... |
We have a density $X$ defined as $f(x,\theta)=\theta x^{\theta -1}I_{(0,1)}(x)$.
The hypothesis to test is given as follows:
$H_0:\theta \leq1$ Vs $H_1:\theta >1$
A sample size of two is selected, and the critical region is defined as follows:
$C=\{(x_1,x_2):\frac{3}{4x_1}\leq x_2\}$
I tried writing the power function,... |
I'm trying to work through the proofs of the asymptotic distributions of OLS. In this derivation, we make the assumptions that the observations $(y_n,\mathbf{x}_n)$ are i.i.d. and that the fourth moments exist. The book I'm using (Ruud) says that the second-order moments of the random variables $x_{nk}x_{nj}$, $x_{nk... |
i´m new with R and i have a question to do.
i´m doing a study on seed germination and i have trouble doing a priori contrasts for a GLM analysis. My response variable is proportion of seeds germinated and my explanatory variables are treatment with 3 levels (consumida, fruto, S/P) and species with 4 levels (chaqueña,g... |
Suppose $X_{1}, X_{2}, ....$ is a random sample from a probability distribution with mean $\mu < \infty$ and $\sigma^{2} < \infty$. Let $\bar{X}_{n} = \frac{\sum X_{i}}{n}$.
From the Central Limit Theorem we can state that:
$\sqrt{n}(\bar{X}_{n} - \mu) \xrightarrow {d} N(0,\sigma^{2})$
All right, but now, i want to k... |
Recently I've created a similarity measure specifically designed for high dimensional time series data that contain a low number of observation (measure) occurances. Within this, the equation is meant to accurately assess the relationship between non-linear variables despite the presence of time lag and high variance. ... |
I am having issues including "season" as a predictor variable in my survival analysis using cox proportional hazard models. I work with sage-grouse and have reason to believe their survival varies by season. I provided a sample data set below.
library(survival)
library(dplyr)
BirdID <- c(1,1,1,1,2,2,2,2,3,3,3)
Event ... |
I have shown customers two products with certain attributes and asked them to select one of the products. I have done this 12 times
with different combinations for each customer. I have a total number of 1000 customers.
Is there a modeling technique that I can apply to calculate which attributes most customers prefer? ... |
Please help me understand how to write R code for a common experimental design in my field. The exact statistical model is in the Stats Analysis paragraph below:.
Statistical Analyses
We used repeated measures analysis of variance (ANOVA) in SAS v.
9.2 (SAS Institute, Inc., Cary, NC, USA) with the mixed models pr... |
I have 4 results represented by A, B, C and D
I have the probabilities for whether each result will be greater than the other:
P(A>B): 86.6%
P(A>C): 80.4%
P(A>D): 72.6%
P(B>C): 57.4%
P(B>D): 41.2%
P(C>D): 37.7%
I also assume they can't be the same result.
How do I determine the probability that the results will be in a... |
I have recently gotten into a problem with EEG activity measurement.
I need to prove (or disprove) that certain event triggered a statistically significant reaction in EEG activity. I know exactly at time the event happened and the brain activity (at certain parts) at that times.
What I did so far was that I measured a... |
In my research I am looking at the effect of 3 IV's on a binary DV that is measured repeatedly on the same sample after different treatments. Therefore, for every treatment, I have created 3 binary logistic regression models that each test the effect of a different IV together with a set of control variables. Thus:
Tre... |
I have two 4x4 contingency tables for frequency data. They are based on the same type of sampling criteria of a number of discrete variables but for two condition (before and after). I would like to compare these statistically to see how much - or not - they differ.
A Chi square related test seems appropriate but norma... |
I have two independent variables, both with two levels. Different participants for each of the 4 conditions.
A 2x2 ANOVA does not seem to be the best solution because my sample is small, the number of participants in each conditions differs, and the normality assumption is not met. I did the Shapiro-Wilk test in SPSS ... |
One definition of the Residual Sum of Squares is:
$$
S_r = (y-X\hat{\beta})^T(y-X\hat{\beta})
$$
And I think I understand it.
Now I have seen a different definition:
$$
S_r = y^Ty- \hat{\beta}^TX^TX\hat{\beta}
$$
I think they supposed to be equal but I can't see why.
I can write (I leave out the \hat on $\beta$ to mak... |
I'm looking for the best language and library to use Bayesian Networks in production. I need the model to be sufficiently fast for an almost real time experience. The computation load is to update the model from about 10 new data points each time a user will make a request and the user shouldn't wait more than about 2 ... |
I have been using the Libre Office Solver tool (similar to Excel Solver) to mass balance some chemical systems. I know the chemical compositions of the various phases in the system and the chemical composition of the system as a whole.
Briefly, I use Solver (in Excel or LibreOffice Calc) to find proportions of the var... |
I'm running a model to understand the relationship between children education expenditures and income. I have three variables
$y$ the response variable that represents the proportion of income spent with children education
$x_1$ represents family income in dollars
$x_2$ number of sons
I'm running a beta regression m... |
There is a nice answer, however it goes from another way around: the model gets more bias if we drop some features by setting the coefficients to zero. Thus, overfitting is not happening.
I am interested more in my large coefficients indicate the overfitting. Lets say all our coefficients are large. My intuition is th... |
It is not clear to me how to carry the following ANOVA analysis out in R or SPSS (or ideally both).
I have an experiment in which I am measuring the response time (dependent variable) by 20 subjects for 6 cognitive tasks: 3 visual and 3 auditory. A subject does each task only once. This gives the following factors:
F... |
Bland Altman (B.A.) method asses the agreement between two measurement methods and can evaluate the mean difference (bias) of one method against the "gold standard method." With the B.A. method we can compute the 95% limits of agreement (not to be confused with confidence bounds). Would it be appropriate to use thi... |
How can I simulate a clustered panel data set, that includes 2 levels in R?
An example would be student test scores in a classroom.
I am searching for an efficient and easy way to construct the following equation:
$Y_{igt} = \alpha_i + \gamma_g + \tau_t + \beta_{0}\,t + \beta_{1}\,D_{gt} + \beta_2\,X_{it} + \varepsi... |
I have a set of data in which participants get one of two types of items. I want to calculate if their responses are more likely to belong to one of X categories when they get one type vs. the other.
I am hoping to also include random subject and item effects.
Is it possible to run a multinomial logistic regression, in... |
Lots of textbooks and websites warn about drawing conclusions from "ecological correlations" which are defined as correlations between rates or averages. All the places I've looked at have used the same 1970 Census example that shows how correlations between averages can be misleading. What is a simple example of corre... |
Specifically, I wish to understand the meaning of the confidence interval. An example:
p1 = 0.02
p2 = 0.01
n1 = 10000
n2 = 1000
sig.level = 0.05
prop.test(x = c(p1*n1, p2*n2),
n = c(n1, n2),
alternative = "greater",
conf.level = 1-sig.level)
# 2-sample test for equality of proportions wi... |
My specific case is this: There are a number of categories (Science, Health, Religion, etc.), each containing multiple documents. Assume for documents within each category, I perform topic modeling (LDA) with 10 topics ($k=10$). For example, for the Science category, each topic will correspond to Biology, Chemistry, et... |
I'm building a model that predicts the subreddit of a given reddit submission. I have a question regarding pre-processing my text (submissions). The order I followed when pre-processing my text was:
Remove punctuations
Remove stopwords
Lemmatize the remaining text
I then fed the parsed text into a CountVectorizer.
Wh... |
I refer you to Breiman's paper Statistical Modeling - A Tale of Two Cultures where he illustrated some examples of descriptive modelling. Under section 11.1, 100 runs of regression were performed, each time leaving randomly selected 10% of the data. May I know what is the purpose of performing 100 runs and getting the ... |
I'm a noob to the group and am after statistical advice. Any interest would be really great. I expect to use R for analysis and have already read the below page which demonstrates correlations for energy use against NOAA temperatures. I suspect my problem is going to be harder to analyse.
I will run an experiment la... |
Suppose we run a poll with a single question. It's a free question, not multiple choice - a question like "what is your favorite food", not "who will you be voting for". There is an unknown but finite number of answers among the population, equipped with an unknown distribution. After $n$ questions, we have a set of $n... |
Suppose we will measure a quantity x from experiment and I know theoretical probability density function for that $[W(x)]$. Let's assume that we have $10^{6}$ data values.
Now at first we use theoretical probability density function $W(x)$ to generate set of discrete values which will be probabilities for equal sized b... |
This question is often asked during interviews, e.g. what would the distribution of time spent per day using YouTube or Facebook look like?
If the data do not contain imperfections (e.g., people being AFK on the site or people opening and quickly closing the site), I would expect the distribution to be normal. Is that ... |
I have a probability density function $$\frac{4x\arctan(\frac{x}{a})}{a^2(\pi-2)}
$$ $0≤x≤a\,,\quad$ where $a>0$.
I need to find an estimator using some order statistic. Does maximum likelihood estimator count as an estimator by some order statistic? If so, after differentiating the log likelihood fn and letti... |
I'm trying to estimate the parameters of a gamma distribution that fits best to my data sample. I only want to use the mean, std (and hence variance) from the data sample, not the actual values - since these won't always be available in my application.
According to this document, the following formulas can be applied t... |
I have a time series that deals with rainfall. It is a period of 10 years (daily resolution), and covers climate variables.
I'm going to feed the data into an Artificial Neural Network to predict the rainfall variable (PP).
As what I've been reading, MAPE's formula involves dividing by the actual observed value. But si... |
I would like to fit a distribution $f(\cdot;\theta)$ to a sample $\{x_1,\dots,x_n\}$, obtaining a m.l.e. $\hat{\theta}$. I know that the random variable $X \sim f(\cdot;\theta)$ can be obtained as the result of generating a random variable $Y$ following a distribution with p.d.f. $g(\cdot;\theta)$ and then generating $... |
I have a uni-variate regression model in which both dependent and independent variables are non-stationary. They turn stationary upon first-differencing. I want to compare the original form of the model (with stationarity) with the first-differenced form. I have the following questions in this regard:
1) Can the predic... |
I used randomForest( ) function in R. But R can't deal variables that more 32factor levels. But my factor variables are very important thing. So I want to use this variable. Then, how to deal this variable?
I know why randomForest( ) can't handle factor variable that have more 32 levels. But I'm wondering that how to ... |
I would like to know effect of planting cycle (categorize) and water depth (continuous) to snail weight. I monitored every week for 1 year (53 week data), 25 sites.
Snail weight of this week may be correlated with last week. To accommodate temporal autocorrelation, may I use snail weight of previous week as predictor v... |
I am measuring the read speed of a device that reads files from a microSD card through a custom device (I therefore cannot use benchmarks posted on the internet for this). I'm doing this because I am developing a time-critical application and I need a measure of how much this time varies. However, I've encountered a pr... |
When stating hypothesis in matrix formulation, as H0: $C\hat\beta=h$, $SSE(reduced)-SSE(full)$ can be expressed as:
$$(C\hat \beta - h)'(C(X'X)^{-1}C)^{-1}(C\hat \beta - h) $$
How is this result derived? It looks very weird considering it has no Y in it.
Here is my failed attempt:
$$SSE(red)-SSE(full) = (Y'Y-\hat\beta'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.