instruction
stringlengths
9
38.7k
If my data is skewed, does it mean that my data does not follow a normal distribution? How do we define various distributions? What type of outlier analysis do I perform for the different type of distributions?
I am trying to forecast daily sales and have found that for the seasonally adjusted component a non-seasonal ARIMA (3,1,6) and a seasonal naive for seasonal component gives me the best result. How can I use stlf or stlm functions to specify my order (3,1,6) in ARIMA method? Currently, I am forecasting both components s...
I have a small confusion. When someone says that a convolutional neural network is 48 layers deep,does it mean that the CNN has 48 convolution layers(as in layers that perform convolution only) or 48 layers(which includes layers that perform pooling,ReLU,convolution,fully connected layer etc.)? Kindly help.
I want to perform a statistical analysis on scores obtained through medical exams, correlating them to the season (as in spring, summer, fall, winter) when they were obtained. How do you suggest to proceed? Consider that: Because seasons have slight different length, I can not divide years by quarters. I do not want t...
Why is it necessary to not have auto-correlation in the time series data or in the variables for regression analysis? And how can we check of the auto-correlation in the data?
I am working on fitting an equation from a dataset. In my dataset I have two variables where I am interested at and I looking a function that gives me the value the free variables that I use in the equation. My equation looks like Y = 4 * log(X/n)/log(n/m) + 5, where Y and X are variables from my dataset. So I am l...
The typical simplifiled representation of a tomographic system is $y = Ax$, where $y$ is the collected data (sinogram in CT), $A$ is the projection matrix, and $x$ is the unknown image. The closed form solution, which is probably the most popular one, is to applying FBP algorithm to get the direct inverse of this mod...
Does anyone have a literature reference on application of average (weighted) ranking in scientific publications (biology, chemistry)? An example is this paper, with application in algorithm ranking: http://sci2s.ugr.es/keel/pdf/specific/congreso/brazdil00comparison.pdf Here the algorithms are ranked by three different ...
I have about 150 samples 1000 features (ranked by their importance by Relieff score). My question is, what would be the best approach to: choose the hyper parameters choose the optimal number of features to use report the accuracy of my model using SVM and kNN (I don’t intend to choose which one of them is best to us...
To give some context to the problem at hand, I have a (900,15000) (columns are way bigger than observations) data frame where the columns are roads on a map and the rows are the average speeds in Km/Hr of those roads at some timestamp The data looks like this | road1| road2| ... | road15000 2017-05-...
I have always heard "orthogonal" in the area of geometry (also please note I am not a native English speaker). I do not understand the following for latin squares (a quote from a text book): Every treatment (ABCD) appears once in each row. Hence the treatments and rows are orthogonal. ... Rows and columns are orthogon...
Say, the words are road, highway, avenue, car, bus, train. Then they should be grouped as follows: street, road, highway, avenue into one group, and car, bus, train into another group. So, I wrote a code (in MATLAB) to download synonyms of each word in my dataset (which I pass in dictionary in the code below), and then...
Here's a hypothetical situation a colleague and I were discussing, and I'd be interested to hear your opinion(s) on this approach to utilizing confidence intervals: We are discussing a method of putting a "confidence level" on test failure predictions based on the confidence intervals computed for the mean and standard...
I am currently trying to create a simulation using three different vector for phi, alpha, and beta. The following is the code I have thus far: install.packages("FAdist") library(FAdist) ## used to calculate a shifted gamma distribution lamada = 1.000163867 phi = seq(0.01,0.21,0.01) power = c(1:8) alpha = 10^power ...
I am attempting to implement the Nonlinear Gaussian Process Latent Variable Model, as per Lawrence 2005 and have the gradient with respect to the kernel as follows(Eq 10 in paper): $\frac{\partial L}{\partial \mathbf{K}} = K^{-1}YY^{T}K^{-1} -DK^{-1}$ where $K$ is an $n \times n$ covariance matrix(built from an initial...
Take this graph: $$ \overset{S}{\fbox{$+$}} \underset{\textstyle \nwarrow \!\underset{\overset{\scriptstyle X_2}{\textstyle\bigcirc}} {}} {\overset{\textstyle \swarrow \!\overset{\overset{\scriptstyle X_1}{\textstyle \bigcirc}} {\mathstrut}} {\mathstrut}} \qquad \begin{align} X_i \text{...
I'm doing a classification task (just like ad ctr prediction), the data is generated day by day, for example, data from 06-01 to 06-15 is collected, and I split the whole data into 2 parts, the 06-01 to 06-12 as training set, and the 06-13 to 06-15 part as test set. Over the training set, I build a Logistic Regression ...
The problem is from football. I have the full time goals(FTG), and shots on target minus goals(FST), as the dependent variables (integers). Team names, opponent team names (strings) and home field indicator (=1 if at home; =0 if away) are independent variables. I want to analyse the probability of a shot on target actu...
There are two different type of games (PC and Console), and each game is played on two different screen sizes: 9 inches and 27 inches. 50 subjects are recruited to play the PC game on both screen sizes. One will start on the small screen size for 15 min and then play on the bigger screen size for 15 min, and second su...
I am running a multinomial logistic regression model in R using the command multinom. My response variable, $y$, is a factor with three levels of length 40, 25 and 5 each level. I have several factors and covariates to model it, say $x_1,\ldots,x_n$. At a first step, I wrote $y\sim x_1+x_2$ in the multinom function. A...
Given that $X$ is a single observation from $f(x;\theta)=(2\theta x+1-\theta)I_{[0,1]}(x)$ where $-1\leq \theta \leq 1.$ The objective is to test the hypothesis $H_0:\theta\leq0$ Vs $H_1:\theta>0$ where $H_0$ is rejected when $X>\frac{1}{2}$. I am a little confused about finding the power of the test. Power of this tes...
In exploring a data set, I think I've found an interesting instance where using a Monte Carlo method to plot a simulated group of points could yield somewhat accurate results. The plotted data looks like this: The trigonometric pattern is easy to see, and upon further observation, one can see that the points are not ...
Apologies if this is a little off-topic for a stats forum, but I don't know where else I could pose my question online and I'm positive that many contributors here would be able to easily answer my question. Basically, I conducted an experiment but now I'm unsure of how to formally describe the experimental design I em...
I have data set about creation of files during 24 h. Data covers period of 426 days. I sorted data based on hours of creation, data are presented in this table. numbers of files / day hours 0 1:00:00 0 2:00:00 0 3:00:00 1 4:00:00 0 5:00:00 0 6:00:00 6 7:00:00 179 8:00:00 261 9:00:00 153 10:00:00 134 11:0...
This topic is actually rather hard to google for as 'tree' has been overloaded in this domain to refer to decision trees. I'd be interested in having a learning algorithm produce code, such as used in Microsoft Power BI's feature to query databases using natural language ('Q&A', formerly 'InfoNav'). Evidently, natural ...
What is the advantage of kalman filters as an online update mechanism instead of the stochastic gradient descent?
If I have variables $X_1$, $X_2$, ... $X_n$ whose values are only 1 or 0, in order to explain a variable $Y$, is there a way to determine which ones are significant, and also, how could it be measured?
I have a dataset consisting of type 0 and type 1 articles and their corresponding page views. I want to see whether type 0's true mean is greater than type 1's true mean (up to statistical significance). However, they don't have the same variance which I know is a pre-req for most hypothesis tests. What else might I ...
This question was asked many times before, but the typical answer is usually 'do a power sample calculations'. The problem that I can't grasp is that in most well-known papers the samples that they use are ridiculously small. For instance, one of the most famous papers in behavioral economics ('Cooperation and Punishm...
I have a sample size of 4 or 3. Each sample is the difference between climate variables (Temperature, vapor pressure, wind, solar radiation, etc.) under two different conditions (variable value inside - variable value outside. I cannot assume normality. My sample and population are continuous. I want to know if these d...
I would like to detect group effects (if any) along with statistical confidences. I have a hierarchical data set structured as follows: Drug Groups --Patients -----Meter Readings The Drug Groups consist of Control, Drug1, and Drug2. There are 300 Patients distributed amongst the Drug Groups with unequal sizes (150, ...
I first posted this question in academia.se, there it was suggested that I could try at the field's specific se. If it is off-topic for here, I will gladly remove it. My background is in mathematics, with a main interest in mathematical statistics / biostatistics, and I am considering applying for a PhD position with a...
I'm reading a paper and I'm unsure how valid their methodology is, and I'm trying to find some information related to that. Basically, they're doing a meta-analysis of swallows and PCB exposure. They're using several different log response ratios (for the effect size) that are related to reproductive success (number of...
I used gradient descent to obtain the coefficients for a logistic regression function. When I run my function on my test data set, I get values between 0 and 1. If I get a predicted value of say, .7, and the actual value is 1, I count that as a correct prediction. I say that the prediction says there is a 70% chance th...
In the past, I have been assessing the relationship between outcome and continuous predictors without taking other predictors into account. I have also been playing around with a way to determine that same relationship when taking other model predictors into account using the predict function…but can’t get my head aro...
* I just came to know that the post was unlocked, meanwhile I have re-posted the question on this forum. But I am posting the edited version here as well as I am unaware of the rules in this regard. * I have a function $$F(t) = a\frac{1 – e^{-(b+c)t}}{1 + \frac{c}{b}e^{-(b+c)t}}\space .$$ This equation has a sigmoidal...
Question: Which sampling distributions of a normally distributed, i.e. $\mathcal{N}(\mu, \sigma^2)$, population correspond to which sample statistics? In particular, which sample statistics (if any), do the: $\chi^2$ distributions $t$ distributions $F$ distributions correspond to? Motivation: This information isn't w...
I have two result sets of identical search queries run under different parameters, analysis, etc. I will refer to them as RS1 and RS2. RS1 and RS2 may not have the same length, but they are rank-ordered with the first entry in the set being the highest priority. If RS1 is the "desired" set, or perhaps "control set", wh...
I'm trying to estimate the parameters of a discretized time series that I think may be described by an OU process. To do so, I am using the methodology described here: https://www.sitmo.com/?p=134 Specifically, I am using least squares to regress the n-th term of the time-series against the (n-1)-th term, and am using...
I'm implementing a neural network in javascript to recognize handwritten digits, while studying "Neural Networks and Deep Learning" by Michael Nielsen and following the feedforward-backpropagation algorithms detailed in "A Step by Step Backpropagation Example" by Matt Mazur. I've been struggling for the past few days t...
Confidence intervals around two AUCs were generated using bootstrapping with a confidence level of 95 %. The CIs overlap each other, hence I conduct significance testing by bootstrapping the difference of AUC CIs. This confidence interval did not include zero, and therefore I conclude that there is an effect when using...
Does test classification rate and training time the best evaluation criteria for a classifier! Basically I have used the training time and test classification rate as a criteria to evaluate my classifier ( as in many papers, many studies they used training test CR) Is there anyone could explain why test CR and train...
Introduction: Say I have a design matrix $X\in \mathbb{R}^{m\times n}$ with rows $x^{(i)} \in \mathbb{R}^{n}, i = 1,...,m$ and I also have a data vector $y \in \mathbb{R}^m$. I construct a "local" linear model for some $x \in \mathbb{R}^n$ as follows: First, define, $$ w_i = \exp \Big ( -\|x - x^{(i)}\|^2 \Big ) = \exp...
In glmnet using caret my the model is trained and tuned by cross validation on my training set. I have a 10 fold cross validation, over a grid of 10 alphas and 10 lambdas. The best model chosen by glmnet is the model with the combination of alpha and lambda which has the best performance. This performance is an average...
So suppose I'm predicting "A" using a linear regression model : A = a + bx1 + cx2 I'm positive that X1 and X2 have a linear relationship with A The problem is: I have historical data on my independent variable x1 and x2 but do not know what their exact value will be a month to three months from now (my predicting time ...
Edit Purpose of my study I have weather stations collecting data inside and outside low-tech greenhouses. Four of the weather stations are inside, and one is outside. They are collecting temperature, humidity, solar radiation, wind speed, etc. I am testing to see if the differences between the weather station data insi...
I am trying to understand the difference between f(x) and g(x) below. I am not a mathematician or statistician, so please bear with me. Basically, I'm trying to specifically understand: what g is doing to the data what motivation, if any, there is to use g what relationship there is, if any, between f, and g (I do not...
Given the comments below, I reformed my questions with more background information and simulation/examples. My question also includes the validity of the method in theory. Please correct me if any statement is not accurate. Background: 1) For our client (policy makers), it is often interesting for them to check whether...
I am trying to do classification to separate two groups and try to extract important features by calculating variable importance using PLS. However, number of inputs are different. for instance for A condition I have 1300 and for B I have 3209. Shall I do kind of normalization to compensate for the different number of ...
Consider the following VECM, from a VAR(1) model $$ \Delta y_t=c-AB'y_{t-1}+\epsilon _t $$ and the following VMA representation $$ y_t = \delta t+Cz_t+\eta_t $$ where $z_t=\sum_{s=1}^t \epsilon _t$ and $\eta_t \sim I(0)$. a. From the VECM specification, find a VMA representation, that is, show that $\delta$ and $C$ can...
I am trying to specify a Bayesian hierarchical split-plot model in JAGS. I have been following Doing Bayesian Data Analysis by John K. Kruschke, however the model I am attempting is not included in his book. It is a split-plot longitudinal design with one three-level, between-Subjects categorical predictor XGroup and o...
Here is one definition of the proportional odds model: $$\frac{S(t;{\bf Z})}{1-S(t;{\bf Z})}=e^{-{\bf Z}^T\pmb{\beta}}\frac{S_0(t;{\bf Z})}{1-S_0(t;{\bf Z})},$$ where ${\bf Z}$ = covariates, $\pmb{\beta}$ = regression coefficients, $T$ = survival time, $S(\cdot)$ = survival function, $S_0(\cdot)$ = baseline survival fu...
I have a fundamental question about "Bayes Factors". Specifically, I understand if we want to compute the posterior probability of a hypothesis (e.g., $p(H_1 |Data)$, we need a prior probability (i.e., $p(H_1)$) for the hypothesis in question as per Bayes' rule. BUT I'm wondering when computing only a "Bayes Factor" w...
I'm fascinated by the concept of graph, be it the social network, the book-topic relationship and others. By graph I mean something like this: I want to know, how to visualize the data, and is there any mathmatical background/properties behind it? Speficially, I want to know: How is the graph data layed out? How the ...
I am trying to understand how probability works with a threshold for logistic regression. I understand the basics of how to calculate probability. log odds = intercept+value1*coef1 odds = exp(log odds) prob = odds / (1+odds) I understand that a threshold is used to find the optimal mix of correct predictions (precisi...
Hi I'm studying regression techniques. My data has 15 features and 60 million examples (regression task). When I tried many known regression techniques (gradient boosted tree, Decision tree regression, AdaBoostRegressor etc) linear regression performed great. Scored almost best among those algorithms. What can be the ...
I have some maximum temperature data. Here is the histogram and qqplot: Visually they look pretty good and I would reasonably say they are from a normal distribution but the Shapiro-Wilk Normality Test (shapiro.test in R) is saying that it is not from a normal distribution. I found this post which basically says: don'...
I am getting familiar with SPSS, specifically the Automatic Linear Modeling functionality. I first ran SPSS, using Best Subset method which gives me the result of "best" variables. Being uncertain, I run again in Excel with the same data. Much to my surprise, the coefficients of one variable are not the same: they are...
I'm a beginner of survival analysis. I think I could understand the Survival Function. But the hazard function, I feel very confuse. I've been told, the hazard function is the instantaneous risk at a certain time spot. It can be complex if we assume the time is continuous. But if we treat the time as discrete, say, yea...
I have carried out a behavioural task on two groups of participants: a patient group and a healthy control group. The patient group was tested in two separate sessions, to include the effects of medication (on or off). I'd like to carry out a Bayesian ANOVA on this data to jointly assess the within-subject effect of me...
multiple articles on the internet proclaim that logistic regression as a method is not able to deal with categorical independent features well. Unfortunately i was not able to find any explanation for it. Can anybody help me out on why this is so? quoting from the article "Too many categorical variables are also a pro...
So I'm stuck on a problem. It's related for some work I'm doing but I'll keep it simple here. Here's the scenario: I flip a coin 11 times and I record the results without telling you what the results are. Now you have to try and predict what I tossed. What are the odds that you will guess 8 out of those 11 tosses corre...
From a survey I have answers towards a yes/no question and the survey-respondents are grouped into multiple groups. I now want to know if the proportion of yes-answers for one group differs from the whole survey sample (thus including the subgroup). I would do this by calculating the standard error. I could do it usin...
I have a black-box model of a system with an internal state that is characterized by a $n-$dimensional binary vector variable $\vec{x}=(x_1,x_2,\dots,x_n)$ (i.e. $x_i\in\{0,1\},\;i=1,\dots,n$). However, I have access only to an external binary vector of obsevations $\vec{y}=(y_1,y_2,\dots,y_n)$ of the same size ($y_i\i...
I use dirichlet regression to analyze the result of a membership matrix (compositional data). For each observation, I have membership probabilities to different groups and these probabilities sum to one. For sake of simplicity, let’s say that I have three groups. I use the DirichletReg package in R to estimate the mode...
I am trying to build a captcha recognizer. I found CNN play very well if there are enough labeled data. For example, I use this https://github.com/lepture/captcha to generate 4 size char+number captcha sample. But I found it only could recognize captchas with similar style, didn't work when I gave it a different style ...
I am working with a colleague who wants to include a term in our linear mixed effect model that is also an individual component of a scale that we constructed and have in our model (both as predictors). For example, it's something like this: d1 <- data.frame(A=rnorm(100), B=rnorm(100), ...
so I have this graph What test can I use to show that the three methods are different / not equal? The data is not normally distributed, nor has it a common variance. I also failed to transform it to a normal distribution. I'm working in R if that helps. The sample size is 1000, maybe that solves all problems of non-n...
I was taking an online course and saw linear regression being by gradient descent The intuition behind why the method would work seemed plausible. I tried understanding normal equation as to why setting individual partial derivates to 0 and solving the equations give the optimal values of theta, but that didn't ring a ...
I reasoned a bit on where to post this question if stats, quant or stack. I will post it here because it is merely a statistical problem. I have a vector x of numbers in Python (you might also imagine for simplicity that is normal) I simulate its Kernel density starting from this vector: import scikits.statsmodels.api ...
At the near past when I was a student NN concerned as an arbitrary function learner (13 Hilbert problem, Holmogorov stuff like that). But today I am seeing that vanilla Feed Forward NN is no more actual and complicated ones like LSTMs, GRU, CNN etc are come into live. For me this NNs are nothing more than just clever h...
I've dataset that looks something like this: Let us call this data "df" ID var1 var2 var3 ... varn val 1 v11 v12 v13 ... v1n v1 2 v21 v22 v23 ... v2n v2 .......... m vm1 vm2 vm3 ... vmn vm This data is divided into two parts based on "val" variable. That is if it's greater than threshold, it's ...
I am new to time series analysis and I am trying to model a time series. I know there are similar questions but I could not figure out the solution to my problem. I have a time series like the one below (Blue color). To remove the trend I fitted a polynomial curve of degree 6. As can be seen in the above picture with...
I tried to understand it, by applying an regression-tree on the Friedman#1 dataset: library("mlbench") dataset <- list() random.forest <- list() regression.tree <- list() train.data.in.test.leaf <- list() test.data.in.test.leaf <- list() test.leaf.size <- 0 test.leaf.prediction <- 0 test.leaf.index <- 1 all.l...
I've been using logistic regression for a specific problem and the loss function the paper used is the following : $$ L(Y,\hat{Y})=\sum_{i=1}^{N} \log(1+\exp(-y_i\hat{y}_{i}))$$ Yesterday, I came accross Andrew Ng's course (Stanford notes) and he gave another loss function that was intuitive, according to his saying....
How do I judge whether the dataset is unbalanced (is it when the minority class inferior of 15%) could us use the test CR after balancing the data?
My question pertains to necessary caution/downfalls in adjustment of a binomial mixed effect model with a low number of "success" outcomes (p̂ = .05). I have a data frame in the form: data <- data.frame("SubjectID"=1:221, "Group"=sample(gl(8, 28, labels = 280:288), size=221), "Condition"=sample(relevel...
I'm learning about neural networks and I've been trying to figure out wether it's a good idea to normalize/standardiza data before training. From what I've read there's divided opinions about this, some sources says it will imrpove the result/make the training faster while other sources state there's no real need for i...
For learning purposes I have been using a subset of the MNIST data--just the training set and just the digits 3 and 8. I want to try linear regression for doing this classification. (Yes I realise that logistic regression is more appropriate). In R syntax (this is not an R specific question), I do: b<-qr.solve(cbind(...
I implemented Deming Regression in a known programming language, using the algorithm from here: https://en.wikipedia.org/wiki/Deming_regression However, the algo does not specify what to do in case we want to force intercept to 0. I am assuming slope will slightly change as well as R^2 parameter (goodness of fit). Kind...
In software development, unit testing is (basically) executing an algorithm with a fixed input and test if the output is as expected. Example : "test that MyFactorial(4) returns 24" where "MyFactorial" is a piece of code you have written. Unit testing is used very often to detect regressions : a bug that wasn't here be...
I have done a robust regression on my training-dataset and would now like to see whether the model fits the test-training set. However, I do not know how to do this. I have already made sure my test-set only contains the variables used in the model, that is the firs step I believe, but what is next?
I have been reading a Facebook paper, read here, and am confused about certain features of the architecture. I do not understand why they have a tanh layer, max-pooling layer, and then another tanh layer. I understand what each layer does, but I don't understand why they have this sequence. Wouldn't this output basical...
I'm working on a nonlinear mixed effects model with 4 parameters. I've simulated some data to fit my model to, and I would like to check that the model is identifiable. I'm trying to outline some approaches that I can use to check this If no 2 distinct sets of parameters can give rise to the same log-likelihood for an ...
I have a system 4 I(1) variables. Normal Johansen test in Eviews tell me there are two cointegrated relationship. Yet, if I include an exogenous variable, namely log(oilprice) the test gives me three cointegrations. I am not sure I understand the test well as Eviews onle reports the critical values without exogenous va...
Is there a way in scikit-learn to compute (or to obtain) the features importance of each class to predict? I known feature_importances_ properties of tree models, but I'm interested in a separate list of more importante predictors for the first class, a separate list for the second class and so on. E.G: which are the m...
Hi: I'm reading a proof in Halbert White's "asymptotic theory for econometricians" and I don't understand one of the steps. The theorem supposes the following: $E(X^2_{thi})^{1+\delta} < \triangle < \infty$ for some $\delta > 0 $ and all $h = 1, \ldots p, ~i = 1, \ldots k$, and all $t$. Then, it starts off the proof by...
Is there a way, after calibrating a logistic regression, to average out the 3 resulting logistic regressions' coefficients into a single Logit? Example (in sklearn): from sklearn.calibration import CalibratedClassifierCV from sklearn.linear_model import LogisticRegression calibrated_logit = CalibratedClassifierCV(Log...
I am reading the Deep Learning (Ian Goodfellow and Yoshua Bengio and Aaron Courville, 2016) book. I don't have a statistical background, so I couldn't follow this part: How come by only dividing Equation (5.58) by m one can get Equation (5.59). As a follow-up question, many equations that involve summation are express...
n00b question: Lets say I am looking at a sample of records, say, sales data from several McDonald's restaurants. Lets say I detect a difference between two groups of McDonalds. For example, McDonald's stores located in Oregon sell fewer McRibs per month than do stores in Tennessee. Some descriptive stats (let's assum...
I'm well aware of word embeddings (word2vec or Glove) and I know of four papers treating the subject of more general embeddings : Distributed Representations of Sentences and Documents - Quoc V. Le, Tomas Mikolov https://arxiv.org/abs/1405.4053 Document Embedding with Paragraph Vectors - Andrew M. Dai, Christopher O...
I have a non-significant moderation. However, when I plot it, the lines are not parallel, even crossing at a certain point. Does this mean anything? Should I still present a plot that can be misleading, as it shows an interaction that is not significant?
Is there a way to test whether a binary vector of size $n$ was sampled from an $n$-variate Bernoulli distribution with some success probabilities?
I'd like to compare the difference in rates obtained by two different methods for the same population. Here's a contrived example (please ignore the semantics): I randomly survey 5,000 people in the same state and ask how many times they experienced Disease Y over the past year. I also set up a surveillance system in h...
I need to add an hour feature to my data. Assigning "dummy variables" (which is what I usually do) does not work in this case, apparently (wouldn't elaborate - but believe me this is so). At first, I simply assigned the hour itself (13:00 - 13, 14:00 - 14, etc...) But then I realized this means 23:00=23 is radically ...
I found in the R vignettes a nice article about perform time transformations in coxph (R function, package survival). This works fine for me in coxph, but I need to use cph (RMS package) because of the added functionality. This should be easy to translate, since cph is coxph with added features, but I can't get it to w...
Below (in R code), I'm showing the Bayesian estimation of the Difference between two proportions resulted from two binomially distributed groups (groups) of scores (y). My question is how can I now compute a Bayes Factor to understand which hypothesis (i.e., $H_1$ or $H_0$) my data supports? set.seed(0) n1 = 100 ; n2 =...
Assume I have a program which we'll model as bool Worked = f(param1,param2,...) Assume these parameters are positive integers, and a starting set exists s/t Worked returns true. Is there a smarter way than parametric sweep to map/estimate the stable surface of the parameters, that is, the surface under which the functi...
In the picture below, why is u the direction of greatest variance? Aren't the data points further away from v than from u? Variance is the sum over the squared distances of each data point from the mean, right? It would just seem to me that if I measured and summed the distances of the data points to v, it would be gr...
So my training set labels are bounded by 1-10, but if I fit a regression curve it will predict outside this range as well, including negative numbers. Is there a good way to constrain the model outputs besides simply changing all < 1 values to 1 and > 10 values to 10? I am coding in Python with sklearn.