instruction
stringlengths
9
38.7k
I am working with a dataset of diseased vs non-diseased patients. I'm looking for a cut-off value for determining the status of a new patient. This is intended for lab technicians and MDs to allow for quick diagnosis. It's got to be practical, so please spare me from discussing whether it's the right thing to do—I alre...
I want to build a content based recommender in a restricted environment regarding cpu power and memory (to be specific: a mobile device, but it is not acceptable to build the recommender on a remote server). Which algorithm or heuristic is feasible in such a situation ?
I often use tools like the one on this webpage to determine if the response rate between two mail campaigns are statistically significant, but I'd like to know more about what's happening under the hood. I have a basic understanding of simple statistical concepts (SD, SE, Z-scores, etc), so can you explain to me how to...
I try to implement PCA in MATLAB using the Fisher iris data. I am having a problem finding out the percentage of variance in Principal Component Analysis. Running this code load fisheriris X = bsxfun(@minus, meas, mean(meas)); [pc, ~, latent] = pca(X) cumsum(latent)/sum(latent) I get the following result: pc = ...
acf(c(0,1,2,3,4,5),plot=FALSE) Autocorrelations of series ‘c(0, 1, 2, 3, 4, 5)’, by lag 0 1 2 3 4 5 1.000 0.500 0.057 -0.271 -0.429 -0.357 Why does the ACF output becomes negative as lag increases? My understanding is that no matter what the lag is, the series is in general increas...
Let me give you an example to show what i am trying to. Let's say 50 patients started a cure for a disease and it took 2 months. So, I want to compare the first month's tumor sizes to the second month's tumor sizes for each of 50 patients. And i should be able to tell the patients tumor sizes are stable/increase/decrea...
From an urn containing 1 ball each of n different colours, a ball is drawn, its colour noted and then it is returned to the urn along with k balls of the same colour. What is the distribution of the number of balls of each colour in a multicolour urn (after a certain number of draws)? Additionally, what is the distribu...
I'm sure this question has been asked many times over applied in different ways so perhaps there is a duplicate question that can simply be pointed to. Let's say there is a bag with 10 numbers in it (1 through 10). Assume that after each time a number is drawn, that number is put back into the bag so there are always ...
If $X_1, ... , X_n$ be iid exponential with mean $1/\lambda$. Let $S_n = X_1 + ... + X_n$. a) Show that $S_n$ is $\Gamma(n, 1/\lambda)$. Each $X_i$ is $\Gamma(1, 1/\lambda)$ by the definition of an exponential distribution. We can look at the mgf of $S_n$. $$M(t) = E(e^{t \sum X_i}) = E(e^{tX_1})...E(e^{tX_n}) = (\fr...
I have two distributions: A, and B. Each distribution is filled with the numbers 1.0-10.0. These distributions are NOT simple functions, like the gaussian, but are merely empirical counts. Essentially, I want to create a model for the probability that any given number is A. You can imagine that this is easy using hist...
I have multiple datasets that I am attempting to use principal component analysis (PCA) on in order to infer the underlying structure of the data. I'm attempting to predict growth increment of conifers (the response which apparently needed to be cube root transformed for my original linear models). My predictor varia...
Why would exploratory data analysis be important to undertake before null-hypothesis tests?
I want to perform linear regression using the following command: lm(clinicVisits ~ clinicRank) where clinicVisits is the number of visits to a clinic, and clinicRank is the rank of the clinic. clinicVisits is an integer in the range of 1–200K, and clinicRank is a continuous variable and has a range of 1.0–150.0 where...
In a nutshell, what would be the main differences between practical and statistical significance? What would be the relative importance of each in drawing scientific inferences, for example?
I have two distributions $F$ and $G$ that I conjecture to be identical, mathematically. Essentially, before investing time in mathematically proving that $F$ and $G$ are equal, I'd like to sanity check it by doing a simulation experiment. So, given that I can easily simulate $X_i \sim F$ and $Y_i \sim G$, I'd like som...
Could anyone please help with data analysis. Briefly, I am studying how the population of a bacteria changes at different points (port 1 to port 10) within a biofilter over the course of 30 days(like a time series) For example, if data looks like below,: Samples:........Day 0............Day 15......Day 30 Port 1........
A latent variable model involving a binomial observed variable $Y$ can be constructed such that $Y$ is related to the latent variable $Y^*$ via $ Y = \begin{cases} 0, & \mbox{if }Y^*>0 \\ 1, & \mbox{if }Y^*<0. \end{cases} $ The latent variable $Y^*$ is then related to a set of regr...
I cannot understand how step 2 transformed to step 3, anybody help me please ???
If the Kullback-Leibler distance between f and g is zero then f = g almost surely. I am really having trouble solving this. It should be simple!
Let's say I have measurements $Y$ which are all positive, and the distribution seems to be somewhat skewed. I'm modelling $Y$ in GLM framework. Now I could set my GLM using different distributional assumptions for $Y$, i.e. I could set family as normal or gamma, or I could log-transform $Y$ and use normal distribution ...
I have two data sets obtained from two different kind of chemical analysis: GC-MS and IR. Both the chemical analysis were performed using the same samples. My aim is to know if there are some relations between GC-MS data and IR data. The data sets are two 'fat' matrix where: number of columns (objects) > number of row...
I am trying to verify the expression for Omitted Variable Bias (OVB) as given e.g. in Wooldridge: $\tilde{\beta_1} = \hat{\beta_1} + \hat{\beta_2} \cdot \tilde{\delta_1}$, where $\tilde{\delta_1}$ is the estimated slope of the regression of $x_2$ on $x_1$. Choosing the housing price data (hprice1.gdt) from Wooldridge a...
I am working on a dataset with with 100 or so X variables and the effects on a single Y. As with previous threads this contains a lot of fairly significant correlations. I considered using PCA but did not really want to loose the original variables by creating linear combinations (factors). X variables also in this cas...
I have a time series, which is produced from a sensor. This sensor detect sound in the real World. My aim is to separate sounds with different frequencies from this time series. With which technique can I do this job?
I have a set of data which consists of one independent variable (2 groups) and one dependent variable. I successfully checked for normality (each group separately) and conducted a t-test. Now I want to check for robustness by changing the cut-off between groups. Do I have to also do another normality check first with t...
Let $X_1, ... , X_n$ be iid normally distributed random variables $N(\mu, \sigma^2)$, $\mu \in \Bbb{R}$, $ \sigma^2 > 0$. a) Design a uniformly most powerful test with significance level $\alpha$ for testing $H_0: \sigma^2 = \sigma^2_0$ vs $H_1: \sigma^2 > \sigma^2_0$. b) Give a formula for the power of the test. Let...
I am doing some model validation and calibration of training data fit to use with glm and gam models, and I am having a problem with the ecalp function. Does anyone had this problem before? Any solution Model_calibration_table_TRAIN<-data.frame() DATA2<-data.frame(TRAIN$Latitude, TRAIN$SPECIES, TRAIN$GLM_pred, TRAIN$G...
Firstly, I am applying a 2sls model in my paper: Corruption= o+1bq+2da+3lawandorder+4unemprate+5politicalregime+6gdpgrowthrate+7govermentstability Log (FDI) =o+1corr+2buerucraticquality+3lawandorder+4da+5investmentprofile +6gdpgrowthrate+7populationgrowth+8inflation+9openess+10politicalterrorscale. As a part of time ...
I have built a neural network classification model and each attribute is z-normalized when building the model by the following X=(x-training set sample mean)/training set sample deviation. If I now have new instances that I want to classify, how should I normalize the row data? Doing the same transformation by using t...
Consider a set of $M$ multidimensional observations $X=\{x_i\}_{i=1..M}$ for $x_i\in\mathbb{R}^N$, and define $c_{ij}$ to be the Pearson correlation coefficient between $x_i$ and $x_j$. Is there a simple expression or useful approximation for the mean pairwise Pearson correlation $C=\frac{1}{M^2}\sum_{ij}c_{ij}$? Alte...
I'm currently working through a machine learning textbook and just read a bit about k-fold cross validation, and I am wondering the following. I want to estimate a parameter, e.g. a penalty parameter for a penalized likelihood method. In order to do this, I can do two different things: I sample the training data so th...
In R's survival and rms packages, Kaplan-Meier (Surv and survift) and Cox Proportional Hazards (cph) are implemented. I have been experimenting with these two by adding one-by-one the predictors I have in my dataset. These are not time-dependent meaning for one record, there is only one observation for these predictors...
Apologies for the noob question. After a day on Google and Wikipedia I still can't quite work out what to do. So here I am. A small private healthcare clinic in the UK has asked me to look at their patient appointments data. Patients hear about the clinic from various sources (Google, word-of-mouth, leaflets, etc etc)....
Can a moving average value result be higher than the highest constituent value on which the moving average is based? I realize that somewhere here there maybe an answer, but I have been unable to find one specific to this question. I do not believe that a "moving average value result" based on a set of values over the...
I have frequencies for variable with answers Yes and NO for two time points (at baseline and after treatment). The frequencies are recorded for two treatments. I would like to compare the change from baseline between these two treatments. How can I calculate the sample size? I have the following frequencies for “Yes”:...
I have done some processing to my original data. Before the processing I had a nice histogram with a bell shape. Now it still looks like a bell shape to me if I would slice off the first half and stick it to the end. But I'm not quite sure what happened here. Is this still a normal distribution? Or else, what kind of d...
The data was collected using a logarithmic scale: scores (explanatory variable) are collected with values from 0-5. A score of 3 is 10x the value of a score of 2. I wasn't sure if using either the log scale (0-5) or a "linearalized" scale (0-100000), when performing corr. or ANOVA, was correct, so I tried both. Unsurpr...
I am currently trying to perform classification on a set of data. I have 19 category_1 observations and 15 category_2 observations. What is the best way to sample from this dataset to train and test my classifier, or are there simply not enough observations?
I need an estimate of the average value $\bar{X}$ of the data within the shaded area of this graph, and its corresponding confidence interval. In the ideal case, the data would reflect some minor oscillations. I'm tempted to ignore this, and use the $CLT$ so the standard error would be $SE=\frac{S}{\sqrt{N}}$, where ...
A company controls its employees' access to a restricted area with magnetic cards and passwords. Each of the $k$ employees received an anonymous card and chose an $n$-digit numerical password to associate to their card. Suppose the cards were shuffled and randomly redistributed, and let $A$ be an employee. a) What is t...
SurveyMonkey has steps and a chart for you to figure out what sample size you need for a given margin of error or confidence interval, based on your population size. SurveyMonkey sample size Does this chart simply ignore the fact that you will not get a random sample, since you only get the people who bother to respond...
My study is a clinical trial with 2 treatment groups measured over 4 time points...with the outcomes assessed being blood levels. So my independent variables are "treatment" (2 groups) and "time" (4 time points - with time being a within-subjects factor)...and my dependent variable is "blood levels". So...I'm doing a r...
Trace metals in drinking water affect the flavor of the water, and unusually high concentration can pose a health hazard. The following Table shows trace-metal concentrations (zinc, in mg/L) for both surface water and bottom water at six different river locations. Our aim is to see if surface water concentration (x) is...
i have a set of data that is generated by expensive computational model evaluations, on a total data set of 10000 samples in 40 dimensions. This sample data set is composed of different data sets, originating partly from random runs, latin hypercube DOE, radial design DOE, linear parameter studies, and a large part is...
I have a sorted set of real numbers $x_{1}...x_{n}$ and would like to find $y$ to minimize the median of $(x_{i}-y)^{2}$. Is there an algorithm and a correctness proof for it? I understand I need to look at segments of the type $[x_{i},x_{i+n/2}]$ and check for the shortest one. But how can I prove that?
I'd really appreciate a point in the right direction of what models I should study, and the best modelling approach to evaluate a sentencing policy. I certainly am not asking for a full solution, but it would save me a huge amount of time if I knew where to start. I have experience of time series models with economic t...
Suppose: $u_t \sim N(0,1) \ iid.$, $X_t = g(X_{t-1}) \cdot u_t$ whereas $g(X)$ can be any deterministic function. Is this sufficient to define a martingale? So does it hold: $E(X_t|X_{t-1}, \ldots , X_1) = E(g(X_{t-1}) \cdot u_t|X_{t-1}, \ldots , X_1) =^{\ pi.} E(g(X_{t-1})|X_{t-1}, \ldots , X_1) \cdot E(u_t|X_{t-1}, \...
I need to learn a Bayesian Network Structure from a dataset. I read the book titled "Learning Bayesian Networks" written Neapolitan and Richard but I have no clear idea. According to the book from the data i can: 1) Create all the DAG Pattern, where a DAG Pattern is an equivalence class of DAG (in the respect of Markov...
Causal diagrams are extremely good tools for discussing research plans for multivariate modeling between statisticians and non-statisticians. It's easy after some deliberation to decide which variables should go into a model based on their classification as confounders, precision variables. At least this applies insofa...
Question The test scores of three groups of people are saved as separate vectors in R. set.seed(1) group1 <- rnorm(100, mean = 75, sd = 10) group2 <- rnorm(100, mean = 85, sd = 10) group3 <- rnorm(100, mean = 95, sd = 10) I want to know if there is a significant difference in the medians between these groups. I know t...
Using a simple ordinary least squares regression: $ Y = \alpha + \beta \times X$ we can estimate the dependent variable $Y$ through the regression parameters of $\alpha \text{ and } \beta$. In what way is the estimated $Y$ "better" than the original $Y$?
The UNDP have reported that the millennium goal of halving the percentage of people living below 1 USD (PPP) a day has been met (compared to 1990). I was looking at the data for that indicator and there were a lot of missing values. Some of the countries doesn't even have values for the first ten years (1990–2000). I w...
What is the best way to know the best selection method for our logistic regression model ? Forward Selection Backward Elimination Step-wise Selection Full Model. I am running logistic regression in SAS EG. I have tried running each of them for the data that we have but for each method I get different results. Some o...
I have an abundance of small data sets with right-censored data. There are different groups in each data set and I'd like to get confidence intervals for the regression parameters. Each data set has 3-6 replicates per group and the percent censoring is usually small (say 5%) but not always. I can't see to find much in...
Background: My organization currently compares its workforce diversity statistics (ex. % persons with disabilities, % women, % veterans) to the total labor force availability for those groups based on the American Community Survey (a surveying project by the US Census Bureau). This is an inaccurate benchmark, because ...
I'm used to thinking about meta-analyses in terms of evaluating the impact of an IV on an outcome of interest (ex: relationship between a teacher's level of self-confidence and student outcomes), and I'm used to calculating r (or using t-test, F or p-values, etc to calculate g or d and then converting that to r). Howe...
I am trying to do statistical analysis on data where my x axis is categorical. I have five different treatment groups on the x axis. My y axis is continuous (mRNA levels of a certain gene responding to the different treatment groups). I was planning on using one-way ANOVA and post-hoc testing. However, I have a lot of...
I have several histograms which I would like to compare to one reference histogram to see which one is the most similar to the reference in terms of the shape of the distribution. Kologorov-Smirnov gives unhelpful answers as often the largest difference in y-value is not indicative of worst fit. From inspection-by-eye...
This may be a very simple question, but I am not sure about my logic. I have a standard point hypothesis testing scenario, where I collect a sequence of $n$ independent observations $\{x_1,\ldots,x_n\}$ and attempt to classify them as either generated from the distribution $P(x_1,\ldots,x_n;\theta=\theta_0)$ or $P(x_1,...
I have a set of 40 subjects that performed a task while the variables of interest were being recorded at regular time intervals (0, 1, 2,.... 10 seconds). The task was performed twice, once with and once without the aid of computer feedback. For most of the variables, the distribution across subjects at each time poin...
I am running a PCA for quality in a water resource. I have 15 original variables. Running the PCA using Minitab, it turned out that the first PC is responsible for 99.7% of the variation. Looking at the eigenvectors, all the original values have almost the same correlation value with PC1 (about 0.25). What does that me...
The question is from a typical example for E-M algorithm. Let's say $(y_1,y_2,y_3)$ $\sim$ $\text{multinomial}(n;p_1,p_2,p_3)$, where $p_1+p_2+p_3=1$. How can we derive the conditional distribution of $y_2$ given $y_2+y_3=n$? The answer is $y_2|y_2+y_3 \sim \text{binomial}(n, p_2/(p_2+p_3)$). Any idea on how to deri...
I do not know why testing homogeneity of variance is so important. What are the examples that require homogeneity of variance?
I have a binary outcome (success \ failure). I have 20 subjects, half of them gave 2 samples, the others just one, so I have 30 data points. All data points without any exceptions were success (1). So my point estimate of the success rate is clearly 100%. Now I want to calculate a CI for the success rate, mainly to see...
I have 150 images of handwritten signs (like cross, star, circle, tridents), i extracted from them the number of branched point, ent-point and "close" a s feaetures (Having said that features are not enough): if they are a close figure like a circle or an open figure like a cross. Classification: Cross: 1 branched po...
Can someone explain to me what a cubic spline is, and how we could use it to interpolate a function? I have searched on the internet but I would like a simple explanation.
I think have a misconception about statistical significance. For example, I have two treatments A and B. Mean effect of A is -105 with 95%CI:(-168,-42) and for B -88 with 95%CI: (-146, -29). Which of the results is more statistically significant then? When can we conclude in general that result is more statistically ...
I have a reasonable understanding of the technique to detect similar documents consisting in first computing their minhash signatures (from their shingles, or n-grams), and then use an LSH-based algorithm to cluster them efficiently (i.e. avoid the quadratic complexity which would entail a naive pairwise exhaustive sea...
I major in science, and my knowledge of statistics is rather superficial. Problem I had to find a data set and analyze it to the best of my ability as an assignement for my statistics course. This is no longer an assignment, I just need help in interpreting why I did my analysis badly and what I should have done instea...
In the Classical Regression Model i.e. $\big(E(y|x)=\alpha +\beta x$ and $Var(y|x)=\sigma^2\big)$ with only two coefficients for intercept $\alpha$ and slope $\beta$ of a dummy variable $x$, we can interpret $\alpha$ as the the mean of values for which $x=0$ and $\beta$ as the difference of the means of the data where ...
Given $K$ triplets $t_k:=(a_k^{(1)},a_k^{(2)},a_k^{(3)}) \in \mathbb{R}^3, k=1,...,K$ and the triplet to test against them $t=(a^{(1)},a^{(2)},a^{(3)}) \in \mathbb{R}^3$. How can one test whether $t$ differs significantly from the $K$ other triplets, in the sense that $t$ has "little probability to occur in the distri...
This is an R question. I have $n$ observations of the variable $y$, with each observation, $i$, weighted by $w(i)$. Each $w(i)$ weight falls between zero and 1, with the sum of the weights, $m<n$. I am testing whether the weighted mean of $y$ equals zero, with $std(mean)$ denoting the weighted sample standard deviati...
My textbook puts this in a sidebox with the heading "Note" and doesn't explain why. Could you tell me why this statement holds? $P(a < Z < b) = P(a \leq Z < b) = P(a < Z \leq b) = P(a \leq Z \leq b)$
I have 400 responses to a 20 item questionnaire which purports to measure an attitudinal constuct in medical students. The instrument was validated in the US for a single year of medical students and the published data is very "clean"- all ritc values >0.3,alpha 0.84, PCA with a stable four factor structure etc. In my ...
I got a little confused with the squares and the sums. As far as I know, the variance or total sum of squares (TSS) is smth like $\sum_{i}^{n} (x_i - \bar x)^2$ and the sum of squares within (SSW) is $\sum_{j}^{K} \sum_{i}^{n} (x_i - c_j)^2 \qquad i \in C_j$ where k ist the number of clusters and that $TSS = SSW + SSB$...
The following is a worked example found in past papers of my university, but haven't been able to figure out to solve it (I have the answer, but do not understand how to get there). Any help in enlightening me would be much appreciated. A store sells on average four computers a day. Once every fourteen days the store's...
I am trying to compare differences in sites and years related to the environmental variables. For example, is there a significant difference in chlorophyll concentration (chlo) over the years (from 2002-08)? Or is there a difference in chlorophyll concentration between Seychelles, Indonesia and Brazil? I have started t...
What advantage does creating the Laplacian Matrix from the Similarity Matrix bring us in spectral clustering? Why do we create it? Here is the algorithm: A Tutorial on Spectral Clustering (pp.5-6)
When you run a regression on ice cream sales with predictor shark attacks, you find a significant coefficient. But that is because there is a confounding variable temperature. But how do you correct for this confounder? In case you also add temperature to the model, you have two correlated predictors and the multicolli...
I have a time series which is daily data for workdays only. There is an almost obvious seasonality comparing the plot of the raw data that appears at the end of each month. However, there are not the same number of workdays for every month. Some times a month has 20 or 21 workdays. Do you have any idea how to treat the...
How can I decide which cross validation method is appropriate for my problem and data type? For instance, choosing among leave-one-out, or K-fold (and which K is appropriate?). Most of my searches end up on selection of model rather than selection of cross validation method.
I have a dataset that contains: the counts of successes, $Y_i$ the length of observation, $\text{length}_i$ few predictors, $X_1, X_2, \text{etc}$ Since the counts are observed at different lengths I need a rate model. For the Poisson regression we achieve this by writing: $\log(\mu_i /\text{length}_i) = \beta_0 + \b...
I just read in a rather well-respected (popular) science magazine (the German PM, 02/2013, p.36) about an interesting experiment (without a source, unfortunately). It caught my attention because intuitively I doubted the significance of the result, but the information provided was sufficient for reproducing the statist...
I'm working with the Emotiv EEG headset. My goal is to collect the signal from its 14 sensors while a subject who is wearing it performs a certain task, and use a machine learning model (a neural network in the present case) to identify certain patterns of interest in the signal from the device. I would like to scale t...
I'd like to know ahead of time if my training will take 8 hours, 8 days or 8 weeks. (The 8 was an arbitrary number I chose obviously). Is there a reliable way to estimate the time it will take? Can I extrapolate the time it takes to train 200,000 as roughly double the time it takes to train 100,000? It would be helpfu...
In the text book "New Comprehensive Mathematics for O Level" by Greer (1983), I see averaged deviation calculated like this: Sum up absolute differences between single values and the mean. Then get its average. Througout the chapter the term mean deviation is used. But I've recently seen several references that u...
I'm teaching myself some statistics for fun and I have some confusion regarding sufficient statistics. I'll write out my confusions in list format: If a distribution has $n$ parameters then will it have $n$ sufficient statistics? Is there any sort of direct correspondence between the sufficient statistics and the par...
In my current project I need to build a model returning a vector of actions for each observation. I need a suggestion which statistical technique is used in general in such cases. In a project, I have a dataset of about 100k observations, 7 vars (quantitative, qualitative). The variables describe a condition of a perso...
My wife is a server at a restaurant and I've been tracking her tips over the last 9-10 months. The domain of her set is $[\$75,\$702]$ with a mean of \$236.7 and a standard deviation of \$106.64. Because of the small amount of data (206 total days of tips) in comparison to the number of possibilities she could make, ...
I'm new to statistics. What type of model should be used to predict a basketball team's winning percentage? I am currently using a multiple linear model, but the residual vs. predicted plot shows my data points clustered in a circle. I standardized my explanatory variables since they were either percentages or totals...
This question is a follow-up to this discussion: https://math.stackexchange.com/questions/634914/distribution-of-likelihood-ratio-in-a-test-on-the-unknown-variance-of-a-normal-s/635371?noredirect=1#comment1339933_635371 Could someone audit the reasoning below? I am trying to derive the distribution of the likelihood ra...
In R package "psychometrics" an estimate of SE of R squared of sersq <- sqrt((4*rsq*(1-rsq)^2*(n-k-1)^2)/((n^2-1)*(n+3))) with n sample size, and k number of parameters if sample size greater than 60 is found. Does anyone have a formula for smaller sample size or an exact formula? I have been through sos - but only...
I want to study the classroom and the school effect/result on the pupil's success (or not) at school. I also want to know the effect of the age, the gender (of the pupils) and if the pupils have or not repeated 1 year school on the pupil's success (or not). The pupil's variables are : - the age, (11 or 12) - the gende...
I have a set datasets with sequential measurements. Since the size of these sets is quite big (>80000 measurements) I decided to simplify them by applying a Simple Moving Average (SMA) and selecting the data every n measurements. Each set belongs to a patient and we want to see the effect of a certain lifestyle on the ...
Suppose you have a large set of estimates (predictors) presumably created with a generalized linear model (GLM) with gamma error and an inverse link (possibly a log link). You know that there are 3 variables used in the model: state, type, and territory (zip code groups). You do not know the betas (i.e., estimated co...
I'm having some trouble interpretting whether the model is a good fit. Below is an extract from some output from R. (Dispersion parameter for binomial family taken to be 1) Null deviance: 3946.2 on 2999 degrees of freedom Residual deviance: 3924.3 on 2991 degrees of freedom AIC: 3942.3 Number of Fisher Scorin...
Whilst this may be a fundamental and basic question, I need to pin down a solid understanding of exactly what in-sample forecasting is and entails. I understand out-of-sample as taking a period of training data and forecasting future values based on the regression of data from that period. However, in-sample seems to b...
I have two doubt, one about theory and one about practical problem. First i have not full understand how to work a bayesian network with continuous values. I have learn that i can approximate P(A) (the probability of node A) with a Gaussian Distribution. But i have a dataset, mean and variance of the Gaussian Distrib...
The probability density function I have is as following: Now, I want to rewrite the cumulative probability function bellow into R. The variables ($S$, $\mu$, $\sigma$) are constant variables. For $t$ i.e. t <- seq(0.1,1,0.1) How the cumulative probability would look like in R? Non of my solutions yields desired outp...
I think I have understood why $E[E(X_1X_2|X_1)]=E[X_1E(X_2|X_1)]$; so your support would really help me being more convinced. Do we take out the $X_1$ from the inner expected value because it is calculated with respect to the marginal distribution of $X_2$? And why is it calculated with respect to the marginal distribu...