instruction stringlengths 9 38.7k |
|---|
Question:
In general, given a statistic with a highly non-normal (but known) pdf/cdf, how can one use the known pdf/cdf to compute/approximate confidence intervals for the statistic? What options are available? After some reading, one potential (I think) avenue for doing this is via data transformations using copulas? ... |
For the simplest ARCH model $x_t = \sigma_t \epsilon_t$ where $\sigma_t^2 = a_0 + a_1x_{t-1}^2$, $x_t$ is stationary when $a_1 <1$. However, isn't the whole point of using an ARCH model is to model unstationary process (the variance of $x_t$ changes)? How could we end up with modeling a stationary process with an ARCH ... |
I'm working with R since a few months and read the book Discovering Statistics with R by from Andy Field until Chapter 12 by now.
I have some data, which I (for now without any specific reason) want to check for normality.
The data was produced by people filling out a online survey and could check an item on a scale f... |
I've been told by professors that the Gaussian distribution asymptotes but never reaches 0 and thus the p-value can never be 0, but this doesn't make sense to me.
To put it in simple practical terms, say you are sampling a population of 100 people's responses to a 7-point Likert scale. You want to see if this populatio... |
This is different, follow up question to someone else's question here:
I am very new to R and have no programming experience what so ever but I am holding my own for the data analysis we need in my lab. I am detecting changepoints in physiological data using cpt.mean() and until now I have been doing two separate line... |
The problem:
A fair coin is tossed twice. Let X be the number of heads and let Y be the
indicator function of the event X = 1. Find P(X = x,Y = y) for all appropriate values
of x and y.
I've been treating $S$, the sample space for the experiment, as
$S=\{ \{T,H\}, \{H,T\}, \{H,H\}, \{T,T\} \}$ and defining the DRV $X$... |
I hope I'm using the right terms to describe my problem.
Let's say I have the following list of numbers: 1,1.6,2,2.6,3,3.7,1000000
The last number (1000000) will greatly affect the calculated average and I'd like to somehow "ignore" it when performing the calculation (as its value is very different from the rest of the... |
In deep learning, and it's application to computer vision, is it possible to tell what kind of features these two types of pooling extract? e.g. is it possible to say that max pool extracts edges? Can we say something similar regarding mean pooling?
P.S. feel free to recommend if stackoverflow is more suitable.
|
If $N(k)$ be the number of $X_i$'s such that $|X_i - \bar{X}| \geq k.s$ for some $k > 0$, how can we show that $$\frac{N(k)}{n} \leq \frac{1}{k^2} \;\;\;\;?$$
Here, $\bar{X}$ and $s$ are the mean and s.d. of the data set $X_1, X_2, ..., X_n$.
Additional query : What will be the significance of the result if $k = 3$ ?
|
I am working on predicting power consumption. I have been struggling to identify autocorrelation in my time series data. The lag plot created below is for power consumption over 5 minute intervals. I created it using the lag_plot function.
1.Is there something wrong with my data? What is this plot saying?
|
I am going a bit crazy here...
When I plot a Weibull function with shape = 6 and scale = 145 using exponweib.pdf(x, 1, 6, scale=145, loc=1), the results looks like this:
To my (rather limited) statistical knowledge this should be a right skewed PDF and therefore the median smaller than the mean.
However, scipy.stats t... |
I'am working on a 4 class Brain computer interface and i want to validate my work , in so many academic papers they write 10x10 fold cross validation
What i want to know what is the 10x10 fold cross validation
And is it different from 10 fold cross validation
|
For instance, how do I solve this for Delta13Cleaf = -23? The plusminus signs dont represent standard error, because for a given Delta13Cleaf, multiple values (or an interval, not sure) for MAP are computed. The author furthermore doesn't give a much more information than this, but another clue is that he gives three ... |
I am using R and the caret package.
My code is very straight forward.
set.seed(2112)
trainingDataset <- read.csv("Input.txt")
train_control <- trainControl(method="repeatedcv", number = 10, repeats = 3)
fit <- train(eval ~ ., trControl = train_control, method = "treebag", data = trainingDataset)
My first run has 928 ... |
I am self-taught machine-learning Data Science enthusiast. Over the course of self-learning, I have come across various validation techniques such as LOOCV, K-fold cross-validation, the bootstrap method and use them frequently. However, I came across an article where it was mentioned that core statisticians do not trea... |
Is there any literature on the efficiency/asymptotic efficiency of the variance estimators like sample variance? I can find enough analysis about efficiency of mean estimators but nothing on that of variance. Wiki and some other pages delve into variance of sample variance estimators, but don't extend that discussion t... |
I am wondering if, instead of "paying for" an A/B test for all hypothesis' (designing an experiment, running it under controlled situation etc), a statistical analysis can be conducted on past data as a "first pass" on a hypothesis. If it shows there is evidence of the hypothesis being true, the A/B test can be designe... |
I want to know what's the difference betweens the terms architecture and model in the context of neural networks?
I think the architecture is the whole definition of the neural net including the hyper-parameters($H$) (e.g. learning rate, dropout, batch size, etc), the parameters($\theta$) (e.g. weight and biases), the... |
I can't really see from all the online resources I find how this particular condition is embedded in the training of the algorithm. We can certainly ensure that the gradient of lagrangian is 0 and the lagrange multipliers are greater than or equal to zero, but I don't see how this automatically guarantees complementary... |
This is a continuation of the problem in Most powerful test given a sample from a variable with known but not common (I think) distribution
So having found the MP test for the simple hypothesis problem $H_0: \theta=0$ vs $H_1: \theta=2$, the next step asks if this test that was found is also UMP for the following probl... |
Below is a simple model with 2 layers and no nonlinearity:
$X$ is a minibatch of vector inputs, $\hat{y}$ is a vector of scalar outputs, $y$ is a vector of scalar responses, $l$ is a scalar loss, and $W$ and $v$ are the parameters.
$$H=XW$$
$$\hat{y}=Hv$$
$$l=\frac{1}{2}(\hat{y}-y)^\intercal(\hat{y}-y)$$
How do I calcu... |
Background:
let's say I have a website with a big buy button on it and I preformed an A/B testing with the following result:
Version A (control): conversion rate 5%
Version B (variation): conversion rate 8%
Significant level: 5%
Confidence interval: +/- 1%, (8%-5%) = 3% thus the bound is (2%, 4%)
p-value: 0.02
Nul... |
I think I have some fundamental confusion about how the functions in Logistic regression work (or maybe just functions as a whole).
How is it that the function h(x) produces the curve seen in the left of the image?
I see that this is a plot of two variables but then these two variables (x1 & x2) are also arguments of t... |
It seems that survival models are used mostly to describe (not predict) the change in survival probability over time for all cases or each class (e.g. men vs. women).
What I'm interested in, however, is the expected time-to-event for individual cases. In other words, I want to know how long one unique user is likely to... |
I am working on a MacBook Pro OSX 10.12.5 and R 3.4.0.
I have run a simple linear regression (and lmer plots, but one step at a time) utilizing the effects package.
It is a common issue that R will crash when trying to utilize any GUI commands on a Mac. I was using the grab application then converting to a pdf but that... |
I understand the mathematics but I am confused about how the constraints $y_i(w^Tx_i+b)\geq 1−e_i$ are met during the process of training SVM. In formulating the dual problem, the constraints become $C>\alpha>0$, for $C$ is the regularization constant. I assume that this new constraint in the dual problem implies the o... |
Suppose I have independent pairs $(x_i,y_i)$ $i=1,2...n$
Where $y_i=\theta x_i+\epsilon_i$ and the $x_i's$ and $\epsilon_i's$ are iid $\sim N(0,1)$
and the likelihood function for $\theta$ is given by:
$L(\theta|(x_i,y_i)'s)=(\frac{1}{2\pi})^ne^{-\frac12\sum x_i^2-\frac12\sum (y_i-\theta x_i)^2}$
How do you find a mini... |
Let X_1, X_2, X_3 are independent random variables and let the probability density of each variable be as following
$$f(x_i) = e^{-x}I_{(0,\infty)}(x)$$
Now, First I would like to derive joint probability density function of $Y_1 = X_1, Y_2 = X_1+X_2, Y_3 = X_1+X_2+X_3$
my solution
the domain of each $Y_i$ is $(0,\inf... |
I'm trying to make sense of a principal component analysis using R (either princomp or prcomp, I get similar results) with a correlation matrix analysis. In particular, I'm having trouble understanding the factor loadings output.
The data are in a data frame called ds. Here is the eigenvalue/vector analysis of the co... |
I have two precipitation runoff time series (daily values of over 20 years): observational and model based. As shown in following figure I want to determine how much one distribution based on time series A is different from time series B?
Need advise on type of statistical test to help with it.
|
As far as I know I can decide beta parameter for Bayes estimation.
Let’s say we estimate probability of coin flip distribution, and choose Uniform Distribution as Beta(1,1)
If 9 of 10 flips will come up heads, beta parameter would be Beta(1+9, 1+1). After next new trial, we would to update Beta parameter. I believe t... |
I am trying to implement the exact maximum likelihood estimation of ARMA(p,q) models using the Kalman filter.
I wrote the following code in MATLAB and seems right to me, however when i compare the estimates that it returns with those obtained with other software such as gretl or matlab they are different.
The code is t... |
I am currently working with a rounded up values of continuous distribution and I am trying to find out some of its general properties. I have the following model:
$y = \lceil x \rceil$
where $x$ has continuous distribution and $\lceil x \rceil$ is a rounded up value of $x$. I am mainly interested in quantiles of distri... |
Colleagues, can't wrap my mind on simple question, please help!
I have two products and list of their attributes. My respondents make an answer which product on each attribute they prefer. Finally they choose which product they are preferred overall.
This is an example of an answer from a single respondent:
... |
I'm running a chi-squared test in R, for a 2x2 contingency table. When I simulate the p-values using a Monte Carlo simulation, it outputs the degrees freedom for the test as 'NA' (but not when I run the test without the simulation).
Why does that happen, and what should I report for the df in this case?
The code:
cont... |
For example, the first 10 samples are taken from patient 1, the next 8 samples are taken from patient 2 and the next 12 samples are taken from patient 3 etc... Using the samples as trainset within its original order will make our gbdt classification model's performance weaker ? Should we shuffle it before training ?
|
I was reading a paper about Deep Learning in Natural Language Processing which uses the phrase "Intrinsic evaluation of word vectors".
What does "Intrinsic evaluation of word vectors" mean?
|
Consider 4 regions, each region got a range of numbers associated - say these are population estimates from different studies (see reproducible example). I'd like to establish all possible combinations between the numbers of these 5 regions and sum the regions together to get a distribution of the overall population ba... |
In R and Python, Cox regression is specified with duration and event as the dependent variables. However, Cox regression is said to be estimating the hazard ratio. How are the variables duration and event helping/assisting to estimate the hazard ratio, conceptually, in Cox regression? And if Cox regression is predictin... |
I am working on an application of reinforcement learning in an environment in which the number of possible actions increasing throughout an episode. The first step has only 8 possible actions, which increases to a maximum of 24 towards the end of the episode (increasing with 2 after every valid action taken).
I'm using... |
Since I took Karpathy's CS231n I used the method he mentions on the 5th lecture for hyperparameter optimization of neural networks which samples the learning rate and regularization parameters from the log space randomly.
It seems to work great from experience, but I never understood why that's the right thing to do fr... |
I don't know anything about statistics, but I am trying my best to learn :) I have two sets of data of a city. First one is the median of the personal net monthly income per district, and the second one is the per capita green space per district. I wanna know if the income will predict the amount of green space, so I'm... |
I am a newbie to regression modelling techniques. I have a very basic question. My dataset has around 60 independent variables and goal is it find the best variables among them. I found that around four regressors have very low variance of say 0.0005,0.007 etc. Is it logical to drop these regressors under the base tha... |
If $x$ and $y$ are independent and normally distributed:$$x\sim N(\mu_x,\sigma_x)$$
$$y\sim N(\mu_y,\sigma_y)$$
and $r$ is a random variable with the following relationship to $x$ and $y$
$$r = \sqrt{x^2 + y^2}$$
is it possible to derive expressions for the mean and variance of $r$ in terms of the parameters of $x$ an... |
Context --
Unlike, Partitional clustering algorithms like K-Means, Spectral or Hierarchal Methods, Incomplete clustering techniques like DBSCAN, HDBSCAN and many others have the notion of noise (outliers).
Common cluster validation (Internal and External) indices - Silhouette Index, C-Index, Dunn Index, Entropy, Within... |
I was reading a paper earlier today (Gabel and Redner 2012) and got stuck following their derivation of the following equation. Their logic goes like this:
Let the number of possessions per second = $\lambda$
Let the number of seconds in a game (2880) = $T$
Therefore, the average number of possessions (per game) = $\l... |
I'm trying to fit a mixed-effects model to a problem that includes:
a continuous response variable (mean jumped distance by 17 species of frogs) in 3 different arenas and under 2 types of stimuli.
A glimpse of the data:
Species type_arena type_of_stimuli microhabitat mean_distance se_distance ... |
I'm trying specify an econometric growth model in a cross-section of 5000 municipalities (counties) observed at time $t=1990, 2000, 2010$. I want to see if there are some county characteristics that affect population growth, so I was thinking in something like this:
$$
\newcommand{\county}{{\rm county}}
\ln\bigg(\frac{... |
I'm looking for advice on how best to go about setting an informative prior for the Bayesian Lasso and BART (I'm applying these in R using the rjags and bartMachine packages)
I have 3 proteomics datasets, each measuring the same 123 proteins for patients and controls. I want to train a Bayesian model on dataset 2, usin... |
I have 17 size distributions for different coral species, and I would like to be able to compare these distributions in one plot. However, the distributions are very different, so when I naively tried to overlay their density plots, many of the distributions were so small compared to the largest one that they were just... |
This question relates to the Nelson rules for statistical process control.
Does rule 2 - nine points in a row on the same side of the mean - apply if one or two of those points are very narrowly on that side of the mean?
I have a series where there are nine points below the mean, but two of them are below by very sma... |
I have a question regarding support vector regression, best summarized by the chart below on simulated data of a linear function with a bit of noise. In essence, why does increasing epsilon rotate the fitted line away from the outlier?
Note: the simulated data is the red dots. Green line is a naive lm fit, blue lines a... |
I have a set of numeric data that is indexed by Position, from 1 to n. This is serial data in the sense that the data is ordered by the position, which corresponds to a physical structure rather than a temporal one. My question is, how do I infer the spatial scale at which the data points correlate with one another? Da... |
"If a machine can read and process written texts, manuscripts, journal articles and books, it would be able to predict results of new scientific experiments and construct new scientific theories."
What are the main problems with the above statement? I can think of the following categories, but I believe the list is mo... |
I have two sets of time series, let's call them $C$ and $D$. Assume that $C$ ($D$) has $n$ ($m$) samples (each sample is a time-series of length $T$). I want to assess if there are periods of time when $C$ and $D$ are significantly different.
As a concrete example I have plotted the average time series of $C$ in solid ... |
I am executing the code given at Sentiment analysis with machine learning in R.
While executing this code, I am trying to examine the contents of the object 'classifier'. The conditional probability for 'about' was given in the following format -
about
as.factor(tweets[1:10, 2]... |
I'm familiar with the mathematic definitions of these three quantities, but having a hard time to really understand how to use them when actually dealing with discrete samples from a realization of a BM. For example, why would we need three quantities to describe the degree of uncertainty in a process? If we take finit... |
am writing a seminar on estimation of population ratio using delta method and am having problem on the literature review.
i have written the introduction but need help on on how to use delta method to estimate the population ratio and the methodology
|
ML engineers usually train 50-100 times a network and take the best model among those. I am wondering how many times a CNN should be trained as training a CNN is costly and time-consuming too.
|
I have been looking at the GARCH chapter in Brooks book and he shows how to transform a GARCH(1,1) into a an ARMA(1,1).Basically starting from:
$$h_t=w+\beta h_{t-1}+\alpha \varepsilon^2_{t-1} $$ he suggests defining $v_t =\varepsilon^2_t - h_t$ $\rightarrow$ $h_t=\varepsilon^2_t-v_t$ and replacing in the above equati... |
I calculated log likelihoods for two times series models, a GARCH and a TGARCH. The GARCH model is nested within the TGARCH, and their respective log-likelihoods are:
\begin{aligned}
\text{LL_GARCH} \ \ \ &= 2.92 \\
\text{LL_TGARCH} &= 2.96 \\
\end{aligned}
I calculated $-2\ln(2.92 / 2.96)$ to get a value of $.0272$,... |
I have two stationary time series and want to know if the mean values are different. One practical application would be there are two motors and I want to know which one needs less energy in average - or I have one motor and make some maintenance work and want to know if the average energy consumption decreased afterwa... |
I've got discrete data (highest education level achieved to be exact, where each level has an associated integer, from 1 to 7, with a higher number corresponding to a higher education level). The two peaks I'm expecting (for my population) is at A-levels and having completed a degree. Between them is having started but... |
I am tasked to develop an anomaly detection system for data organised in many 1D (can be more than 1D if I choose, but I think that will complicate the problem even more) daily time series. The series are largely unseasonal, but they may have trends. I started with two simplest implementations, namely exponential time-... |
So I have a time series which I cannot share with you all, but I have a few questions about the proper proceedings to fit the correct ARIMA model for my data.
I have successfully written a loop to determine what degree of differencing needs to be done (parameter d in I(d))
Question:
To determine p and q, I am looking a... |
In my work, I am comparing "predicted" values to "theoretically true" values. To calculate one predicted value, I take some $N_{R_i}$ samples from an area in space, $R_i$ (i.e. the samples are from different locations in a region). I do some calculations on the samples to calculate a predicted value for each sample. Th... |
Looking for a bit of help on how to construct an equation for a linear model when there's a covariate involved.
I've been doing a simple lab assay where an absorbance measurement of an indicator can be compared back to a calibration curve of known concentrations of a reaction product to determine the concentration in t... |
My expected and observed tables look pretty similar, so I wouldn't have expected to receive a p value of 0.0. I guess one potential problem could be that a few of my expected and received numbers are less than 5. Some are even less than 1.
Could this be causing the 0.0 p value, and if not, what else should I be looking... |
I know about the benefits of regularization when building predictive models (bias vs. variance, preventing overfitting). But, I'm wondering if it is a good idea to also do regularization (lasso, ridge, elastic net) when the main purpose of the regression model is inference on the coefficients (seeing which predictors ... |
Suppose I have a random variable $X \sim Unif(0.61, 0.79)$ and now I'm interested in the mean and variance of $Y \sim \log X$. I can easily calculate the mean using the equation,
$$
E(g(X)) = \int f_X(x)g(x)\,dx
$$
where $f_X$ is the pdf of $X$. For my case this boils down to,
$$
E(g(X))=\dfrac{1}{0.79-0.61} \Big[F(0... |
Supposed I have $n$ coins and I'm interested in finding the $k < n$ coins which have the highest odds of coming up heads and I want to know $p(heads)$ for each of these $k$ coins.
Assume that I'm going to select the top $k$ coins using the maximum likelihood estimate of $p(heads)$ on a finite sample of observations (so... |
I have this time series (utilization of app by day of an user)
And this fourier transform of the above time series
How can I extract one number that express the mean frequency of this time series?
It would be related to the weighted mean, or the harmonic mean somehow?
|
Imagine a simulation experiment in which the output is n total numbers, where k of them are sampled from an exponential random variable with rate a and n-k are sampled from an exponential random variable with rate b. The constraints are that 0 < a ≤ b and 0 ≤ k ≤ n, but a, b, and k are all unknown. Further, because of ... |
I have a random sample from population. I want to prove/un-prove that median/mean value of top x% of random sample represents the median/mean value of top x% of population. I have two questions:
How to decide the sample size to test above.
What are the relevant statistical tests that can help me to conclude this.
|
Having read this question and this link, I already know that model.matrix can help convert data frame with factors into a design matrix.
My question is if you pass this model.matrix into glmnet or cv.glmnet function with the argument standardize set to TRUE, it still scales those dummy variable columns, am I correct ?... |
How does Euclidean-norm in K-means cause it to have linear decision boundaries?
The Euclidean-norm is a non-linear measure between two points, then how does it make the boundaries till linear?
|
I'm calculating S
Where
S = (A - B)/A
A = 778 ± 30 (value ± percent error)
B = 388 ± 12 (value ± percent error)
I want to report the error in S as S ± error.
I have checked several online resources. I found many equations of how the error of propagation is derived but I couldn't find a specific equation that help me... |
I'm experimenting with a number of models for a binary classification problem. To evaluate the performance of each model, I've used 10x repeated 10-fold cross validation to calculate the PR AUC (Area Under the Precision-Recall Curve), and a number of other metrics.
My professor would like me to report the confidence i... |
Let $X$ be a random variables with continuou cdf $F$ in the support $[a,b]$. Let $Y$ be another r.v. with cdf $G$, which is continuous in $[a,b)$ and has an atom at $b$. $X$ and $Y$ are independent. We also have $E[X]=E[Y]$ and second order stochastic dominance
$$\int_a^k F(t)\,dt \leq \int_a^k G(t)\,dt, \ \ \ a \l... |
I'm running a simulation where, for every iteration $i$, I get a detection probabilities $P_i$. Because of the law of total expectation, I think the overall detection probability (i.e. marginalizing over all iterations) is just the average, $\langle P_i \rangle = 1/N \sum P_i$. But how do I calculate error-bars (lets... |
I am new to neural networks can any one explain what is the intitutive thought of dot product and why it is used in neural network
|
For my thesis I would like to compare different supervised machine learning algorithms based on their AUC score. My supervisor pointed out to also report the confidence intervals (CI) of the AUC scores. He told me that there is an article in which they calculate the CI based on the positive and negative samples in the ... |
Many of the Bayesian hierarchical models that I am studying use a Markov chain as the model. These hierarchical models use different MCMC techniques to sample low-level and high-level parameters. My question is: does using different MCMC techniques for different parameters affect the ergodicity/convergence of the Marko... |
i'm currently working on a mutlilevel anaylsis for my assignment. I am new to R and hope that someone can help me out. I did a survey to collect the data I need. I have 184 participants, where approximately 59 are men and 125 women. It has to be a multilevel analysis because its a diary study (it happens that one ID ap... |
So I have ordinal data that is marked as strongly agree, agree, neither agree nor disagree, disagree and strongly disagree and two different groups which I am comparing. I have used a mann whitney to see if the groups are significantly different. Now I would like to see if this difference is still significant when adju... |
I'm looking at a metadataset of studies of the yields of genetically modified crops. For each study, I have one or more reported findings (increases in yield due to genetic modification), and some study-level metadata: crop species (one of maize, cotton, or soybeans), country type (developed or developing), GM event ... |
I have this model:
$a_i=mod(\lfloor i\cdot T+Normal(0,\sigma_a)\rfloor,Q)$
$b_i=mod(\lfloor a_i+D+Normal(0,\sigma_b)\rfloor,Q)$
with
$i=1..N$
$N\in\mathbb{N}$
$Q\in\mathbb{N}$
$T\in\mathbb{R}, T\gt0$
$D\in\mathbb{R}, D\gt0$
$D\gt T$
$Normal(\mu,\sigma)$ is a random number drawn from a Normal distribution with mean $\mu... |
I want to get the P-value of two randomly distributed observations x and y, for example :
> set.seed(0)
> x <- rnorm(1000, 3, 2)
> y <- rnorm(2000, 4, 3)
or:
> set.seed(0)
> x <- rexp(50, 10)
> y <- rexp(100, 11)
let's say that T is my test-statistic defined as mean(x) - mean(y) = 0 (this is H0), the P-value is then ... |
I am trying to build a Convolutional Neural Network (CNN) from scratch to learn its basics. However, I haven't found any information about how the weights from the kernels get updated in each iteration using backpropagation.
The only explanation I found on the internet was this one but I'm not sure if that is right or ... |
I have stumbled upon the term inlier in the LOF measure (Local Outlier Factor), I am familiar with the term of outliers (well basically liers - instances which doesn't behave as the rest of the instances).
What does 'Inliers' mean in the context of anomaly detection? and how it is related to (different from) outliers?... |
Normally in machine learning we use derivatives in-order to optimize a cost function . But I saw monte carlo optimization method which uses integrals in-order to optimize specially in reinforcement learning problems and some sampling problems ?
What is the difference of these two types ?
|
I am trying to understand how to test for the goodness of fit in GLM regression. I am using an example from the book Davison and Hinkley (1997). In R, they fit the following model:
data(cane) # this dataset is available by default
cane.glm <- glm(y ~ block+var,family=binomial,data=cane)
summary(cane.glm)
Then they wri... |
I'm stuck with an assignment, hope you guys can help.
Question:
Show, that there exist random variables $X,Y,X',Y'$ on a Probability Space $(\Omega, \mathscr{F},P)$, so that $X$ and $Y$ are not independent, $X'$ and $Y'$ are independent and $P_X = P_{X'}$, $P_Y = P_{Y'}$, $P_{X+Y} = P_{X'+Y'}$.
It's the second part of ... |
i want to calculate the p-value of a statistics test using R. I'm aware of the existing function t.test(x) but what i want to do is to determine the p value through monte carlo simulations. Therefore i defined this code:
mean.test <- function(x, y, B=10000,
alternative=c("two.sided","less","greater"))
{
p.value <- 0
a... |
Suppose that $Z \sim \mathrm{Bern}(p)$ and $Y_1,Y_2 \sim \mathcal{N}(0,1)$ be Gaussian random variables and let all of them be independent. Suppose I am given samples from the following random variable $X$ defined as
$$
X= Z + \frac{Y_1}{ Y_2}.
$$
Notice that $X$ is a Cauchy centred at $1$ if $Z=1$ and $0$ if $Z=0$. So... |
I'm preparing Dell EMC Associate data science certificate. The following is one of the mock questions and I'm having problem to calculate it by hand and need help. The correct answer is $Y=1$, $probability = 4/54$ and $Y=0$, $probability = 1/54$
However, I'm not able to get correct answer.
Consider the training data s... |
MLE (maximum likelihood estimation) can be defined mathematically for discrete or continuous variables. But there is a technical specificity about variables being neither discrete nor continuous. Instead they are a mixture of discrete and continuous. More precisely:
Assume you have a model with a parameter $\theta$ and... |
In the 2-layer neural network with cross entropy loss for softmax hidden layer, why do I get 2 different answers when applying chain rule in 2 different ways? Please help me correct method#2; I am going crazy:
Given:
$$
C = \sum_iy_ilog(\hat{y_i})
$$
$$
\hat{y} = softmax(z)
$$
$$
z=xW+b
$$
Method # 1 - Gives correct, t... |
I have a Twitter dataset that has both the tweets themselves, but also metadata about the user as number of tweets, date of creation, and other numerical values.
How can I make predictions based on the whole information instead of text OR numbers?
What I did.. but I´m not sure if it´s ok is the following:
Made a "bag ... |
I'm new to Cross Validate, so sorry if I make any mistakes in my question. Any correction/advice would be welcome. My doubt is a rather basic one, but I'm strugling with this idea.
Supose I have some set of data and that I estimate a univariate nonparametric density estimation over some empirical variable Z, returning... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.