We address the problem of inferring the causal direction between two variables by comparing the least-squares errors of the predictions in both possible directions. Under the assumption of an independence between the function relating cause and effect, the conditional noise distribution, and the distribution of the cause, we show that the errors are smaller in causal direction if both variables are equally scaled and the causal relation is close to deterministic. Based on this, we provide an easily applicable algorithm that only requires a regression in both possible causal directions and a comparison of the errors. The performance of the algorithm is compared with various related causal inference methods in different artificial and real-world data sets. Schölkopf B. 2009. Nonlinear causal discovery with additive noise models. In: Advances in neural information processing systems 21.Red Hook: Curran Associates, Inc., 689-696. Hyvärinen A, Smith S. 2013. Pairwise likelihood ratios for estimation of non-Gaussian structural equation models. Journal of Machine Learning Research 14(Jan):111-152. Janzing D, Mooij J, Zhang K, Lemeire J, Zscheischler J, Daniušis P, Steudel B, Schölkopf B. 2012. Information-geometric approach to inferring causal directions. . Janzing D, Sun X, Schölkopf B. 2009. Distinguishing cause and effect via second order exponential models. eprint http://arxiv.org/abs/0910.5561. Kano Y, Shimizu S. 2003. Causal inference using nonnormality. In: Proceedings of the international symposium on science of modeling, the 30th anniversary of the information criterion. Tokyo, 261-270. Lemeire J, Janzing D. 2012. Replacing causal faithfulness with algorithmic independence of conditionals. Minds and Machines 23(2):227-249 DOI 10.1007/s11023-012-9283-1. Ma S, Statnikov A. 2017. Methods for computational causal discovery in biomedicine. Behaviormetrika 44(1):165-191 DOI 10.1007/s41237-016-0013-5. Marx A, Vreeken J. 2017. Telling cause from effect using MDL-based local and global regression. In: 2017 IEEE international conference on data mining (ICDM). Piscataway: IEEE, 307-316 DOI 10.1109/ICDM.2017.40. Mooij J, Peters J, Janzing D, Zscheischler J, Schölkopf B. 2016. Distinguishing cause from effect using observational data: methods and benchmarks. Journal of Machine Learning Research 17(32):1-102. Pearl J. 2009. Causality: models, reasoning and inference. 2nd edition. New York: Cambridge University Press. Peters J, Janzing D, Schölkopf B. 2011. Causal inference on discrete data using additive noise models.