instruction stringlengths 9 38.7k |
|---|
The following appeared on an assignment of mine (already turned in). I contend that not enough information is given to provide an answer.... it seems pretty cut and clear to me. However, instructor insisted it's solvable in minitab. Can you help me figure out what I'm not understanding?
How do you solve this without ... |
Assume that a typical computer manufactured by a company lasts 10 Months and that the standard deviation is 50 days. Computer life follows a normal distribution. What is the probability that a computer made by this company will last at most 1 Year?
Assumption is that one month has 30 days.
Can you please explain how th... |
I am studying US public company financial performance for the last 2 decades. I am searching for evidence of "sustainable superior performance", thus to isolate those companies that display such characteristics. I will use the Compustat database.
Questions:
Is the total population the universe of US public company wit... |
I am familiar with the Bayesian score, which is used to compare competing structures of a BN. However, I have difficulty in understanding how the Bayesian score formula below is derived.
1) What is an intuitive explanation of the Bayesian score? (e.g. how do the fractions within the product operators equate to $P(D|B_S... |
Motivated by my answer to this question, I played around with analyzing mulitply imputed data from the Amelia package in R. As I have explained in my answer, the multiply imputed datasets can be analyzed using the combined Zelig and mitools packages or using a combination of Zelig and mice.
Now, to me it seemed rather ... |
I am aware of extreme value theory for continuous distributions. I need to fit an extreme value distribution to the maximum observation of number of events on a day, per month. This seems to be the block maxima problem, which is approximated by the GEV family of distributions for continuous distributions. How do I do ... |
We have several weather files for a year's data sampled hourly. In each we have several variables (up to ten), temperature, wind speed, solar intensity etc.
I would like to try and develop a system that could determine if these files are statistically different. If I was using a single variable, I could use a KS-test, ... |
I have a logistic regression model with several variables and one of those variables (called x3 in my example below) is not significant. However, x3 should remain in the model because it is scientifically important.
Now, x3 is continuous and I want to create a plot of the predicted probability vs x3. Even though x3 is ... |
I have categorical count data (for categories C1 to C3, but potentially several more categories) for two datasets:
| --- Dataset 1 --- | --- Dataset 2 --- |
| C1 C2 C3 | C1 C2 C3 |
Item 1 | 0 200 300 | 0 2 3 |
Item 2 | 0 200 300 | 5 0 0 |
The ... |
I have one sample with n=170 and two binary variables (A,B) that can take as a value 1 or 0, where 1 counts as a success and 0 counts as a failure. What I want to know is whether the means of these two variables are equal.
To find this out I generate a new variable that takes the difference between these two variables ... |
J. B. Ramsey (in "Tests for specification errors in classical linear least-squares regression analysis." Journal of the Royal Statistical Society. 1969) says that the RESET test assumes that the residuals are normally distributed.
If one wants to test the incorrect functional form of a model but the residuals have a n... |
I want to perform a quantile regression on two continuous variables; Y (DV) and X (IV). I want to find out if there is an significant association between Y and X.
When doing this in R like:
fit2 <- rq(Y ~ X,tau=c(.05, .25, .5, .75, .95))
If say, the 75% quantile of X is significant with a p-value < 0.05 but rest is not... |
I'm currently working on the Netflix Challenge with the original huge dataset and have run into some problems. I don't have access to any servers or computing clusters so I've been running everything (slowly) on my personal machine.
I'm trying to implement the softImpute function in R and the algorithm converges in a r... |
I am currently running computations through a "Fuzzy" Regression discontinuity Design. Suppose my data are in the following form:
$Z$: assignment variable; if $Z > Z_0$ then the person is assigned to the treatment with a certain probability $p_D$ (since we are in the "fuzzy" RDD framework, $p_D<1$).
$D$: treatment sta... |
I have a problem, I'm learning probability at the moment (I'm a programmer) and starting I have this:
(Source: Minka.) My neighbor has two children. Assuming that the gender of a child is like a coin flip, it is most likely, a priori, that my neighbor has one boy and one girl, with probability 1/2. The other possibili... |
My question seems to be very basic one but my search has not given any similar question. I have small dataset of 8 $(x,y)$ values with uncertainties for $y$ (dependent variable) and the theory predicts quadratic dependence $y=a x^2 + b x + c$. I wish to fit this dataset to the quadratic equation and to calculate confid... |
I use measures of Gelman and Rubin or Geweke. However, they are not applicable to sampling from multi-modal distribution, say p(x), because a chain can be stuck in a local mode. In such cases, the chain seems to be stationary and the two convergence measures will give a bad result that it is safe to terminate sampling,... |
I have a multiple regression model where I have nearly 20 independent variables. These variables are modestly correlated with each other (e.g., the maximum VIF is around 4 with most of them in the 2s).
One of the coefficients is statistically significant and is negative when I expected that it would be positive. I know... |
I do realise this question is quite specific and practical, but I seek for some general help which helps me progress further in my analysis.
Let $y(\boldsymbol{x})\in\mathbb{R}$ be the function I'd like to regress, whereas $\boldsymbol{x}\in\mathbb{R}^6$. My design matrix $\boldsymbol{X}\in\mathbb{R}^{11\times6}$ (ther... |
My overall question is: why use bayesglm instead of other classification methods?
Note:
I'm only interested in prediction.
I have a decent amount of data (~ 100,000 obs).
I feel like the sample size is large enough the parameters of a regular logistic regression are going to be normally distributed (CLT). What woul... |
I have a question about treating qualitative (categorical) events within otherwise quantitative (ratio scale) data. Without going into too much detain, the experiment is on throwing. I measure the distance between the target and the result of the throw for each attempt. Some attempts are failed because the participant ... |
I am trying to calculate the reliability of my change scores using the following formula. Is $r$ ($\rho$) in this instance interchangeable with Cronbach's alpha?
$$
\frac{.5(r_{xx}+ r_{yy}) - r_{xy}}{1 - r_{xy}}
$$
Where reliability of difference scores is a function of the score reliability of each measure ($r_{xx},... |
**Edit: (10/26/13) More clear (hopefully) mini-rewrites added at the bottom**
I'm asking this from a theoretical/general standpoint - not one that applies to a specific use case.
I was thinking about this today:
Assuming the data does not contain any measurement errors, if you're looking at a specific observation in yo... |
I have three data vectors $A$, $B$ and $C$ that are all more or less correlated.
What I want is a meaningful definition for a measure of the degree of correlation between those parts of $A$ and $B$ that are not correlated with $C$.
I do apologize if this is not fully understandable. I struggle to come to an easier form... |
Many studies only report the relationship between two variables (e.g. linear or logistic equation), $n$, and $r^2$. I want to use these reported statistics to reproduce this relationship with its variation. Most statistical software will generate a parameter distribution from a mean and standard error. Assuming a norm... |
I am trying to get a better understanding of kernel density estimation.
Using the definition from Wikipedia: https://en.wikipedia.org/wiki/Kernel_density_estimation#Definition
$
\hat{f_h}(x) = \frac{1}{n}\sum_{i=1}^n K_h (x - x_i) \quad = \frac{1}{nh} \sum_{i=1}^n K\Big(\frac{x-x_i}{h}\Big)
$
Let's take $K()$ to be a ... |
Wikipedia states:
The mean absolute error (MAE) is a common measure of forecast error in time
series analysis, where the terms "mean absolute deviation" is
sometimes used in confusion with the more standard definition of mean
absolute deviation. The same confusion exists more generally.
What does that mean? Wha... |
Assume one has the posterior distribution of a parameter, $p(\theta|y)$ and what I mean by having it is that for each point of $\theta$, one can use Monte Carlo method+MCMC to calculate the $p(\theta|y)$. Now my question is if I want to sample from $p(\theta|y)$, them basically I have to do one Gibbs sampling(for examp... |
Given two confidence bands, it seems natural to consider the confidence band of the product of these two distributions. Does this have a name? Are there any reference that might be helpful regarding this notion?
Edit: Assume that the errors of the first, say, regression curve are not correlated with the errors of the s... |
I am building a Cox Proportional Hazards Model to predict the survival outcome of seabird faced with predation pressure. I have 6 factor variables with two or three levels each that I have predicted to affect survival. Three of which are management relevant (they can be manipulated by wildlife managers to increase or d... |
$X'X \sim Wishart(\Sigma,n)$, however I'm having a tough time producing this in R.
Example:
data=cbind(rnorm(100,10,5),rnorm(100,5,2),rnorm(100,-4,3))
X=cbind(rnorm(1,10,5),rnorm(1,5,2),rnorm(1,-4,3))
t(X)%*%X
rWishart(10,99,cov(data))
The data generated from rWishart is not close to $X'X$. What am I doing wrong? T... |
In the question https://stackoverflow.com/questions/18153450/generating-random-variables-from-the-multivariate-t-distribution, I am confused by why the answer requires we modify the Sigma in such a way that we need to multiply is by (D-2)/D. Here sigma is the covariance matrix for me. The answer also mentions that the ... |
In my industry it is common to test a sample of 20-30 and then use that data to draw conclusions about the reliability of the product with a certain confidence. We have tables for such things but it appears that for the case of 0 failures in the sample, the "Success Run Theorem" is used. In my references this appears... |
Suppose I have a sample $(X_n,Y_n), n=1..N$ from the joint distribution of $X$ and $Y$. How do I test the hypothesis that $X$ and $Y$ are independent?
No assumption is made on the joint or marginal distribution laws of $X$ and $Y$ (least of all joint normality, since in that case independence is identical to correlati... |
I'm trying to build a binary 1/0 ML classification algorithm, and was thinking about how to set up the input dataset. If the event I want to predict (the 1's) occur relatively less frequently in the total data than the 0's, does it makes sense to pare the dataset in such a way to get a more equal distribution of 1's an... |
I am trying to detrend some discrete data and I am having difficulty finding a model to describe the trend. There is a number of discrete data points and there is a linear error being introduced with time. I created some representative data in excel:
Unbiased:
Biased data:
The discrete data here is 1,2,3 with a posit... |
This is a spinoff of
How to calculate the confidence interval of the mean of means?
and related to
When making inferences about group means, are credible Intervals sensitive to within-subject variance while confidence intervals are not?
Dataset 1 here is taken from the first link above. Dataset 2 has the approximately... |
The situation: I'm struggling with a predictive analysis of food sales prices using a generalized linear model. My dataset contains different kinds of food (cheeses, vegetables, meats, spices etc.) and hence I am splitting the dataset completely by these kinds when doing the analysis, because they are very different by... |
Consider this standard linear regression model:
$Y = \beta_0+\beta_1X_1+\cdots+\beta_pX_p+\epsilon$
I've loaded such a dataset into Stata 12.0, so I have some variables $y,x_1,x_2,\dots,x_p$. How do I produce a plot, like I would with . scatter y x for a simple linear regression model?
|
I have a variable called "obs" and from this variable I generated a new variable called "obs_sub" by excluding all observations for which a dummy variable is equal to one. Now what I want to know is if I remove these observations whether the mean of the sub-sample is equal to the mean of the sample. This is my null hyp... |
Suppose a business is operating at the three-sigma quality level. If projects have an average improvement rate of 50% annually, how many years will it take to achieve six-sigma quality?
|
I have a question concerning the interpretation of the final cluster centers. I performed a cluster analysis based on a pca (the variables are based on a five point Likert-scale). I got the following result for one factor:
cluster_1 cluster_2 cluster_3 cluster_4 cluster_5
0,31 ... |
I have performed a simple regression analysis between one dependent variable (DV) and one explanatory variable (IV).
If the p-value from the regression analysis for the IV is not significant, should I still use residual plots to verify that the regression model used was correct (and the statement of non-significant IV ... |
I am new to machine learning and can't get my head around this problem. I have two patient datasets, the first ($D_1$) contains $Y,Z,X$ that convey blood-sample information and the second ($D_2$) contains $W,T,X$ that convey x-ray information. In both datasets, $X$ is the common diagnostic output.
Since there are two... |
I have a dataset of fraudulent orders from some business. Each order has a bunch of features such as order_amount, address, state, city, phone_number, and name. Obviously a criminal would not be using his/her real name when making a fraudulent order. So I was wondering if there was any sort of machine learning strat... |
I have a data set which looks something like this (not real data):
conc Resp
0 5
0.1 18
0.2 20
0.3 23
0.4 24
0.5 24.5
0 5
0.1 17
.. ..
which happens to fit perfectly to the Michaelis-Menten equation:
Resp = max_value * conc / (conc_value_at_half_max + conc)
Even though it is somet... |
I have a time series prediction problem where the aim is to forecast the average value of $y_t$ over the next $T$ periods, given all the information available up to point $t$. For example, I want to forecast
$$\bar{y}_t = \frac{1}{T}\sum_{k=1}^T y_{t+k}$$
as a function of a bunch of other variables $x_t$ which are avai... |
You sell 10 product on average every day. The model is based on a Poisson distribution.
To be enable to cover the indirect cost, the manager needs to sell 8 products per day.
Two questions:
What is the probability to sell between 0 - 5 products in a day?
What is the probability to have at least 6 products in a single... |
I am a clinical researcher and orthopedic surgeon and one of my PhD student is starting on the last part of her thesis. Her work is centered around the potential benefits of interprofessional teaching at an orthopedic ward. The study is a retrospective cohort study on register data for hip fracture patients. Our hypoth... |
I imagine this is a somewhat common situation in practice. I am thinking mainly in terms of preclinical drug trials.
1) During the course of the study a new technique is learned or some time/money is freed up to be able to use a new technique as a secondary outcome.
2) Some key piece of equipment breaks, the lab membe... |
Consider the following R code and output:
row1 = c(0,23,0,0)
row2 = c(0,1797,0,0)
data.table = rbind(row1, row2)
chisq.test(data.table)
Pearson's Chi-squared test
data: data.table
X-squared = NaN, df = 3, p-value = NA
Now consider the same in Python:
import scipy.stats
scipy.stats.chi2_contingency([[0,23,0,0], ... |
Really struggling with this please help.
Find MLE for p and c
\begin{equation}
\ {f}(x,p,c) = (1-p)^{x-c}p
\end{equation}
x=c,c+1,c+2,.....
p is between 0 and 1
c is element of the integers
I am more interested in the mle for c
For the mle of p is it fine to just take the derivative of the log likelihood function.
|
I have to estimate linear weight $\beta$ for regression $Y \sim \mathbf{X}$, where $Y$ are non-negative samples. If I perform vanilla regression (lets assume ridge regression) it will find $\beta$ such that most of estimated $\hat{Y}$ are non-negative. But some of them will be negative. But I need them to be invariably... |
Derive Likelihood Ratio Test of size $\alpha$. H$_0$: $\theta=\theta_0$ H$_1$:$\theta \neq \theta_0$
\begin{equation}
{f}(x,\theta , c) = \theta(x-c)^{\theta-1} \ {c<x<c+1}
\end{equation}
I am having trouble with the mle for c. We have to use order stats and I am not sure which is the correct one to use
|
When studying covariance selection, I once read the following example. With respect to the following model:
Its covariance matrix and inverse covariance matrix are given as follows,
I do not understand why the independence of $x$ and $y$ is decided by the inverse covariance here?
What is the mathematical logic under... |
Suppose I have a normal distribution, $N[\mu,\sigma]$, and I have a sample of size $n$. It is well know that the error (std deviation) of the mean is $\sigma/\sqrt{n}$.
Now suppose that my distribution is a mixture of signal (normal distributed) and a flat background
$$\text{pdf}[x|\mu, \sigma, s, b] = \frac{sN[x|\mu,... |
A random variable X={X1..Xm} and Var(X) is the mXm variance-covariance matrix. Is there an accepted 1-d statistic like variance that may be extracted from the sample variance of data representing a 2-d random variable?
(explanation of the 2d equivalent of a sample variance)
How to find variance between multidimensio... |
What is the entropy of the Inverse-Wishart distribution? I need just a reference, but derivation (e.g. using inverse property) would be interesting too.
|
In my data about 1000 people have made estimates of the probability of 100 unique events. On average people forecast on about 50 events, but some forecast on all of events and some on only a few. About 500 of these people are working in teams of 15. They see each others forecasts and communicate with each other, but... |
As per my understanding here's the what/why/when of the following hypotheses tests in a crude sense:
t-test: Used when comparing means between two samples
ANOVA (one way): Used when you have one dependent variable and one independent (i.e., categorical) variable and you wish to analyze the 'means' (i.e., effects) acr... |
I would appreciate if someone could help me in translating the following R command into a mathematical equation:
lme(score ~ factor(timeslot), random=~1|subjectid, data=a)
For each subject there are observations at 6 different times (timeslots) during a day.
|
I have a model which includes the following priors:
$\lambda_C \rightarrow \dfrac{1}{\sigma_C^2}$
and
$\sigma \sim \text{uniform}(0,500)$
Where $\sigma$ is the standard deviation and $\lambda_C$ is the precision of a normal distribution.
Being a beginner, I have problems conceptualizing the prior of $\lambda_C$. How wo... |
Let:
population size $=N$;
sample size $=n$;
sampling interval $=\frac{N}{n} = k$, which can be non-integer; and
$r=$ random starting point, which can be non-integer, $0 < r < k$.
http://en.wikipedia.org/wiki/Systematic_sampling says we round up $r + mk$ (where $m$ is an integer between $0$ and $n-1$, both inclusive) a... |
When measuring predictive performance of a regression model, I am thinking about using repeated data splitting (or leave-out data at random) instead of using bootstrapping.
By "repeated data splitting" (not sure if that's even term) I understand:
FOR N=10000
Sample 70% of the data points and fit the model
Predict for t... |
I have a dataset of point coordinates of individuals and different variables of these individuals. I want to calculate if the spatial distribution of a certain variable is correlated to the spatial distribution of a different variable. For example: do patches of large plants have higher predation rates, even small plan... |
I was wondering if anyone could give me some insight on the relation between the ACF and the periodogram of a time series.
I have a bunch of timeseries and their ACF's and periodograms are typically much like the examples below.
For my analysis, I'm mostly interested in periodicity at lag 8 and 16 (for theoretical reas... |
If we have data set, X and Y variable. Say, we do correlation analysis and get some correlation coefficient. Besides, we find an important fact after observing their relationship: That is, the scatter plot of X and Y has a triangular shape. Which means that (for example) when X values are increasing Y values are increa... |
I tried to model precision matrix in a hierarchical Bayesian setup with Wishart prior given d.f. and inverse scale matrix, and matrix normal likelihood, since it's a conjugate prior, my posterior on the precision matrix $K$ ends up in the form:
$$
K \sim \text{Wishart}(\text{df}, \Lambda^{-1})
$$
Since the dimension of... |
I have seen the following commonly used: 1. fit a model with all variables, 2. in a single reduction step, remove from the model all variables at once that do not fit some criteria (p-value, whatever), 3. calibrate the reduced model, in my case to a new data set, 4. check model results and hopefully everything went wel... |
Suppose that I observe $M$-times this kind of table:
t X
1: 1 0
2: 2 0
3: 3 0
4: 4 0
5: 5 0
6: 6 1
7: 7 0
8: 8 0
9: 9 0
10: 10 0
11: 11 0
12: 12 0
13: 13 0
14: 14 0
15: 15 0
16: 16 5
17: 17 1
18: 18 0
19: 19 0
20: 20 0
. . .
. . .
T-1:T-1 0
T: T 0
So, what I get is like: $x_1 = 0, x_2 = 0, ... |
I observe a series of crime incidents linked by modus operandi or some other peculiar characteristic of the crime (e.g. cutting catalytic converters from underneath vehicles). I would like to know if the observed days of the week that the crimes occur on (ignoring the uncertainty that sometimes occur in crime incidents... |
Dummy (or binary) variables ($X_2$) can be used in linear regression models to help explaining a possible group effect that a continuous predictor variable ($X_1$) might present in explaining the response variable ($Y$).
Now, I am wondering if it makes sense to have only dummy variables as predictors in a linear regres... |
I'm doing a Poisson regression in Stata, so the dependent variable is a count variable and I have some categorical predictors. If A is a categorical variable with, for example, 4 levels, in the parameter estimates table I get results for the 3 levels of the variable compared to the level I have set as the reference cat... |
Suppose we have trained a model (function, algorithm) $M$ which gives prediction to a new sample $x$ not observed in the training set, $M(x)$. It is natural to assume that the quality of prediction $M(x)$ depends on similarity of $x$ with the training set $X$. I wonder if there are any indices/methods which would evalu... |
I am working with customer satisfaction data where the dependent variable is "Overall satisfaction" and the independent variables are satisfaction with various areas such as customer support, delivery etc.
I want to suggest areas where the company should focus on in order to improve overall satisfaction.
Option 1: I c... |
I am new to g*power and have a question about which test I have to choose and how to interpret the given sample size.
I have 2 measurements (pre / post), one control-group and one intervention-group. In a reference study, I was able to find an effect size of .7 for the most important parameter. In g*power I chose F-tes... |
Let a discrete Random Variable $T$ have CDF $F_T(T)$. Could you please help me understand why $$ P \left[ F_T (T) \leq a_1 \right] \leq a_1 $$
I know that the result holds with equality for the continuous case, it is known as Probability Integral Transform, but I am having trouble understanding it for the Discrete one ... |
It seems that often what someone really wants to plot is a confidence interval of some kind, but using SE for this purpose I think only ends up comprising something like a 68% confidence band. Therefore, plotting SE for error bars instead of a wider band more representative of the significance level of your analysis vi... |
In order to use Pearson's correlation to measure the similarity of two time series, is normal distribution of both time series a necessary condition?
|
Given this chart, how do you determine the slope of the regression Y on F?
|
So I have this directed graph (above)
Each arrow represents a causal link. Is it possible to calculate the affect of X on Z, where all variables are observed except U and W. If so, what would the regression equation(s) look like. I believe it has to do with 2 step least squares, but I haven't been able to figure it ou... |
I am trying to find the expected value of $Z$ where $Z = Y\cdot e^X$ where $Y \sim U(0,1)$ and $X \sim U(0,1)$.
My attempt so far:
$$F_Z(z) = P(Ye^X \le z) = \int \int_{Ye^X \le z} f(x,y)\, dxdy$$
Where $f_{X,Y}(x,y) = f_y\cdot f_{e^x}$
$$f_Y(y) = \frac{1}{1-0}\,, \quad y \in (0,1)$$
I am stuck trying to find $f_{e^X}... |
Suppose $a_1 = b + c_1$ and $a_2 = 2b + c_2$ where $b, c_1, c_2$ are all $N(0,1)$
Find $E[b|a_1,a_2]$
My attempt:
As $E[b] = 0$, I assume $E[b|a_1, a_2] = 0$. Is this a logical assumption?
|
Is there any research into or applications of machine learning in number theory?
I am also looking for (leading examples of) statistical/empirical analysis of number theory questions. Also wondering if genetic algorithms in particular have ever been used in these areas.
roughly related question on other site: Why can ... |
I have two arrays of 2D points and I need to estimate their correlation. What formula should I use?
Example of arrays:
$$X: ((1,5),(2,5),(1,7),(4,1)),$$
$$Y: ((3,4),(1,6),(4,6),(4,3)).$$
|
I'm having trouble understanding how certain combinations of random variables can correlate. The problem is as follows:
I have a binary $m \times n$ matrix $A$ of full rank (over the finite field $\mathbb{F}_2$ with two elements), where each row has exactly $w$ $1$'s (i.e., their weights are all $w$).
I randomly pick a... |
Here is a section of Machine Learning: a Probabilistic Perspective by Kevin Patrick Murphy
I don't understand in (19.18) why there is a negative sign. For me, $\log \tilde{p}(\mathbf{y})=\sum_{s\sim t}\log\psi_{st}(y_s,y_t)$ holds. When $y_s$ and $y_t$ agree, $\log\psi_{st}(y_s,y_t)=w_{st}$, otherwise $\log\psi_{st}(y... |
My statistical learning text claims that for best subset selection, 2^p total models must be fit through regression if for p covariates, we fit p choose k models at each k, k = 1,...,p. I interpret this mathematically as 2^p = p choose 1 + ... + p choose k. Why 2^p models?
|
I have this time series dataset:
The graph shows trend lines for 7 stock prices. They are very close and overlapping, but you will be able to get an idea that trend lines are layered (i.e. brown on the top and red/orange at the bottom, though far from conspicuous).
Is there any way to better visualize this data? like... |
I just want to make sure I have something clear in my head. When I calculate the effect size for a paired samples t-test after obtaining a significant result, I simply take the mean of the differences divided by the standard deviation of the differences to get an effect size d. Do I then need to take d and divide it by... |
I want to obtain an unbiased estimator for $b_1$ in a simple regression like that: $Y_i = B_0 + B_1X_i + u_i$ when I have two samples, always same size for Y and X, but once the sample size is l and once the sample size is m. The respective sample means $\bar{Y_l},\bar{X_l}$ and $\bar{Y_m},\bar{X_m}$ are given. Now I w... |
So I plotted the ACF/PACF of oil returns and was expecting to see some positive autocorrelation but to my surprise I only get negative significant autocorrelation. How should I interpret the above graph? They seem to indicate that there is a tendency for oil returns to increase when it decreased previously and vice-v... |
Based on this answer, Python requires expected values in a chi square test to be absolute frequencies. Consider the following in Python:
import numpy
import scipy.stats
# chisquare function requires (observed, expected)
scipy.stats.chisquare(numpy.array([0,0,23,0]), numpy.array([1,1,1794,1]))
(1751.2948717948718, 0.0)
... |
I send Alice and Bob out to record people's eye colour (blue, brown, green, other). Alice does a great job and writes down the eye colour of 2000 people. Bob only records the eye colour of 20 people. Alice found all 2000 people had brown eyes. Bob found 19 people with brown eyes and one with green eyes. How important i... |
I have a sample $n = 100$ with two "successes" (Two kids having a disease among 100). So we obviously have a binomial distribution.
First I had to compute the maximum likelihood (ML) estimator $\hat{p}$. I got $\hat{p} = \frac{k}{n}$.
Now, I have to derive asymptotic normal distribution for $\hat{p}$ via the central li... |
I have rows of data with columns age, sex, education and income.
I am doing homework that asks me to predict income with naive Bayes in R with the formula
income ~ age + sex + educ
I know formulas tell R the shape of the model to apply in the method.
I also know that formulas don't refer to any specific variables i... |
I am reading chapter 5 of $\textit{Bayesian Data Analysis}$ by Gelman $\textit{et al.}$. There it explains the few steps of data analysis for hierarchical models and if I quote from the book it will be:
"We first perform the following three steps analytically.
Write the joint posterior density, $p( \theta, \phi|y)$, i... |
I need a numerical example to illustrate cases where $Cov(X_1, X_2) = 0$. Can you think of examples involving functions or matrices?
|
The approximation to the function $max(x)$ can be written as a NOISY-OR as given below: $$ max_k(x) = 1-\prod_k(1-x) $$
Are there any way to approximate $min(x)$ ?
|
I hope this is the appropriate venue for this type of question. If not, please feel free to migrate! :)
I'm trying to solve a stochastic partial differential equation of the form $$\alpha(\omega)\nabla^2u=f$$
where $\alpha(\omega)$ represents a random field that is log-normally distributed, i.e. it has a probability d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.